Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.
|
|
Source code |
1 2 3 4 5 |
void YourMainWindow::closeEvent( QCloseEvent * ev )
{
if( data.okClose ) ev->accept();
else ev->ignore();
}
|
bad coding but thats what i did. entire appln bar i removed by resizing and pushing the appln to the top.
Quoted
Originally posted by nijish
hmmm... i got the same problem sometime back. what is your package?
anyways what i did was, i had harcoded my appln to a certain resolution say 100x100. so minimize, maximize, etc became a problem. eventually i ended up using setGeometry()bad coding but thats what i did. entire appln bar i removed by resizing and pushing the appln to the top.
ie, do something like setGeometry(-10,-10,x,y).