c++ - How to catch information for Qt designer -
i have created qdialog box using qt creator designer shown below:
when need display it, i'm instantiate class dialogoverwrite (.cpp, .h , .ui)
dialogoverwrite *overwritedialog = new dialogoverwrite; overwritedialog->exec(); overwriteoption = overwritedialog->result()
my issue want qdialogbuttonbox result not know how. current code, returning result of overwritedialog it's not returning qdialogbuttonbox::yes, qdialogbuttonbox::yestoall ...
how catch qbuttongroup result , not qdialog result.
in same way, if want change label value "file(s) and/or folder(s)" label, how access qlabel ?
thanks help
when pressed qdialogbutton emit signal clicked(qabstractbutton*) catching signal can identify action button pressed.
please go through following link you.
qt: how implement qdialogbuttonbox qsignalmapper non-standard button ??
Comments
Post a Comment