Re: [Interest] Compilation error with QtConcurrent::run

2014-12-10 Thread Constantin Makshin
I don't think the documentation on QtConcurrent::run() needs to be changed because this problem is not related/specific to Qt. On Dec 10, 2014 8:35 PM, "Juan Navarro" wrote: > I did it creating a typedef for the needed method: > > typedef bool (QImage::*QImageSaveFn)(const QString&, const char*,

Re: [Interest] Compilation error with QtConcurrent::run

2014-12-10 Thread Juan Navarro
I did it creating a typedef for the needed method: typedef bool (QImage::*QImageSaveFn)(const QString&, const char*, int) const; And then issuing just like the sample given in the wiki: static QImage image = IPROJECT.getOutputCompositionImage(); const QString fileName = "/tmp/w1.png"; const char

[Interest] Compilation error with QtConcurrent::run

2014-12-10 Thread Juan Navarro
I'm following this: http://qt-project.org/doc/qt-4.8/qtconcurrentrun.html But the given example for calling member functions doesn't work for at least one Qt class / method: bool QImage::save(const QString &fileName, const char* format=0, int quality=-1) const; The compiler cannot decide which of

Re: [Interest] compilation error in qdatetime

2013-11-08 Thread Thiago Macieira
On sexta-feira, 8 de novembro de 2013 17:03:32, Graham Labdon wrote: > I have defined a macro named min in my code! You probably meant "I have *not* defined [...]" I understand. But you included a header that does define one: windows.h. Stop doing that. windows.h has a facility to ask it not to

Re: [Interest] compilation error in qdatetime

2013-11-08 Thread Graham Labdon
-project.org Subject: Re: [Interest] compilation error in qdatetime On sexta-feira, 8 de novembro de 2013 16:36:14, Graham Labdon wrote: > Hi > I amusing Qt5 with Visual Studio and one of my projects is giving the > following error > > c:\qt\qt5.1.1\5.1.1\msvc2012\include\qtcore\

Re: [Interest] compilation error in qdatetime

2013-11-08 Thread Thiago Macieira
On sexta-feira, 8 de novembro de 2013 16:36:14, Graham Labdon wrote: > Hi > I amusing Qt5 with Visual Studio and one of my projects is giving the > following error > > c:\qt\qt5.1.1\5.1.1\msvc2012\include\qtcore\qdatetime.h(121): error C2589: > '(' : illegal token on right side of '::' > 1>c:\qt\q

[Interest] compilation error in qdatetime

2013-11-08 Thread Graham Labdon
Hi I amusing Qt5 with Visual Studio and one of my projects is giving the following error c:\qt\qt5.1.1\5.1.1\msvc2012\include\qtcore\qdatetime.h(121): error C2589: '(' : illegal token on right side of '::' 1>c:\qt\qt5.1.1\5.1.1\msvc2012\include\qtcore\qdatetime.h(121): error C2059: syntax error

Re: [Interest] Compilation error

2013-08-29 Thread Alexey Pavlov
2013/8/29 Koehne Kai > > > > -Original Message- > > From: Graham Labdon [mailto:graham.lab...@avalonsciences.com] > > Sent: Thursday, August 29, 2013 9:10 AM > > To: Koehne Kai; Thiago Macieira; interest@qt-project.org > > Subject: RE: [Interest] Co

Re: [Interest] Compilation error

2013-08-29 Thread Koehne Kai
> -Original Message- > From: Graham Labdon [mailto:graham.lab...@avalonsciences.com] > Sent: Thursday, August 29, 2013 9:10 AM > To: Koehne Kai; Thiago Macieira; interest@qt-project.org > Subject: RE: [Interest] Compilation error > > Hi > Where can I find a list

Re: [Interest] Compilation error

2013-08-29 Thread Graham Labdon
; interest@qt-project.org Subject: Re: [Interest] Compilation error >On quarta-feira, 28 de agosto de 2013 15:27:07, Koehne Kai wrote: >> > main.cpp:196:36: error: '_fileno' was not declared in this scope >> >> [...] >> >> > I would be grateful if an

Re: [Interest] Compilation error

2013-08-28 Thread Koehne Kai
>On quarta-feira, 28 de agosto de 2013 15:27:07, Koehne Kai wrote: >> > main.cpp:196:36: error: '_fileno' was not declared in this scope >> >> [...] >> >> > I would be grateful if anyone can advise why I am getting this error and >> > how I might fix it >> >> First of all, you're apparently not alo

Re: [Interest] Compilation error

2013-08-28 Thread Thiago Macieira
On quarta-feira, 28 de agosto de 2013 15:27:07, Koehne Kai wrote: > > main.cpp:196:36: error: '_fileno' was not declared in this scope > > [...] > > > I would be grateful if anyone can advise why I am getting this error and > > how I might fix it > > First of all, you're apparently not alone > h

Re: [Interest] Compilation error

2013-08-28 Thread Koehne Kai
> -Original Message- > From: interest-bounces+kai.koehne=digia@qt-project.org > [mailto:interest-bounces+kai.koehne=digia@qt-project.org] On Behalf > Of Graham Labdon > Sent: Wednesday, August 28, 2013 5:16 PM > To: interest@qt-project.org > Subject: [Intere

[Interest] Compilation error

2013-08-28 Thread Graham Labdon
Hi I just downloaded Qt 5.1.1 I used configure as follows configure -platform win32-g++ -opengl desktop When I compile I am getting this error - main.cpp: In member function 'virtual QVariant PatternistApplicationParser::defaultValue(const QApplicationArgument&) const': main.cpp:196:36: error: '