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!
#ifndef MYPICWIEWAREA_H
#define MYPICWIEWAREA_H
#include <QGraphicsView>
#include <QtGui>
#include <QtCore>
#include <QFutureWatcher>
#include <QFuture>
{
Q_OBJECT
public:
CMYPicViewArea
(QWidget *parent
= 0);
virtual ~CMYPicViewArea ();
private:
int m_Row;
int m_Column;
QFutureWatcher<int> * m_watcher;
};
#endif
#ifndef MYPICWIEWAREA_H
#define MYPICWIEWAREA_H
#include <QGraphicsView>
#include <QtGui>
#include <QtCore>
#include <QFutureWatcher>
#include <QFuture>
class CMYPicViewArea : public QGraphicsView
{
Q_OBJECT
public:
CMYPicViewArea (QWidget *parent = 0);
virtual ~CMYPicViewArea ();
private:
int m_Row;
int m_Column;
QFutureWatcher<int> * m_watcher;
QGraphicsScene m_GraphicsScene;
};
#endif
To copy to clipboard, switch view to plain text mode
Bookmarks