You are saying that this always outputs "Move" messages regardless of mouse buttons:
#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"
#include <QtGui>
#include <QDebug>
class MyView: public QGraphicsView {
Q_OBJECT
public:
MyView(QWidget *p = 0): QGraphicsView(p)
{
resize(QSize(320, 240));
qDebug() << hasMouseTracking(); // outputs false
}
protected:
void mouseMoveEvent( QMouseEvent * event )
{
qDebug() << "Move";
}
};
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
MyView m;
m.show();
return app.exec();
}
#include "main.moc"
To copy to clipboard, switch view to plain text mode
Certainly doesn't here with Qt 4.7.4.
Post a small, compilable example that demonstrates the problem.
Bookmarks