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. QMdiSubWindow Not Obeying Child Size.

QMdiSubWindow Not Obeying Child Size.

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.2k Views
  • 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.
  • P Offline
    P Offline
    Plissken
    wrote on last edited by
    #1

    @SheetEditor::SheetEditor()
    {
    statSheet = new StatSheet( this );

    const int x = 1;
    const int y = 1;
    statSheet->move( x, y );
    resize( statSheet->size() );
    

    }

    void MainWindow::newSheetAction()
    {
    SheetEditor *se = new SheetEditor;
    mdiArea->addSubWindow( se );
    se->show();
    }@

    I have a QWidget, SheetEditor, that has a child widget, statSheet. I resize SheetEditor to match the size of its child widget. The sheet editor becomes added as a subwindow (which gets set as the internal widget of a QMdiSubWindow). The subwindow does not obey the size of the child widgets. It is always 125 in width and 0 in height, which is just enough to show only the application icon, min, max, and close buttons.

    What is the proper way to get the QMdiSubWindow size to fit the contents of its children?

    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