codeslicer
19th January 2009, 21:40
Hello,
I have a little problem with the GUI of my application. In my QMainWindow, made in Designer, I have a status bar. When the mouse highlights different menu items, the value of the status bar changes from blank to the statusTip that I set. However, I want to have a "default" statusTip. In the Qt Docs, it says that I have to use addWidget() on the status bar, and add a QLabel. I did that, and it works fine, except... this is how it looks like:
(1st attached image),
whereas here is how a "temporary" statusTip looks like:
(2nd attached image)
Whatever I do I can't seem to change how it looks, whether it's using all this or not:
msg->setFrameShape(QFrame::NoFrame);
msg->setFrameShadow(QFrame::Plain);
msg->setLineWidth(0);
msg->setStyleSheet("border: none;");
Please help!
Thanks in advance,
codeslicer :)
I have a little problem with the GUI of my application. In my QMainWindow, made in Designer, I have a status bar. When the mouse highlights different menu items, the value of the status bar changes from blank to the statusTip that I set. However, I want to have a "default" statusTip. In the Qt Docs, it says that I have to use addWidget() on the status bar, and add a QLabel. I did that, and it works fine, except... this is how it looks like:
(1st attached image),
whereas here is how a "temporary" statusTip looks like:
(2nd attached image)
Whatever I do I can't seem to change how it looks, whether it's using all this or not:
msg->setFrameShape(QFrame::NoFrame);
msg->setFrameShadow(QFrame::Plain);
msg->setLineWidth(0);
msg->setStyleSheet("border: none;");
Please help!
Thanks in advance,
codeslicer :)