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. is there any On/off animated widget is there in qt c++?

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

Scheduled Pinned Locked Moved Solved General and Desktop
7 Posts 4 Posters 2.2k Views
  • 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 Offline
    T Offline
    thippu
    wrote on last edited by thippu
    #1

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

    [A |--o B]

    On/Off button

    J.HilkJ 1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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
      3
      • T thippu

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

        [A |--o B]

        On/Off button

        J.HilkJ Offline
        J.HilkJ Offline
        J.Hilk
        Moderators
        wrote on last edited by
        #3

        @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


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

        1 Reply Last reply
        4
        • mrjjM mrjj

          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 Offline
          T Offline
          thippu
          wrote on last edited by
          #4

          @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.HilkJ 1 Reply Last reply
          0
          • T thippu

            @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.HilkJ Offline
            J.HilkJ Offline
            J.Hilk
            Moderators
            wrote on last edited by
            #5

            @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


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

            1 Reply Last reply
            1
            • VRoninV Offline
              VRoninV Offline
              VRonin
              wrote on last edited by
              #6

              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
              4
              • T Offline
                T Offline
                thippu
                wrote on last edited by
                #7

                Thank you!

                1 Reply Last reply
                0

                • Login

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