![]() |
Re: I'm learning with Qt and I have a question
:S now i get those:
C:/Users/Edvinas/Documents/InteractiveHelloWorld/mainwindow.cpp:33: error: expected initializer before 'void' C:/Users/Edvinas/Documents/InteractiveHelloWorld/mainwindow.cpp:41: error: declaration of 'void MainWindow::initMyWordList()' outside of class is not definition C:/Users/Edvinas/Documents/InteractiveHelloWorld/mainwindow.cpp:42: error: expected unqualified-id before '{' token mainwindow.cpp: Quote:
|
Re: I'm learning with Qt and I have a question
Code:
void MainWindow::buttonClickHandler() Code:
void MainWindow::buttonClickHandler() Code:
do whatever you feel like Code:
// do whatever you feel like |
Re: I'm learning with Qt and I have a question
C:/Users/Edvinas/Documents/InteractiveHelloWorld/mainwindow.cpp:35: error: no 'void MainWindow::on_Button_clicked()' member function declared in class 'MainWindow'
C:/Users/Edvinas/Documents/InteractiveHelloWorld/mainwindow.cpp:43: error: declaration of 'void MainWindow::initMyWordList()' outside of class is not definition Then i get that :( omg so much errors |
Re: I'm learning with Qt and I have a question
Quote:
Code:
// do whatever you feel like Code:
{ } // do nothing Code:
; // do nothing |
Re: I'm learning with Qt and I have a question
When you once saw most of the errors next time you may correct them yourself. But you should learn a bit more basics of c++ so you would understand the errors.
Quote:
Code:
void On_Button_clicked(); |
Re: I'm learning with Qt and I have a question
Oh, and
Code:
error = initMyWordList(); |
Re: I'm learning with Qt and I have a question
I'm also new to Qt.
I have a simple question: How do I make a dialog window uncloseable? I mean, how to create a QDialog (or a QMessageBox) which can't be closed by the user, but only the application itself? |
Re: I'm learning with Qt and I have a question
Quote:
|
Re: I'm learning with Qt and I have a question
http://doc.trolltech.com/4.6/qwidget.html#closeEvent
Reimplement this event handler to ignore the close event on a certain condition. Also see the example which explains why this can be useful. |
Re: I'm learning with Qt and I have a question
Quote:
|
All times are GMT. The time now is 18:17. |
vBulletin® Version 3.8.8