check these,
1. Check if the slot is being called
2. If slot is being called, then it should create a new QMainWindow, check if it not hidden below the QDialog
check these,
1. Check if the slot is being called
2. If slot is being called, then it should create a new QMainWindow, check if it not hidden below the QDialog
sanjeet (15th July 2011)
Hi Santosh,
First of all, thanks for replying.
I have already checked it...
1. Slot is called and
2. A new QMainWindow is created below the QDialog.
But my problem is i want to put this new QMainWindow above the QDialog,(not hidden below the QDialog) when it is created.
so can you help me.
I guess you are creating a modal dialog, try this
Qt Code:
void MyDialog:penMyForm() { setModal(false); myForm->show(); }To copy to clipboard, switch view to plain text mode
Update: You can also make dialog as parent of QMainWindow, this way mainwindow till remain on top of dialog
Qt Code:
void MyDialog:penMyForm() { setModal(false); myForm->show(); }To copy to clipboard, switch view to plain text mode
Last edited by Santosh Reddy; 15th July 2011 at 19:06.
sanjeet (17th July 2011)
Do you show the dialog by calling QDialog::exec()? Use QDialog::show() instead of calling QDialog::exec(). If you want the main window always on top, you can set it as modal (setWindowModality(Qt::WindowModality);
~ We are nothing in this universe ~
sanjeet (17th July 2011)
Bookmarks