PDA

View Full Version : No ToolTips in my application



rambo83
10th November 2009, 12:32
Hello,

I have searched the forum for similar questions, but did not find the solution...

I have created my GUI Framework in Qt Designer 4.5.1 and have set ToolTips (text) to some pushbuttons, but if I hold mouse above these buttons nothing appears during the execution of my application. I have seen, that it is possible to activate all ToolTips by Qt::WA_AlwaysShowToolTips. Also this does not solve the problem:


mainFrame::mainFrame(QWidget *parent)
: QMainWindow(parent)
{
ui.setupUi(this);

this->setAttribute(Qt::WA_AlwaysShowToolTips,true);

What is wrong here?

best regards,

Vitali

yogeshgokul
10th November 2009, 12:40
Please provide more information of the problem or paste code.

rambo83
10th November 2009, 12:50
oh my god, it is my very stupid mistake! I did not fill the field "toolTip" within Qt Designer, but the field "comment", of course there is nothing to display then! :D

Sorry for stupid question :o

expert_vision
30th December 2012, 14:13
I did exactly the same thing .. we got confused by that tree structure of properties; Qt developers .. you never put the property's input value in the head of the tree of properties, don't you know that? :P