SOLVED
Thanks for your help and time wysota.
Cheers!
{
if(this
->linhaTempo.
contains(this
->mapFromGlobal
(QCursor::pos()))) {
qDebug() << "OK";
this->dentro = true;
}
else
{
qDebug() << "Fora";
this->dentro = false;
}
this->update();
}
void fluxoCaixaWidget::mouseMoveEvent(QMouseEvent *)
{
if(this->linhaTempo.contains(this->mapFromGlobal(QCursor::pos())))
{
qDebug() << "OK";
this->dentro = true;
}
else
{
qDebug() << "Fora";
this->dentro = false;
}
this->update();
}
To copy to clipboard, switch view to plain text mode
Bookmarks