I want to edit the name of the qpushbutton which I had added inside a qframe dynamically
-
Re: QPushbutton
-
@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
@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... -
Re: QPushbutton
@Srinath_S Please explain better what you want!
Do you want to change the objectName or the variable name? -
@Srinath_S Please explain better what you want!
Do you want to change the objectName or the variable name? -
@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).
-
@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).
-
@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
@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... -
@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 Srinath_S has marked this topic as solved on