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_OBJECT

    public:
    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 ?



  • @Qt::FramelessWindowHint@
    It may help you when set WindowsFlags value.



  • 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>
      @

Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.