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?
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.Qt Code:
setWindowFlags(Qt::WindowMinimizeButtonHint); setWindowState(Qt::WindowMaximized);To copy to clipboard, switch view to plain text mode
please refer,
http://doc.qt.nokia.com/latest/qt.html#WindowType-enum
hope it helps,
bala
Last edited by BalaQT; 28th March 2011 at 10:27.
Bookmarks