Modal QWidget in Symbian
-
So i am trying to create a Modal Widget that subclasses QWidget/QFrame . I can get it to work by doing the following.
@
class MyWidget : public QFrame
{
Q_OBJECTpublic: MyWidget(QWidget *parent = 0, Qt::WindowFlags flags = Qt::Dialog);
}
int MyDialog::exec()
{
hide();this->setWindowModality(Qt::WindowModal); show(); .....
}
//usage in MainWindow
MyWidget dialog(this);
int result = dialog.exec();
@The problem is Qt for symbian displays the symbian status bar and menu bar whenever we use the Qt:: Dialog flag.
Is it possible to just have the Modal widget displayed ? -
This causes a little bit of flickering, but...
@
<ADirtyHack>- call showFullScreen() for your dialog
- immediately after, resize the dialog to whatever size you want it to have
</ADirtyHack>
@