Problem Qt 4.8 + MAC -> mouse buttons after drag and drog
-
Hi and welcome to devnet,
What do you mean by "the MAC understands that after the drop the left mouse is pressed" ?
Also what exact version of Qt 4.8 and OS X are you using ?
-
After to finish the drag-and-drop, when I read the mouse state, Qt informs me that the mouse left button is pressed.
After the drag and drop I need to perform a mouse wheel:void MyWidget::doWheel ( QWheelEvent * event ) { if (layerStack) { layerStack->handleEvent(EventData(event, realWidget)); } }
EventData has the following code:
init(e, e->buttons(), e->modifiers()); void EventData::init(QInputEvent *e, Qt::MouseButtons buttons, Qt::KeyboardModifiers keyboard) { if (buttons & Qt::LeftButton) { modifiers |= MouseEventModifier::Left; } if (buttons & Qt::RightButton) { modifiers |= MouseEventModifier::Right; } if (buttons & Qt::MidButton) { modifiers |= MouseEventModifier::Middle; } ... }
In this moment it recognizes as Qt::LeftButton was active.
Qt: 4.8.7
Mac: 10.10.5 (OSX Yosemite) -
Why do you need that scroll event for ?
-
With drag and drop I drag a image to the main panel.
In the main panel a image can be actually a series of images. In this case I advance the images scrolling it. It is the purpose of scrolling. It is an event that can be occur any moment after the drag-and-drop.If I click on the panel with any mouse button before to scroll, the scroll works, but this is not desirable (the forced click)
-
Can you share the bug report link ?
-
@SGaist https://bugreports.qt.io/browse/QTBUG-27634
I don't have any option to mark this question as solved. Does it because I didn't created it with a question flag or something like that? If you can, I would be glad if you do that to maybe help other users with the same problem.
-
Don't you have that option with the "Topic Tool" button ?
-
No worries, that happens ;)