Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved is there any On/off animated widget is there in qt c++?

    General and Desktop
    4
    7
    1455
    Loading More Posts
    • 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.
    • T
      thippu last edited by thippu

      Is there any widget like this :
      [A o--| B]

      [A |--o B]

      On/Off button

      J.Hilk 1 Reply Last reply Reply Quote 0
      • mrjj
        mrjj Lifetime Qt Champion last edited by

        Hi
        You mean like a big switch button ?
        alt text
        https://www.youtube.com/watch?v=m4NIeakn1Xw

        Its something you must construct yourself via custom widgets or
        find something to reuse.

        T 1 Reply Last reply Reply Quote 3
        • J.Hilk
          J.Hilk Moderators @thippu last edited by

          @thippu
          nothing build in in QWidgets.

          QML hast the Switch - quick control:
          controls 1.Xalt text

          controls 2.x
          Showcase video here

          and a quick google search resulted in this Qwidget based Switch class
          https://stackoverflow.com/questions/14780517/toggle-switch-in-qt?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa
          alt text

          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct

          Qt Needs YOUR vote: https://bugreports.qt.io/browse/QTQAINFRA-4121


          Q: What's that?
          A: It's blue light.
          Q: What does it do?
          A: It turns blue.

          1 Reply Last reply Reply Quote 4
          • T
            thippu @mrjj last edited by

            @mrjj ,@J-Hilk thanks for the reply,
            @mrjj Not a big one, but small switch.
            @J-Hilk Can I able to use controls 1.X in c++ projects?

            J.Hilk 1 Reply Last reply Reply Quote 0
            • J.Hilk
              J.Hilk Moderators @thippu last edited by

              @thippu
              theres qquickwidget to integrate QML objects inthise your QWdiget based app. But I wouldn't recommend it, if all you need is the Quick.Controll Switch.

              Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct

              Qt Needs YOUR vote: https://bugreports.qt.io/browse/QTQAINFRA-4121


              Q: What's that?
              A: It's blue light.
              Q: What does it do?
              A: It turns blue.

              1 Reply Last reply Reply Quote 1
              • V
                VRonin last edited by

                https://stackoverflow.com/a/38102598

                "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
                ~Napoleon Bonaparte

                On a crusade to banish setIndexWidget() from the holy land of Qt

                1 Reply Last reply Reply Quote 4
                • T
                  thippu last edited by

                  Thank you!

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post