Results 1 to 2 of 2

Thread: PROBLEM INCLUDING 'QSystemInfo' HEADER FILE

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2010
    Posts
    16
    Thanks
    5
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows Symbian S60 Maemo/MeeGo

    Default PROBLEM INCLUDING 'QSystemInfo' HEADER FILE

    I am working on my first Qt project using the beta version of Qt 4.6 (I had a problem installing the final version). I am writing an application intended only for Symbian mobile devices and I want it to detect whether the device has a touch screen or not. I pasted the following code snippet from the documentation (the page entitled 'Quickstart Example' ).
    Qt Code:
    1. #ifdef Q_OS_SYMBIAN
    2. #include <qsysteminfo.h>
    3. #else
    4. #include <QSystemInfo> //(1)
    5. #endif
    6. using namespace QtMobility; //(2)
    To copy to clipboard, switch view to plain text mode 
    However, I get a compiler error 'cannot open include file: 'QSystemInfo': (see attachment). I have done the same thing before without any problem. How should I proceed? Several related questions are as follows:- An attempt to load the final version of Qt 4.6 failed. (I can provide a snap-shot of the screen message later if appropriate). Should I uninstall the beta version before installing the final version? If I have developed a project on the beta version, can I build it on the final version?
    Attached Images Attached Images

Similar Threads

  1. Problem of including Widgets into DLL
    By dsedov in forum Qt Programming
    Replies: 15
    Last Post: 14th July 2021, 23:05
  2. Replies: 2
    Last Post: 28th February 2010, 07:38
  3. Problem with including lib files
    By metow in forum Qt Tools
    Replies: 2
    Last Post: 12th December 2009, 21:57
  4. How to read text file including all empty spaces..
    By umulingu in forum Qt Programming
    Replies: 1
    Last Post: 29th September 2009, 07:33
  5. 'QFile' Header File Problem
    By hasnatzaidi in forum Qt Programming
    Replies: 2
    Last Post: 11th June 2009, 21:40

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.