On Monday, November 8, 2010 2:54pm, "Dan Halbert" <[email protected]> said:
> Scanning dependencies of target QtCore
> [ 2%] Building CXX object
> PySide/QtCore/CMakeFiles/QtCore.dir/PySide/QtCore/qabstracteventdispatcher_wrapper.cpp.obj
> qabstracteventdispatcher_wrapper.cpp
> ...pyside-pkgsetup-0.4.2\modules\pyside\build\PySide\QtCore\PySide\QtCore\qabstracteventdispatcher_wrapper.cpp(999)
> : error C2660: 'QAbstractEventDispatcherWrapper::registerTimer' : function
> does not take 2 arguments
I am still trying to do a Windows build, and am stuck on the error above, which
does not fail in the Linux build.
In QAbstractEventDispatcher, registerTimer() is declared in an overloaded way:
int registerTimer(int interval, QObject *object);
virtual void registerTimer(int timerId, int interval, QObject *object) = 0;
Notice that one is virtual and one is not. The non-virtual one is implemented
in the corresponding qabstracteventdispatcher.cpp file.
QAbstractEventDispatcherWrapper is a shiboken-generated subclass of
QAbstractEventDispatcher, and declares registerTimer only as
virtual void registerTimer(int timerId, int interval, QObject * object);
The error above is due to these two lines:
(959) cppSelf =
(QAbstractEventDispatcherWrapper*)Shiboken::Converter<QAbstractEventDispatcher*
>::toCpp(self);
...
(999) int cppResult = cppSelf->registerTimer(cppArg0,
cppArg1);
I don't know enough about shiboken and the vagaries of the generated C++ code
to diagnose this. If anyone has any clues, I would be grateful. I am using full
Visual Studio 2008 SP1, built against QT 4.7.0 and Python 2.6.6, and the latest
git head PySide sources, as of yesterday.
Dan
_______________________________________________
PySide mailing list
[email protected]
http://lists.openbossa.org/listinfo/pyside