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. Problem in QDialog Full Screen with Exec() ?
Forum Updated to NodeBB v4.3 + New Features

Problem in QDialog Full Screen with Exec() ?

Scheduled Pinned Locked Moved Mobile and Embedded
10 Posts 9 Posters 12.2k 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.
  • S Offline
    S Offline
    syedasadalibs03
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • V Offline
      V Offline
      vcsala
      wrote on last edited by
      #2

      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)

      1 Reply Last reply
      0
      • G Offline
        G Offline
        goetz
        wrote on last edited by
        #3

        Try

        @
        QDialog *d = new QDialog(this);
        d->setWindowState(d.windowState() | Qt::WindowMaximized);
        d->exec();
        @

        http://www.catb.org/~esr/faqs/smart-questions.html

        1 Reply Last reply
        0
        • V Offline
          V Offline
          vsorokin
          wrote on last edited by
          #4

          Volker Qt::WindowMaximized != Qt::WindowFullScreen ;)

          --
          Vasiliy

          1 Reply Last reply
          0
          • G Offline
            G Offline
            goetz
            wrote on last edited by
            #5

            Vass, upps... right!

            I leave the correct line as a puzzle for the audience ;-)

            http://www.catb.org/~esr/faqs/smart-questions.html

            1 Reply Last reply
            0
            • I Offline
              I Offline
              Immii
              wrote on last edited by
              #6

              calling slot showMaximized() should also do the job.

              @
              QDialog *d = new QDialog(this);
              d->showMaximized()
              @

              [Edit: code markup fixed, Volker]

              1 Reply Last reply
              0
              • G Offline
                G Offline
                giesbert
                wrote on last edited by
                #7

                I think, we were at fullscreen, not maximized :-)

                Nokia Certified Qt Specialist.
                Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

                1 Reply Last reply
                0
                • K Offline
                  K Offline
                  kamalakshantv
                  wrote on last edited by
                  #8

                  [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

                  1 Reply Last reply
                  0
                  • G Offline
                    G Offline
                    guru
                    wrote on last edited by
                    #9

                    QDialog *newdialog;

                    newdialog = new QDialog(this);

                    newdialog->showfullscreen();

                    use above code..

                    1 Reply Last reply
                    0
                    • V Offline
                      V Offline
                      vittalonline
                      wrote on last edited by
                      #10

                      QDesktopWidget desk;
                      QRect screenres = desk.screenGeometry(0);
                      newDialog->setGeometry(QRect(screenres.x(),screenres.y(),screenres.width(),screenres.height()));

                      newDialog->show();

                      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