Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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?

    Thanks.


  • 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

    Hi,

    Can you show the code where you do both ?

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


Log in to reply