QDoubleSpinBox mouse scroll wheel

218 views
Skip to first unread message

Arvid Schneider

unread,
Mar 19, 2014, 11:12:16 AM3/19/14
to python_in...@googlegroups.com
Hey Guys, 
I am rather new to Qt and I have a doubleSpinbox and want to change values with the mouse wheel, like in Nuke. Wherever the cursor is, those values should be changed while using the mouse wheel.
Can someone help me out how to do that?
Best regards, 
Arvid

Marcus Ottosson

unread,
Mar 19, 2014, 12:55:22 PM3/19/14
to python_in...@googlegroups.com
Sounds like you could override wheelEvent and forward those events to then increment the current value in the box.


--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/f4071062-db49-49f0-b037-9361317d25a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Marcus Ottosson
konstr...@gmail.com

Reply all
Reply to author
Forward
0 new messages