PDA

View Full Version : Qmessagebox With FIXED Location & Non-TRANSPARENT ????



sai_3289
24th August 2012, 08:14
HI all,

i am able to have QMessageBox with FIXED SIZE and BUTTONS in it ,and able to provide slots to those buttons.....but i am not getting how to make the QMessageBox at FIXED LOCATION(i.e : window should not be movable) & with NON-TRANSPARENT property.....

ChrisW67
26th August 2012, 07:22
i am able to have QMessageBox with FIXED SIZE and BUTTONS in it ,and able to provide slots to those buttons.....
Congratulations ;) By the way, there's NO NEED TO YELL, we can all read lower case.

but i am not getting how to make the QMessageBox at FIXED LOCATION(i.e : window should not be movable) & with NON-TRANSPARENT property.....
Well, given that widgets are, by default, not transparent that should be a no-brainer.
If you do not want the message dialog to move then take away the frame with the Qt::FramelessWindowHint in QWidget::setWindowFlags(). If you really want, you can subclass QMessageBox and handle the moveEvents() yourself.

sai_3289
27th August 2012, 06:23
it's not a problem how i post.....but i should be clear in explaining what my Actually PROBLEM is....

okay..thanks for the reply....