Ctrl + MouseWheelUp/Down Shortcut
Solved
General and Desktop
-
Hello , i need to connect some slot to (Ctrl+MouseWheelUp/Down) Event(shortcut) , didn't find anything helpful in stackoverflow/google -> So can you suggest smt ?
-
Hi @thaiboydigital,
Add a virtual member function
wheelEvent(QWheelEvent *e)
to your Widget.Then use the following snippet:
void Wigdet::wheelEvent(QWheelEvent *e) { if (e->modifiers() & Qt::ControlModifier) { // here you have Ctrl+MouseWheel } }
Regards