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. I want to edit the name of the qpushbutton which I had added inside a qframe dynamically

I want to edit the name of the qpushbutton which I had added inside a qframe dynamically

Scheduled Pinned Locked Moved Solved General and Desktop
7 Posts 2 Posters 487 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.
  • S Offline
    S Offline
    Srinath_S
    wrote on last edited by
    #1

    Re: QPushbutton

    jsulmJ 1 Reply Last reply
    0
    • S Srinath_S

      @jsulm https://stackoverflow.com/questions/75588136/qt-creator-c-how-to-edit-the-name-of-a-dynamically-added-pushbutton-which-ar/75588350?noredirect=1#comment133358171_75588350 pls view my question in this and give me a solution

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by jsulm
      #6

      @Srinath_S I already told you how to change the text shown on a button. What else do you want to know? If you want to get help then please ask clear questions and also read the answers you get...
      I really don't know what is so difficult to call setText("New text") on a button? You also got exact same suggestion on StackOverflow...

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      S 1 Reply Last reply
      1
      • S Srinath_S

        Re: QPushbutton

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #2

        @Srinath_S Please explain better what you want!
        Do you want to change the objectName or the variable name?

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        S 1 Reply Last reply
        0
        • jsulmJ jsulm

          @Srinath_S Please explain better what you want!
          Do you want to change the objectName or the variable name?

          S Offline
          S Offline
          Srinath_S
          wrote on last edited by
          #3

          @jsulm I want to change the pushbutton's display name

          jsulmJ 1 Reply Last reply
          0
          • S Srinath_S

            @jsulm I want to change the pushbutton's display name

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #4

            @Srinath_S Please use correct wording! It sounds that you want to change the text displayed on the button. In that case simply use QPushButton::setText method (https://doc.qt.io/qt-6/qabstractbutton.html#text-prop).

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            S 1 Reply Last reply
            0
            • jsulmJ jsulm

              @Srinath_S Please use correct wording! It sounds that you want to change the text displayed on the button. In that case simply use QPushButton::setText method (https://doc.qt.io/qt-6/qabstractbutton.html#text-prop).

              S Offline
              S Offline
              Srinath_S
              wrote on last edited by
              #5

              @jsulm https://stackoverflow.com/questions/75588136/qt-creator-c-how-to-edit-the-name-of-a-dynamically-added-pushbutton-which-ar/75588350?noredirect=1#comment133358171_75588350 pls view my question in this and give me a solution

              jsulmJ 1 Reply Last reply
              0
              • S Srinath_S

                @jsulm https://stackoverflow.com/questions/75588136/qt-creator-c-how-to-edit-the-name-of-a-dynamically-added-pushbutton-which-ar/75588350?noredirect=1#comment133358171_75588350 pls view my question in this and give me a solution

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by jsulm
                #6

                @Srinath_S I already told you how to change the text shown on a button. What else do you want to know? If you want to get help then please ask clear questions and also read the answers you get...
                I really don't know what is so difficult to call setText("New text") on a button? You also got exact same suggestion on StackOverflow...

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                S 1 Reply Last reply
                1
                • jsulmJ jsulm

                  @Srinath_S I already told you how to change the text shown on a button. What else do you want to know? If you want to get help then please ask clear questions and also read the answers you get...
                  I really don't know what is so difficult to call setText("New text") on a button? You also got exact same suggestion on StackOverflow...

                  S Offline
                  S Offline
                  Srinath_S
                  wrote on last edited by
                  #7

                  @jsulm thank you

                  1 Reply Last reply
                  0
                  • S Srinath_S has marked this topic as solved on

                  • Login

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