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
Forum Updated to NodeBB v4.3 + New Features

Widget for Toggle switch in pyside6

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 1.9k 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 23 Aug 2023, 17:10 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
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 23 Aug 2023, 17:46 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 27 Aug 2023, 16:51
      0
      • S SGaist
        23 Aug 2023, 17:46

        Hi,

        What do you mean by "no other alternative" ?

        Toggle switches are a variant of checkbox

        N Offline
        N Offline
        Nandini
        wrote on 27 Aug 2023, 16:51 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

        S 1 Reply Last reply 27 Aug 2023, 18:51
        0
        • N Nandini
          27 Aug 2023, 16:51

          @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

          S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 27 Aug 2023, 18:51 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

          1/4

          23 Aug 2023, 17:10

          • Login

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