Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Could you post MainWindow declaration.
If you use MainWindow that was created by QtCreator wizard then @ ui->pushButton->setText("Hello"); @
When i write @ ui->@ i see "ui is not declarate"
http://wklej.to/S7qvO
There is no MainWindoww include in the source file. @ #include "MainWindoww.h" @
http://wklej.to/qyZm6
void ReWriteQuestion(string files) is not a part of MainWindoww. That is why you are getting "ui is not declared".
Add it to the MainWindoww declaration and change the definition accordingly.
How :( ?
@ class MainWindoww : public ...... { ..... void ReWriteQuestion(string files) ..... }; @
@ void MainWindoww::ReWriteQuestion(string files) { ...... ui->pushButton->setText("C++ rocks"); ...... } @
Thank You, mean :)