hi friends,
i am having a window with size (10,800,1010,40) .. its having a button (diagnosButton) ... a thread is running parallel which will receive communication from server and emit a signal newMessage (QString) ... in my mainwindow i get the signal of thread and called a slot ()
this is the slot
i try to show a tooltip with the message from the thread signal newMessage(QString) .... i thought this tooltip will last for long until i move the cursor outside the window ...Code:
{ QPalette color; int setval = 0; //value = diagnosButton->mapToGlobal(diagnosButton->rect().topLeft()); qreal x = value.x(); qreal y = value.y(); }
but the tooltip disapper or hide afer few seconds .... i dont know where i mistaked .... please help