PDA

View Full Version : Handling mouseevent in Qstatusbar .



riarioriu3
12th July 2012, 06:23
In my statusbar , i have added one Qlabel inside which i am displaying some message . Now what i want is when i click on that Qlabel(present inside the Qstatusbar ) , the message should disappear ..

I have added the label inside statusbar as follows ,


QLabel *cpyrightlbl= new QLabel();
ui.statusBar->addWidget(cpyrightlbl);
cpyrightlbl->setText("Demo Message");
cpyrightlbl->setStyleSheet("border: 3px");
cpyrightlbl->setFixedWidth(frameGeometry().width());
cpyrightlbl->show();

high_flyer
12th July 2012, 10:30
What is the problem you are having? (its not the same as what you want to achieve)