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. Widget for Toggle switch in pyside6

Widget for Toggle switch in pyside6

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 2.8k 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.
  • N Offline
    N Offline
    Nandini
    wrote on last edited by Nandini
    #1

    Is there no other alternative for creating a toggle switch in pyside6 ? How do we achieve it? Do we have any other entity that might help ?
    By toggle switch I mean to say something similar to: 9e3ae3a6-de5b-4392-a0aa-dfb61e6a2c74-image.png

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      What do you mean by "no other alternative" ?

      Toggle switches are a variant of checkbox

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

      N 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        What do you mean by "no other alternative" ?

        Toggle switches are a variant of checkbox

        N Offline
        N Offline
        Nandini
        wrote on last edited by
        #3

        @SGaist
        Hi
        From what i looked into, I got a method to create a custom toggle switch i.e creating a custom class by inheriting Qcheckbox. Do we have a built-in widget for toggle switch rather than creating a class?

        Thanks

        SGaistS 1 Reply Last reply
        0
        • N Nandini

          @SGaist
          Hi
          From what i looked into, I got a method to create a custom toggle switch i.e creating a custom class by inheriting Qcheckbox. Do we have a built-in widget for toggle switch rather than creating a class?

          Thanks

          SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          What you can do is use a stylesheet to customize the image used for your toggle. See customizing QCheckBox.

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

          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