Python Forum
[PyQt] App crashes when reopening a subwindow
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyQt] App crashes when reopening a subwindow
#13
I think the only way for a fixed size is not to use it as mdiArea subwindow and make it ontop.

 
    def OpenUserForm(self):
        self.swu = SubWindowUsers()
        self.swu.setWindowFlags(QtCore.Qt.WindowStaysOnTopHint)
        self.swu.setFixedSize(QtCore.QSize(400, 300))
        self.swu.move(QtCore.QPoint(self.geometry().x() + 2, self.geometry().y() + 30))
        #self.mdiArea.addSubWindow(self.swu)
        self.swu.setWindowTitle("Users")
        self.swu.show()
        self.statusbar.showMessage("Users Window opened", 0)
Reply


Messages In This Thread
App crashes when reopening a subwindow - by JayCee - Aug-03-2021, 01:58 AM
RE: App crashes when reopening a subwindow - by Axel_Erfurt - Aug-03-2021, 08:13 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  GUI crashes flash77 3 1,104 Jul-26-2023, 05:09 PM
Last Post: flash77
  [Tkinter] Clicking on the button crashes the TK window ODOshmockenberg 1 2,379 Mar-10-2022, 05:18 PM
Last Post: deanhystad
  [PyQt] Subwindow catlessness 5 3,035 Oct-23-2021, 06:28 PM
Last Post: catlessness
  [PyQt] Can't neither setWindowFlags nor setFixedSize of a subwindow. JayCee 10 4,444 Aug-06-2021, 08:06 PM
Last Post: JayCee
  Running external Python file as a subwindow JayCee 13 4,228 Aug-05-2021, 05:47 AM
Last Post: ndc85430
  [PyGUI] My GUI crashes after command MLGpotato 1 2,016 Feb-21-2021, 03:17 PM
Last Post: deanhystad
  [PyQt] PyQT5 Thread crashes after a while Suresh 0 2,094 Jul-21-2020, 07:53 AM
Last Post: Suresh
  PyQt5 : Interpreter Crashes While Initializing Message Box iMuny 7 6,067 Aug-29-2019, 01:38 PM
Last Post: iMuny

Forum Jump:

User Panel Messages

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