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

How to Disable Maximise button of Main Window



  • Hi All

    I have created a Main Window.
    I want to disable maximise button of this window.

    I tried to do this

    @
    QWidget::showMaximized ();
    setWindowFlags(Qt::WindowMinimiseButtonHint);
    @
    With above code it is disabling maximise button but as I m opening my window in Maximised mode bottom part of my window is gettiong hided in TaskBar.How to resolve this



  • i think you can use showfullscreen()



  • Hi Kitten

    Not working in fullscreen mode I m not even able to see titlebar.


Log in to reply