Nathan Leverington
22nd June 2007, 08:11
Hi all,
I have made a simple program that includes a mainformDlgBase.ui; mainformDlg.h and .cpp (subclass) and main.cpp that makes a simple connection and displays output in the command window when a button on the dialog is selected. The program works fine if all .h and .cpp files are created and/or added to the Qt Designer project.
However my problem is i am trying to only create my dialogs (.ui) files within the Qt designer and have all the other .h and .cpp files created within eclipse (ie for configuration management reasons) and i thought all i would be required to do is add the .h and .cpp files to the appropriate positions within the .pro file
ie SOURCE main.cpp \
bla.cpp \
HEADER bla.h \
When i dont add these files specifically within Qt designer (i.e. i just edit the .pro file manually and insert the lines provied above) i get the following error:
: In funciton '_start' :
init.c: ( .text+0x20): undefined reference to 'main'
obviously it is not picking up my main.cpp file that i have included to my .pro config file;
Does anyone know what else i need to do to be able to work outside Qt Designer and still use the .ui files?
cheers,
nathan.
I have made a simple program that includes a mainformDlgBase.ui; mainformDlg.h and .cpp (subclass) and main.cpp that makes a simple connection and displays output in the command window when a button on the dialog is selected. The program works fine if all .h and .cpp files are created and/or added to the Qt Designer project.
However my problem is i am trying to only create my dialogs (.ui) files within the Qt designer and have all the other .h and .cpp files created within eclipse (ie for configuration management reasons) and i thought all i would be required to do is add the .h and .cpp files to the appropriate positions within the .pro file
ie SOURCE main.cpp \
bla.cpp \
HEADER bla.h \
When i dont add these files specifically within Qt designer (i.e. i just edit the .pro file manually and insert the lines provied above) i get the following error:
: In funciton '_start' :
init.c: ( .text+0x20): undefined reference to 'main'
obviously it is not picking up my main.cpp file that i have included to my .pro config file;
Does anyone know what else i need to do to be able to work outside Qt Designer and still use the .ui files?
cheers,
nathan.