I would like get Button on QMessageBox because I would like Resize them.
Can You help me?
I would like get Button on QMessageBox because I would like Resize them.
Can You help me?
//---------------------------------------
Full name: Đậu Sỹ Mạnh
Email: manhds@fsoft.com.vn
Nationality: Vietname
Languge: Vietnamese, Janpanese.
//---------------------------------------
I'd suggest that you create a message box of your own using Designer instead of using QMessageBox if you want to alter the layout. The purpose of the QMessageBox class is to quickly be able to provide a standard dialog - not a modified one.
1. better of creating your own messageBox.Originally Posted by manhds
2. If you rather use the QMessageBox you can do the folowings:
Qt Code:
QMessageBox * box; const QObjectList * list =box->children(); if(!list) return NULL; QObjectListIt it( *list ); // iterate over the buttons QObject *obj; while ( (obj = it.current()) != 0 ) { if(obj->isA("QPushbutton")) { // Do what you need to do. } ++it; }To copy to clipboard, switch view to plain text mode
manhds (27th June 2006)
Thank you very much !
Originally Posted by Equilibrium
//---------------------------------------
Full name: Đậu Sỹ Mạnh
Email: manhds@fsoft.com.vn
Nationality: Vietname
Languge: Vietnamese, Janpanese.
//---------------------------------------
Bookmarks