Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to program a floating (touch) spinbox with qwidget
Forum Updated to NodeBB v4.3 + New Features

How to program a floating (touch) spinbox with qwidget

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 263 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    robinator
    wrote on 7 Nov 2023, 18:04 last edited by
    #1

    watch.jpg

    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!

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 7 Nov 2023, 20:11 last edited by
      #2

      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.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      R 1 Reply Last reply 8 Nov 2023, 07:50
      1
      • S SGaist
        7 Nov 2023, 20:11

        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.

        R Offline
        R Offline
        robinator
        wrote on 8 Nov 2023, 07:50 last edited by
        #3

        @SGaist Thank you for your reply! The wheel control (if it is the top right widget, what i will check later on) looks promising. To switch to qml is sadly not an option for me. Thank you once again for sharing that site.

        1 Reply Last reply
        0

        1/3

        7 Nov 2023, 18:04

        • Login

        • Login or register to search.
        1 out of 3
        • First post
          1/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved