Please nominate your Qt Champions for 2021!

QMainWindow showMaximized() only works once...

  • Hello,

    When using showMaximized() with QT on the qMainWindow the first call to the function works great but then subsequent calls the window isn't maximized.

    Is there a reason for this?


  • Moderators

    The window is already maximized, perhaps?

  • [quote author="sierdzio" date="1410976082"]The window is already maximized, perhaps?[/quote]

    I shrink the window down with another function.

    Essentially I have a function that makes the window full screen using one function and then another function that shrinks it down.

    The function that does the resizing "down" works but then I can't do showMaximized() again after the first call..

  • Lifetime Qt Champion


    Can you show the code where you do both ?

    Also, what version of Qt on what OS are you running ?

Log in to reply