How to program a floating (touch) spinbox with qwidget
-
wrote on 7 Nov 2023, 18:04 last edited by
I want to implement a qwidget like anroid watch app with qt in an already existing program, which is NOT made by qml but with qwidgets. So i guess i have to create a qwidget somehow. How would you create this by your own? I am not sure if i should inherit by qlistwidget or qspinbox (or something i did not think of) or by QWidget? And have you maybe some practical tips? Just paint everything from scratch in the paint method? How would you implement the touch slide so the next time is displayed?
Thank you in advance! -
Hi and welcome to devnet,
The "quick and easy way" would be to use QQuickWidget and use the Tumbler qml type.
Otherwise, I would take a look at Qwt. They have a wheel control that could help you get started.
-
Hi and welcome to devnet,
The "quick and easy way" would be to use QQuickWidget and use the Tumbler qml type.
Otherwise, I would take a look at Qwt. They have a wheel control that could help you get started.
1/3