Hi,
I am using Qt 3.3.7.
How to use four buttons in QMessageBox::warning ?
In the document I came to know "The dialog may have up to three buttons".
We cant use more than 3 buttons ? is there any way ?
Thanks,
npc
Printable View
Hi,
I am using Qt 3.3.7.
How to use four buttons in QMessageBox::warning ?
In the document I came to know "The dialog may have up to three buttons".
We cant use more than 3 buttons ? is there any way ?
Thanks,
npc
yes, you can subclass.
Thanks,
Could you explain me how to do that ?
-npc-
do what?
Derive a class?
Am... this is basic C++.
Its not something some one can teach you on a forum thread...
This book should be a good start.
At any rate here is the answer to you question:
Code:
class QMessageBoxEx : publick QMessageBox { //contructors, destructors } { //your implementation }
or something similar