I don't want when double click on title bar of qmainwindow then qmainwindow resize to normal size.I try event filter but no result.I want qmainwindow show in maximum size and minimum size on taskbar,not normal size.Anyone can help me?
Printable View
I don't want when double click on title bar of qmainwindow then qmainwindow resize to normal size.I try event filter but no result.I want qmainwindow show in maximum size and minimum size on taskbar,not normal size.Anyone can help me?
Hi, just use the windowflags,
put this code in constructor. there is no need for you to disable the double click.Code:
setWindowFlags(Qt::WindowMinimizeButtonHint); setWindowState(Qt::WindowMaximized);
please refer,
http://doc.qt.nokia.com/latest/qt.html#WindowType-enum
hope it helps,
bala