ericV
11th September 2009, 13:31
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:
void LED::mouseMoveEvent(QMouseEvent *me)
{
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)'
}
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.
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:
void LED::mouseMoveEvent(QMouseEvent *me)
{
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)'
}
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.