[Resolved] How to disable a button in a button box?
-
wrote on 19 Jan 2014, 11:25 last edited by
bq.
C:\Qt_Projects\Hello10\dialog.cpp:9: error: invalid use of incomplete type 'class QPushButton'
ui->buttonBox->button(QDialogButtonBox::Ok)->setEnabled(false);
^caused by
@
ui->setupUi(this);
ui->buttonBox->button(QDialogButtonBox::Ok)->setEnabled(false);
@What does it mean ?
I tried to read the doc but this seems to be ok.'ui' is a form designer generated form
'buttonBox' is the objectName of a ... buttonBox -
wrote on 19 Jan 2014, 11:49 last edited by
I found the answer:
in the dialog header i have to do this:
@
#include <QPushButton>
@ -
wrote on 20 Jan 2014, 06:45 last edited by
Hi, Realtebo,
mark it as solved.
1/3