Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Modal QWidget in Symbian
Forum Updated to NodeBB v4.3 + New Features

Modal QWidget in Symbian

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 3 Posters 3.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    archerabi
    wrote on last edited by
    #1

    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 ?

    1 Reply Last reply
    0
    • K Offline
      K Offline
      khris
      wrote on last edited by
      #2

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

      Let it be, let it be, let it be, walk your way.

      1 Reply Last reply
      0
      • F Offline
        F Offline
        Fuzzbender
        wrote on last edited by
        #3

        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>
          @
        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved