PDA

View Full Version : 5.0.0.5 broken under QT 3.3.0?



seqseq
02-14-2004, 12:56 AM
Won't compile for me...

xmlconv.cpp: In member function `bool DomConvenience::elementToVariant(const
QDomElement&, QVariant&)';
xmlconv.cpp:255: error: call of overloaded `QCursor(uint)' is ambiguous

/usr/qt/3/include/qcursor.h:93: error: candidates are:
QCursor::QCursor(long unsigned int)
/usr/qt/3/include/qcursor.h:77: error:
QCursor::QCursor(const QCursor&)
/usr/qt/3/include/qcursor.h:72: error:
QCursor::QCursor(int)

:)

Zoolander
02-14-2004, 02:20 AM
Open the file in a text editor, go to that line, and where it says:

v = QVariant(QCursor(e.attribute("shape").toUInt(&ok, 10)));

change it to

v = QVariant(QCursor((int)e.attribute("shape").toUInt(&ok, 10)));

and it will compile.

seqseq
02-14-2004, 02:35 AM
you ROCK! Thanks!

Leetlewon
02-15-2004, 09:55 AM
Odd, I am using 3.30b1 and it compiles fine without changing this.