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. Maximizing SubWindow in MdiArea
Forum Updated to NodeBB v4.3 + New Features

Maximizing SubWindow in MdiArea

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

    Hey Mates,

    I am new to the Qt-community. I am working on a GUI Application and I want it have a MDInterface. My Problem is, when I addSubWindow() everything works. When I Maximize it the Titlebar of the Subwindow goes to the MenuBar. I want the SubWindow to stay into the MDIArea. What am I doing wrong ?

    First I set an MdiArea
    @
    mdiArea = new QMdiArea();
    setCentralWidget(mdiArea);@

    Afterwards I add a SubWindow

    @MainChild *MainWindow::createMdiChild()
    {
    MainChild *child = new MainChild;
    mdiArea->addSubWindow(child);
    child->showMaximized();
    return child;
    }@

    Everything works great till here.

    When the subWindow is maximized it looks like:

    !http://i54.tinypic.com/t4zpyt.png()!

    But I want it to stay maximized in the MDIArea... like that

    !http://i56.tinypic.com/jhufqc.png()!

    What do I have to change in the code... any suggestions?

    greetz

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

      I think this will not work without schnaging QMdiArea, as it is the normal behavior of an MDI sub window.

      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