Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Managing QMDISubwindows in an QMDIArea
Forum Updated to NodeBB v4.3 + New Features

Managing QMDISubwindows in an QMDIArea

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 303 Views 2 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.
  • U Offline
    U Offline
    Uday More
    wrote on last edited by
    #1

    I have been stuck at a particular point in managing the subwindows in an MDI Area.

    I have an QMDIArea to which I attach the QMDISubwindows returned from a plugin. Adding and removing the subwindows is fine. It works properly. I have handled the close event of the QMDIsubwindow where the subwindow is removed from QMDIArea.

    The problem is how to know whether the QMDISubwindow is properly released from the QMDIArea. Because whenever the show function on any other widget is called, application crashes. I know that there seems to be no relation of other UI widgets in my application and the QMDIArea. But seems the events are not properly processed.

    Note : didn't set the WA_DeleteOnClose flag for QMDISubwindow returned from the plugin and also no parent is set.

    1. Could anyone give me a proper highlight on how to manually manage QMDISubwindows in an QMDIArea if WA_DeleteOnClose flag is not set.
    2. Also can anyone tell me the internal implementation of "WA_DeleteOnClose" flag.
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      1. Can you generate a stack trace from that crash ?
      2. Qt's sources is available so you can go through it to see how that enumeration value is used.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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