Results 1 to 3 of 3

Thread: QMdiSubWindow maximization rudeness

  1. #1
    Join Date
    Sep 2007
    Location
    Sant'Elpidio a Mare, Italy
    Posts
    194
    Thanks
    54
    Thanked 2 Times in 2 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default QMdiSubWindow maximization rudeness

    Hi all,

    I have found a rude behavior from QMdiSubWindow when maximizing it.
    If I maximize it manually by the expected button it maximizes mixing its title bar with the QMainWindow menu bar. Cool. Good looking and perfect integration.
    Now, if I maximize it programmatically with :
    Qt Code:
    1. QWidget* win=new QWidget;
    2. win->setWindowState(win->windowState() ^ Qt::WindowFullScreen);
    To copy to clipboard, switch view to plain text mode 
    then that cool trick doesn't happen and the two bars keep being merged. Farewell good looking trick.
    I post two example images to give the idea.
    What could be the reason for this and is there a way to avoid it?

    Thank you in advance
    Attached Images Attached Images
    --
    raccoon29

    "La mia vita finirà quando non vedrò più la gente ridere...non necessariamente alle mie battute "

  2. #2
    Join Date
    Jan 2006
    Location
    travelling
    Posts
    1,116
    Thanks
    8
    Thanked 127 Times in 121 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QMdiSubWindow maximization rudeness

    have you tried QWidget::showMaximized() ? AFAIK it is way to go...
    Current Qt projects : QCodeEdit, RotiDeCode

  3. #3
    Join Date
    Sep 2007
    Location
    Sant'Elpidio a Mare, Italy
    Posts
    194
    Thanks
    54
    Thanked 2 Times in 2 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: QMdiSubWindow maximization rudeness

    Uhm, no, even with showMaximized, it does the same merged arrange...

    Is this a my problem or it is your too? I mean, if you maximize a QMdiSubWindow programmatically, it does the same for you?
    If so, mmh I fear that here we'll need another S.Wysota prophecy...

    BTW: sorry for the late answer, but I've been a bit busy...
    --
    raccoon29

    "La mia vita finirà quando non vedrò più la gente ridere...non necessariamente alle mie battute "

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
  •  
Qt is a trademark of The Qt Company.