![]() Registered Member ![]()
|
Hi to all,
I'm trying to approach the Qt and Kde Development, and it is amazing but I have found a small issue with fetching the QEvent::MouseButtonRelease in a QWidget that is blocking my way ... ![]() Currently as very basic starting point I'm playing with Kruler .. anyway .. Every time I catch the left mouse button pressure from Event( QEvent *e ) or mousePressEvent( QMouseEvent *e ) and I start to move the widget with something like this ... #ifdef Q_WS_X11 XUngrabPointer( QX11Info::display(), QX11Info::appTime() ); NETRootInfo wm_root( QX11Info::display(), NET::WMMoveResize ); wm_root.moveResizeRequest( winId(), e->globalX(), e->globalY(), NET::Move ); #endif return false ... The MouseButtonRelease isn't catched so it's very difficult to put same code at the end the event .. As example if you try to move kruler with the native movement you'll see the labels don't show again after a dragging. .. you have to get out and get in again with the mouse cursor to show them again. You should find the same behavior also in Knotes, trying to put a breakpoint in the eventFilter in the MouseButtonRelease section it will never be hit. Please can you give me some suggestions Thanks a lot Luca
dj3mb3, proud to be a member of KDE forums since 2008-Oct.
|
Registered users: Bing [Bot], Google [Bot], Sogou [Bot]