Hi!
I am trying to work with a tutorial from the wiki, its called Moving Widgets:
http://wiki.qtcentre.org/index.php?title=Moving_widgets
My Problem is that i keep getting the following errors:
error: no match for call to `(QPoint) (const QPoint)'
error: no match for call to `(QPoint) (QPoint)'
in this code:
Qt Code:
{ me->accept(); // do not propagate if (isWindow()) move(me->globalPos() - move); //<- error: no match for call to `(QPoint) (const QPoint)' else move(mapToParent(me->pos() - move)); //<- error: no match for call to `(QPoint) (QPoint)' }To copy to clipboard, switch view to plain text mode
LED is a subclass from QLable
and move has been declared as QPoint
It is basically the same as the tutorial, and i don't understand what the error is trying to tell me.
Bookmarks