Problem in QDialog Full Screen with Exec() ?
-
i am using Qt for Symbain 4.6 and, i want to show the QDialog in Full screen through exec() because i want Modal Dialog
Thanks in Advance
-
Can you be more specific? What is your problem exactly? Maybe it is a good idea to show some code snippets related to the problem (do not forget to use '@' tags for the codes)
-
Try
@
QDialog *d = new QDialog(this);
d->setWindowState(d.windowState() | Qt::WindowMaximized);
d->exec();
@ -
Volker Qt::WindowMaximized != Qt::WindowFullScreen ;)
-
Vass, upps... right!
I leave the correct line as a puzzle for the audience ;-)
-
calling slot showMaximized() should also do the job.
@
QDialog *d = new QDialog(this);
d->showMaximized()
@[Edit: code markup fixed, Volker]
-
I think, we were at fullscreen, not maximized :-)
-
[quote author="syedasadalibs03" date="1292948468"]i am using Qt for Symbain 4.6 and, i want to show the QDialog in Full screen through exec() because i want Modal Dialog
Thanks in Advance[/quote]
By modal do you mean like Global Query Dialogs in Symbian
-
QDialog *newdialog;
newdialog = new QDialog(this);
newdialog->showfullscreen();
use above code..
-
QDesktopWidget desk;
QRect screenres = desk.screenGeometry(0);
newDialog->setGeometry(QRect(screenres.x(),screenres.y(),screenres.width(),screenres.height()));newDialog->show();