hakermania
7th August 2010, 21:28
This is my source:
bool ok;
QString passwd_request = QInputDialog::getText(this, tr("Give password:"),
tr("Current Password:"), QLineEdit::Normal,
"", &ok);
And these are the mad errors:
/home/alex/Qt/Machine/mainwindow.cpp:1189: warning: unused variable ‘ok’
/home/alex/Qt/Machine/mainwindow.cpp:1192: error: ‘ok’ was not declared in this scope
:p:p:p:p
The thing is that I used the same to the constructor of the program, where it asks for password as well and there is no problem. In a function, when a checkbox is checked is the problem....
bool ok;
QString passwd_request = QInputDialog::getText(this, tr("Give password:"),
tr("Current Password:"), QLineEdit::Normal,
"", &ok);
And these are the mad errors:
/home/alex/Qt/Machine/mainwindow.cpp:1189: warning: unused variable ‘ok’
/home/alex/Qt/Machine/mainwindow.cpp:1192: error: ‘ok’ was not declared in this scope
:p:p:p:p
The thing is that I used the same to the constructor of the program, where it asks for password as well and there is no problem. In a function, when a checkbox is checked is the problem....