Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. Qt Contribution
  4. QMdiArea Crash Segmentation fault
Forum Updated to NodeBB v4.3 + New Features

QMdiArea Crash Segmentation fault

Scheduled Pinned Locked Moved Qt Contribution
1 Posts 1 Posters 2.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    joemicro
    wrote on last edited by
    #1

    Hi, i have an application built on python and PyQt with many forms, and i just switched it from the old QWorkspace to QMdiArea.

    i am openning forms with this code:
    @def addSubWindow(self, form):
    new_sub = QMdiSubWindow()
    new_sub.setWidget(form)
    new_sub.setAttribute(Qt.WA_DeleteOnClose)
    self.mdi.addSubWindow(new_sub)
    form.show()@

    and when the form is closed it coles this function:
    @def formClosed(self):
    window = self.mdi.activeSubWindow()
    self.mdi.removeSubWindow(window)@

    the problem is when i open lots of windows and then closing them and then reopen the system crashes with out an error, it happens at random not always with the same form.

    i run it with gdb and it gave me the following:

    @Program received signal SIGSEGV, Segmentation fault.
    0x618945a9 in QtGui4!?takeAt@QBoxLayout@@UAEPAVQLayoutItem@@H@Z ()
    from c:\python\python27\lib\site-packages\PyQt4\QtGui4.dll@

    i am working on windows 7 Python 2.7.3, Qt 4.8.4, PyQt 4.9.6

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved