Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Hi guys,
I wonder if there is a way to get the text of a button. E.g. some functions like: @QPushButton *button = new QPushButton("Test"); QString temp = button->getName();@
Thanks a lot in advance!
BR
Hi,
what about: @ QPushButton* btn = new QPushButton("MyButton"); qDebug() << "Text:" << btn->text(); @
You can retrieve the button's text via QPushButton::text(), as such: @button->text();@
very kind of you! Many thanks!