sonuani
7th March 2008, 10:53
hi,
I have a qtoolbutton's object which i have typecasted to QWidget.so that i can use it.
I want the text in qtoolbutton to change when a particular condition becomes true.
I tried doing this using Setwindowtext.Its not working.What is the problem in my code.
QToolButton* toolbuttonmsg;
QWidget* msg = toolbuttonmsg;
msg->setWindowTitle("Hi");
I have a qtoolbutton's object which i have typecasted to QWidget.so that i can use it.
I want the text in qtoolbutton to change when a particular condition becomes true.
I tried doing this using Setwindowtext.Its not working.What is the problem in my code.
QToolButton* toolbuttonmsg;
QWidget* msg = toolbuttonmsg;
msg->setWindowTitle("Hi");