Results 1 to 2 of 2

Thread: Problem with MDI gui

  1. #1
    Join Date
    Sep 2011
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Problem with MDI gui

    Hallo there,
    I have a problem with my MDI interface.
    You can see the picture:
    http://img846.imageshack.us/img846/1...tofinestra.png

    As you can see when I resize the subwindow, all the edit boxes, images ecc.. seem to be "before" the window's edge.
    This is the code I have used to add the subwindow:

    MyWidget *MDI::createMdiChild()
    {
    MyWidget *Mat = new MyWidget (openedFile,0);
    Mataz->setAttribute(Qt::WA_DeleteOnClose);
    m_ui->mdiArea->addSubWindow(Mat);

    return Mat ;
    }

    I really don't understand where is the problem.
    Thank you fo your help!

  2. #2
    Join Date
    Sep 2009
    Location
    Wroclaw, Poland
    Posts
    1,394
    Thanked 342 Times in 324 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Problem with MDI gui

    Does it look ok if you just show() the widget (without adding it into mdi area) ?
    Does the MyWidget have a layout ?

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.