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. QRadioButton in disabled mode
Qt 6.11 is out! See what's new in the release blog

QRadioButton in disabled mode

Scheduled Pinned Locked Moved General and Desktop
11 Posts 5 Posters 4.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.
  • K Offline
    K Offline
    Kewal
    wrote on last edited by
    #1

    How to make the radio button not receive any signals but just act as a page indicator, Infact I am trying to achieve the page indicator as displayed when each page is shown is there a seperate class to achieve that.? Page indicator as in dots displaying the page shown to the user.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #2

      Don't. A radio button is an interactive element, don't confuse your users by abusing it for something that it is not. Seriously, it is not hard to just render a set of dots where one dot is a bit lighter than the rest in a specialized widget.

      1 Reply Last reply
      0
      • R Offline
        R Offline
        Renatosantos
        wrote on last edited by
        #3

        I agree with Andre.

        Qt Developer.

        "Imagination is more important than knowledge."
        http://twitter.com/Renatos20

        1 Reply Last reply
        0
        • F Offline
          F Offline
          felipe.c.sousa
          wrote on last edited by
          #4

          I agree with Andre. But, if you really want do that you can just use images for that, search for one that look's like with a radio button and put that in a label edit. sorry for my lazy english! =)

          From all, to all.

          1 Reply Last reply
          0
          • G Offline
            G Offline
            gdouglas7
            wrote on last edited by
            #5

            Use label, is more simple.

            Qt Developer
            Student of Information System

            1 Reply Last reply
            0
            • A Offline
              A Offline
              andre
              wrote on last edited by
              #6

              [quote author="gdouglas7" date="1333372742"]Use label, is more simple.[/quote]
              How would you use a QLabel to show a page indicator (you know, like a row of dots where the highlighted dot represents the current page)?

              1 Reply Last reply
              0
              • G Offline
                G Offline
                gdouglas7
                wrote on last edited by
                #7

                Depends if you are using QStackedWidget you could get the current page with the index of the element, right?

                Qt Developer
                Student of Information System

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  andre
                  wrote on last edited by
                  #8

                  [quote author="gdouglas7" date="1333373537"]Depends if you are using QStackedWidget you could get the current page with the index of the element, right?[/quote]
                  If I understand Kewal right, he is looking for a display widget to indicate a page. In this context, none of your answers make any sense to me so far. So please, eleborate. Perhaps you can create a small example that illustrates what you mean?

                  1 Reply Last reply
                  0
                  • G Offline
                    G Offline
                    gdouglas7
                    wrote on last edited by
                    #9

                    Maybe I have not got it right, but what I'm saying is that if it is using QStackedWidget and changing the page of the own widget, he could use the current index to the display of the page.

                    @ui-> label-> setText (ui-> stackedwidget-> currentIndex ());@

                    Qt Developer
                    Student of Information System

                    1 Reply Last reply
                    0
                    • A Offline
                      A Offline
                      andre
                      wrote on last edited by
                      #10

                      [quote author="gdouglas7" date="1333375080"]Maybe I have not got it right, but what I'm saying is that if it is using QStackedWidget and changing the page of the own widget, he could use the current index to the display of the page.

                      @ui-> label-> setText (ui-> stackedwidget-> currentIndex ());@[/quote]
                      Right... but he was trying - I gather - to display something like this:
                      !http://i.stack.imgur.com/ZoETt.png(iOS page indicator)!

                      1 Reply Last reply
                      0
                      • G Offline
                        G Offline
                        gdouglas7
                        wrote on last edited by
                        #11

                        Now I understand the problem. RadionButton is not really the best option, perhaps by using two similar images with different colors and repeating the image according to the number of existing pages.

                        Qt Developer
                        Student of Information System

                        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