Python Forum
[PyQt] Can't neither setWindowFlags nor setFixedSize of a subwindow.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyQt] Can't neither setWindowFlags nor setFixedSize of a subwindow.
#10
The problem is using QMainWindow as SubWindow, use QMdiSubWindow

change the first lines in usuarios.py to

from PyQt5 import QtCore, QtWidgets
from PyQt5.QtWidgets import QMdiSubWindow
  
  
class formUsers(QMdiSubWindow):
and in main.py

    def showFormUsers(self):
        self.subWindow = usuarios.formUsers()
        self.subWindow.setFixedSize(480, 300) 
        self.mdi.addSubWindow(self.subWindow)
        self.subWindow.show()
Reply


Messages In This Thread
RE: Can't neither setWindowFlags nor setFixedSize of a subwindow. - by Axel_Erfurt - Aug-06-2021, 05:33 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [PyQt] Subwindow catlessness 5 2,936 Oct-23-2021, 06:28 PM
Last Post: catlessness
  Running external Python file as a subwindow JayCee 13 4,070 Aug-05-2021, 05:47 AM
Last Post: ndc85430
  [PyQt] App crashes when reopening a subwindow JayCee 13 5,288 Aug-04-2021, 01:51 AM
Last Post: JayCee

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020