1 Attachment(s)
QT first interface - statement cannot resolve address
Hey,
I am probably blind, because I typed this tutorial like 10 times now and I get the error:
main.cpp: In function 'int main(int, char**)':
main.cpp:7 error: statement cannot resolve address of overloaded function
make: ***[main.o] Error 1
Should be easy to solve for one of you. I am pretty good at C++, but totally new to QT and its ui. Thx.
Re: QT first interface - statement cannot resolve address
Re: QT first interface - statement cannot resolve address
Code:
Taschenrechner w;
w.show;
Did you mean
? :)
And bout that:
Code:
class Taschenrechner
: public QMainWindow,
public Ui
::MainWindow
You may consider using composition instead of inheritance. Now if you change the ui, you'll have to recompile all files that include "Tashenrechner.h"
If you forward declare the ui class in "Taschenrechner.h" and include "ui_Taschenrechner.h" in .cpp you can avoid this.
--------------------
edit: looks like I'm too slow :(
Re: QT first interface - statement cannot resolve address
thanks... i do not know how i couldnt get this.