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. [Solved] Window attributes and geometry for QMdiSubWindow
Forum Updated to NodeBB v4.3 + New Features

[Solved] Window attributes and geometry for QMdiSubWindow

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 3.4k 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.
  • D Offline
    D Offline
    d.oberkofler
    wrote on last edited by
    #1

    It' s a little difficult to understand the exact interaction between the QMdiSubWindow and it's embedded child window.
    The general rule for an MDI UI is to first create a "regular" window (QWidget) and then add it to the MDI area using QMdiArea::addSubWindow and obtain a QMdiSubWindow. But now I have two handles to the window.
    What's still very unclear is what window now should/must to be used when changing some of the window attributes like visibility, enabled or the size and position.
    Especially setting an absolute position or a fixed size does not really seem to work as expected.

    1 Reply Last reply
    0
    • G Offline
      G Offline
      giesbert
      wrote on last edited by
      #2

      Have a look at "this":http://doc.qt.nokia.com/latest/mainwindows-mdi.html example, there is an MDI app created.

      The Child of the QMdiArea is the QMdiSubWindow which itself contains your widget. So for geometry handling, hiding etc, you should use the MdiSubWindow

      Nokia Certified Qt Specialist.
      Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

      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