
Originally Posted by
wysota
I think events are delivered fine and the problem is with redrawing the canvas while mouse events are delivered.
not sure;
i added update whenever any event is delivered like so:
...
installEventFilter( this );
...
bool polly
::OgreWidget::event(QEvent *e
) {
update();
}
{
update();
}
...
installEventFilter( this );
...
bool polly::OgreWidget::event(QEvent *e)
{
update();
return QWidget::event(e);
}
bool polly::OgreWidget::eventFilter(QObject *o, QEvent *e)
{
update();
return QWidget::eventFilter(o,e);
}
To copy to clipboard, switch view to plain text mode
while my frame rate at idle improved (to ~1400), when drag is not moving it drops back to <15
reading this:
http://doc.qt.nokia.com/4.6/dnd.html
i found this comment:
"Although the user may take some time to complete the dragging operation, as far as the application is concerned the exec() function is a blocking function that returns with one of several values. These indicate how the operation ended, and are described in more detail below."
can this have something to do with it?
Bookmarks