Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Nokia N8 showFullScreen() don't work

    Mobile and Embedded
    3
    32
    11513
    Loading More Posts
    • 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.
    • M
      Matze5590 last edited by

      and mainwindow.ui:

      @<?xml version="1.0" encoding="UTF-8"?>
      <ui version="4.0">
      <class>MainWindow</class>
      <widget class="QDialog" name="MainWindow">
      <property name="windowModality">
      <enum>Qt::NonModal</enum>
      </property>
      ...@

      1 Reply Last reply Reply Quote 0
      • A
        anselmolsm last edited by

        Well, based in the code you posted, you don't instantiate-and-show your MainWindow in main.cpp, just a standard QDialog :-)

        Anselmo L. S. Melo (anselmolsm)

        1 Reply Last reply Reply Quote 0
        • A
          alexander last edited by

          why QDialog, must be MainWindow:

          main.cpp:

          @int main(int argc, char *argv[])
          {
          QApplication a(argc, argv);
          MainWindow dlg;
          dlg.showFullScreen();
          return a.exec();
          }@

          1 Reply Last reply Reply Quote 0
          • M
            Matze5590 last edited by

            okay, thanks!
            but now i have the same problem again:
            i can only start the app when i rotate the device!
            its not possible to run it while the device is in the normal position!
            the app is exiting always!

            1 Reply Last reply Reply Quote 0
            • A
              alexander last edited by

              comment this line
              @ui->setupUi(this);@
              does program work?

              1 Reply Last reply Reply Quote 0
              • M
                Matze5590 last edited by

                no, even not when i rotate it!

                1 Reply Last reply Reply Quote 0
                • A
                  alexander last edited by

                  But with QDialog all works correctly?

                  1 Reply Last reply Reply Quote 0
                  • M
                    Matze5590 last edited by

                    no, it crashes when i start it. its just working with the gray screen when i dont add buttons etc..
                    there has to be a problem with showFullscreen() because when i use showMaximized everythings ok, but than theres to low space for my app.
                    any idea?

                    1 Reply Last reply Reply Quote 0
                    • M
                      Matze5590 last edited by

                      ok, i tried around an found out that its not a problem with showFullscreen();.
                      Its seems to be a problem with the images i have used.
                      i removed all my .bmp files and the app works.
                      now i dont use images, but it looks bad, so what can i use therefor now?
                      or is it maybe a problem in the .pro file?
                      the line RESOURCES: images.qrc ?? but it worked fine with symbian 5th.
                      any other idea? or other image types to use?
                      thanks!

                      1 Reply Last reply Reply Quote 0
                      • A
                        alexander last edited by

                        Can you write test with images? And upload it?

                        1 Reply Last reply Reply Quote 0
                        • M
                          Matze5590 last edited by

                          i tried it with .jpg files now, and it worked.
                          but it is very buggy now. so very often the wrong files are shown, or the files are not correctly positioned or both! maybe its a problem of icons?? i use these .jpg files as icons on buttons.
                          i will try to upload a small sample.

                          1 Reply Last reply Reply Quote 0
                          • A
                            alexander last edited by

                            Not sure that is a problem of icons.

                            1 Reply Last reply Reply Quote 0
                            • M
                              Matze5590 last edited by

                              i tried to create a smaller sample, but i don't have this problem in smaller projects.
                              do you also have a nokia n8?? maybe i can send you the .sis file. then you will understand the problem better! because at the beginning its working fine, but later its doing things witch i have not programmed!

                              1 Reply Last reply Reply Quote 0
                              • M
                                Matze5590 last edited by

                                so it also could be a problem with the storage handling, but i think that this is not possible because my .sis file has only 145 kb.

                                1 Reply Last reply Reply Quote 0
                                • A
                                  alexander last edited by

                                  yes, I have

                                  1 Reply Last reply Reply Quote 0
                                  • M
                                    Matze5590 last edited by

                                    here's my mastermind.sis

                                    "mastermind":http://rapidshare.com/files/425783453/mastermind.zip

                                    thanks

                                    1 Reply Last reply Reply Quote 0
                                    • ?
                                      Guest last edited by

                                      hi Matze5590, can you markup the link pls

                                      1 Reply Last reply Reply Quote 0
                                      • M
                                        Matze5590 last edited by

                                        did you also have problems with it??

                                        1 Reply Last reply Reply Quote 0
                                        • A
                                          alexander last edited by

                                          Matze5590, I have not yet tried it, I'll try tomorrow.

                                          1 Reply Last reply Reply Quote 0
                                          • M
                                            Matze5590 last edited by

                                            okay, i did it! it semms to be a problem with the storage.
                                            i created my own buttons with their own paintEvent, and everything works fine!

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post