Re: Set mouse tracking issue
You are saying that this always outputs "Move" messages regardless of mouse buttons:
Code:
#include <QtGui>
#include <QDebug>
Q_OBJECT
public:
{
qDebug() << hasMouseTracking(); // outputs false
}
protected:
{
qDebug() << "Move";
}
};
int main(int argc, char *argv[])
{
MyView m;
m.show();
return app.exec();
}
#include "main.moc"
Certainly doesn't here with Qt 4.7.4.
Post a small, compilable example that demonstrates the problem.
1 Attachment(s)
Re: Set mouse tracking issue
Hello ChrisW67,
I have made some changes within the diagram scene example and mouse tracking is set to false explicitly and still i get the mouse tracking enabled in Qt 4.4.3.
Please check it out if this is one of the bugs inside it or is it something that i am missing while re-engineering ?
Regards
Sajjad
Re: Set mouse tracking issue
Mouse tracking is enabled on the viewport. This is caused by the following call:
Code:
setTransformationAnchor(AnchorUnderMouse);
Re: Set mouse tracking issue
Thanks
Is there any reference to this informational hint or you digged down to the source ?
Regards
Sajjad
Re: Set mouse tracking issue
I did what you should have done. I took your code and started commenting out lines that might have enabled features requiring mouse tracking. This was the second thing I tried.