Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. [Solved] Cannot include QSystemDeviceInfo
Forum Updated to NodeBB v4.3 + New Features

[Solved] Cannot include QSystemDeviceInfo

Scheduled Pinned Locked Moved QML and Qt Quick
26 Posts 6 Posters 12.9k 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.
  • Z Offline
    Z Offline
    ZapB
    wrote on last edited by
    #16

    Yes the MOBILITY variable in the .pro file needs to be in uppercase. The missing symbian capabilities flag would have caused errors later on in the compilation (or maybe at runtime).

    Glad to see you hav eit working now. Good luck with the rest of your project.

    Nokia Certified Qt Specialist
    Interested in hearing about Qt related work

    1 Reply Last reply
    0
    • S Offline
      S Offline
      spode
      wrote on last edited by
      #17

      thank you! :)

      1 Reply Last reply
      0
      • R Offline
        R Offline
        rishygupta
        wrote on last edited by
        #18

        I am making a desktop app and not able to include QSystemDeviceInfo all the above steps i have tried but it dosnt work its giving error no such QSystemDeviceInfo file.i m using qt 4.7

        1 Reply Last reply
        0
        • S Offline
          S Offline
          spode
          wrote on last edited by
          #19

          Did you try to reinstall qt?

          1 Reply Last reply
          0
          • R Offline
            R Offline
            rishygupta
            wrote on last edited by
            #20

            ya i have tried in 3 system but it didnt worked i am compiling it by desktop compiler not Symbian or etc...

            1 Reply Last reply
            0
            • S Offline
              S Offline
              spode
              wrote on last edited by
              #21

              What is the application output?

              1 Reply Last reply
              0
              • R Offline
                R Offline
                rishygupta
                wrote on last edited by
                #22

                QSystemDeviceInfo: No such file or directory

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  spode
                  wrote on last edited by
                  #23

                  As for me with QMessage. But if I go to the folder that contains qmessage.h, the file stays there. What about you?

                  1 Reply Last reply
                  0
                  • R Offline
                    R Offline
                    rishygupta
                    wrote on last edited by
                    #24

                    i am not able to even compile the code because of QSystemDeviceInfo: No such file or directory
                    as i have added below in pro file
                    symbian:TARGET.CAPABILITY = ReadDeviceData
                    CONFIG += mobility
                    MOBILITY += systeminfo

                    and trying to run in qt desktop mode of compiler

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      spode
                      wrote on last edited by
                      #25

                      i will edit the title to continue this discussion.

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        spode
                        wrote on last edited by
                        #26

                        that is it:
                        @
                        #include <QScrollArea>
                        #include <QDialog>
                        #include <QtSystemInfo/QSystemInfo>

                        #include <qmessage.h>

                        QTM_USE_NAMESPACE

                        PaginaPercheWortfluss::PaginaPercheWortfluss(QTabWidget *parent) :
                        QTabWidget(parent)
                        {
                        this->setAttribute(Qt::WA_LockLandscapeOrientation);

                        QWidget * widget1 = new QWidget;//informazioni
                        QVBoxLayout *layou = new QVBoxLayout(widget1);
                        QLabel *titolo1 = new QLabel(QString("<h2>Wortfluss: informazioni</h2>"));
                        QLabel *testoInfo;
                        

                        ...
                        @

                        QTM_USE_NAMESPACE!!! ;)

                        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