PDA

View Full Version : QMessgaeBox in QCleanLookStyle



navi1084
9th September 2009, 08:48
Hi,
I have used QCleanlooksStyle to my application. Whenever a message box pops up in my application the buttons appears to be displaced. example: OK and CANCEL button appears proper in window style (OK followed by CANCEL), but in cleanlooks it appears in different order(CANCEL followed by OK). Can anyone tell me how can i resolve this.

Thank you in advance :)

yogeshgokul
9th September 2009, 09:18
For me this works same in all styles. Means "OK" comes before "Cancel", always. ;)


QMessageBox msg("title", "message", QMessageBox::NoIcon, QMessageBox::Ok, QMessageBox::Cancel,0,0);
msg.exec();

Show us how you popping up your message box.

Ginsengelf
9th September 2009, 09:25
Hi, I think it's a feature, not a bug. The GNOME style guidelines state it that way and QCleanLooksStyle tries to cling to these guidelines.

Ginsengelf