Results 1 to 3 of 3

Thread: App compiles for Qt Simulator, fails to compile for Symbian Device - QFutureWatcher

  1. #1
    Join Date
    Aug 2010
    Posts
    5
    Thanked 3 Times in 1 Post
    Platforms
    Symbian S60 Maemo/MeeGo

    Default App compiles for Qt Simulator, fails to compile for Symbian Device - QFutureWatcher

    Hi - I'm writing a Qt app for Symbian. My app does compile and run in Qt simulator ( I tried both Qt Simulator for MinGW 4.4 and Qt Simulator for Visual Studio 2008, both worked), but it fails when compiling for Symbian Device, with the following error:

    >ISO C++ forbids declaration of 'QFutureWatcher' with no type
    >expect ';' before '<' token

    Unfortunately I cannot spot anything wrong with the 'QFutureWatcher' declaration ... and also there is the fact that it compiles and works for the Qt Simulator ...

    Does anyone have any toughts of what could be going wrong?

    Thanks!

    Qt Code:
    1. #ifndef MYPICWIEWAREA_H
    2. #define MYPICWIEWAREA_H
    3.  
    4. #include <QGraphicsView>
    5. #include <QtGui>
    6. #include <QtCore>
    7. #include <QFutureWatcher>
    8. #include <QFuture>
    9.  
    10.  
    11. class CMYPicViewArea : public QGraphicsView
    12. {
    13. Q_OBJECT
    14. public:
    15. CMYPicViewArea (QWidget *parent = 0);
    16.  
    17. virtual ~CMYPicViewArea ();
    18.  
    19. private:
    20. int m_Row;
    21. int m_Column;
    22. QFutureWatcher<int> * m_watcher;
    23. QGraphicsScene m_GraphicsScene;
    24.  
    25. };
    26.  
    27. #endif
    To copy to clipboard, switch view to plain text mode 
    Last edited by wysota; 24th October 2010 at 21:15. Reason: missing [code] tags

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: App compiles for Qt Simulator, fails to compile for Symbian Device - QFutureWatch

    Symbian and Simulator are two completely different platforms with different capabilities. Maybe Qt for Symbian doesn't support QFutureWatcher? From what I see Qt for Symbian doesn't support Qt Concurrent.

    http://doc.trolltech.com/4.7/platfor...-functionality
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Aug 2010
    Posts
    5
    Thanked 3 Times in 1 Post
    Platforms
    Symbian S60 Maemo/MeeGo

    Default Re: App compiles for Qt Simulator, fails to compile for Symbian Device - QFutureWatch

    Thanks for the response. As you suggested, it looks like the support for QFuture and QtConcurrent is missing in Qt for Symbian.

    http://bugreports.qt.nokia.com/browse/QTBUG-5182

Similar Threads

  1. Different behaviour for Simulator and Device
    By lyhoanghai in forum Qt for Embedded and Mobile
    Replies: 4
    Last Post: 20th October 2010, 12:47
  2. Symbian On-Device Debugging
    By Granty in forum Qt for Embedded and Mobile
    Replies: 4
    Last Post: 19th October 2010, 13:57
  3. Font in simulator and S60 device don't look the same
    By Erazem in forum Qt for Embedded and Mobile
    Replies: 2
    Last Post: 20th August 2010, 20:57
  4. Compile on simulator but not on Symbian
    By curreli in forum Qt Programming
    Replies: 2
    Last Post: 13th August 2010, 09:18

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.