×

Discussion Board

Results 1 to 10 of 10

Hybrid View

  1. #1
    Registered User
    Join Date
    Oct 2008
    Posts
    13

    QSystemScreenSaver etc

    I just moved to Nokia QT SDK 1.0 (Windows 7) having previously been using a beta release.

    My application was compiling and running OK with the beta for both the Simulator and Symbian release.

    With the 1.0 Nokia QT SDK, the simulator version now builds/runs but the Symbian version fails to compile, with the following line highlighted in the UI:

    #include <QSystemScreenSaver>

    QSystermScreenSaver: no such file or directory, and also:

    undefined reference to QtMobility::QSystemScreenSaver::QSystemScreenaver(QObject *);

    at compile time.

    I've also got my use of QTM_USE_NAMESPACE showing as an error when symbian is selected (this is also OK when the simulator is selected).

    Can anyone advise how to fix this please ?

    Thanks,
    Rob

  2. #2
    Super Contributor
    Join Date
    Oct 2008
    Location
    INDIA
    Posts
    2,326

    Re: QSystemScreenSaver etc

    Hi, robnugent
    Suppose the class QSystemScreenSaver belongs to module or API ABC.

    Then you have to add that module or API in the .pro file to add in the mobility.

    Just like the below way :

    Code:
     MOBILITY += ABC
    Best regards,
    RaHuL

  3. #3
    Registered User
    Join Date
    Oct 2008
    Posts
    13

    Re: QSystemScreenSaver etc

    Rahul,


    Thanks for the reply.

    I've got:

    MOBILITY = location + systeminfo

    Which was what I thought I needed, and what worked fine with the beta of Nokia QT SDK.

    Rob

  4. #4
    Nokia Developer Champion
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: QSystemScreenSaver etc

    Quote Originally Posted by rahulvala View Post
    Hi, robnugent
    Suppose the class QSystemScreenSaver belongs to module or API ABC.

    Then you have to add that module or API in the .pro file to add in the mobility.

    Just like the below way :

    Code:
     MOBILITY += ABC
    Best regards,
    RaHuL
    Where is the module/API of a given QtMobility class supposed to be documented? (Supposedly QSystemScreenSaver belongs to the SystemInformation API, but you can apparently only find this out by scanning all APIs for the class.)

  5. #5
    Super Contributor
    Join Date
    Oct 2008
    Location
    INDIA
    Posts
    2,326

    Re: QSystemScreenSaver etc

    Hi, danhicksbyron

    Where is the module/API of a given QtMobility class supposed to be documented? (Supposedly QSystemScreenSaver belongs to the SystemInformation API, but you can apparently only find this out by scanning all APIs for the class.)
    I know that QSystemScreenSaver belongs to the SystemInformation API.
    Though I gave him example using ABC.
    So, that he can understand by himself.
    Finally ,He got the solution.

    Rahul,


    Thanks for the reply.

    I've got:

    MOBILITY = location + systeminfo

    Which was what I thought I needed, and what worked fine with the beta of Nokia QT SDK.

    Rob
    Best regards,
    RaHuL

  6. #6
    Nokia Developer Champion
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: QSystemScreenSaver etc

    And the QSystemScreenSaver doc page should say somewhere "systeminfo subcomponent" or some such. One very great general advantage of Qt over Symbian C++ is that you don't have to scan through the documentation tediously to dig out info such as this, but it seems that that advantage is being lost in the rush to add new function.

  7. #7
    Nokia Developer Champion
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: QSystemScreenSaver etc

    Reread what he posted. He indicated that he already had "systeminfo".

  8. #8
    Registered User
    Join Date
    Oct 2008
    Posts
    13

    Re: QSystemScreenSaver etc

    Rahul, Dan,

    Thanks for the replies.

    Just to be absolutely clear:

    1) I've always had 'MOBILITY = location + systeminfo' in my project
    2) Both Symbian and Simulator worked with the BETA of Nokia QT SDK
    3) With Nokia QT SDK 1.0, the simulator build still works and runs
    4) With Nokia QT SDK 1.0, the symbian build fails with the originally reported symptom.

    i.e. I still can't build my application.

    Rob

  9. #9
    Registered User
    Join Date
    Apr 2009
    Posts
    32

    Re: QSystemScreenSaver etc

    Please read the solution at this bug report: http://bugreports.qt.nokia.com/browse/QTSDK-98

  10. #10
    Registered User
    Join Date
    Oct 2008
    Posts
    13

    Re: QSystemScreenSaver etc

    TimsonC200,

    Thanks for the reply - that seems to fix most of the problem - I can now compile and deploy again. (The syntax highlighting is still complaining in the QTCreator GUI, but that's no big deal and I'm happy to wait for an offical update to fix this).

    Thanks again to all for you help,
    Rob

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •