one small question
Thanks for replying to this problem :-) . I followed the instructions and could follow them but am stuck at a small problem.
I have a main form, on which I have an about button, which when pressed should display another form with text on it.
This is the snippet of code in the ui.h of the main form.
void mainform::openabout()
111 {
112 aboutform f;
113 //Show the about form
114 f.show();
115 }
aboutform.ui.h has
#include <qfile.h>
13
14 void aboutform::init()
15 {
16 //do nothing
17 }
in the pro file .ui files listed are mainform.ui aboutform.ui.
pro file has
TEMPLATE = app
2 LANGUAGE = C++
3
4 CONFIG += qt warn_on release
5
6 SOURCES += main.cpp
7
8 FORMS = mainform.ui aboutform.ui
9
10 unix {
11 UI_DIR = .ui
12 MOC_DIR = .moc
13 OBJECTS_DIR = .obj
14 }
I created the openabout slot by using the connection editor and when the about button is clicked the openabout function is executed. The code compiles fine, with qmake and make, but I don't see a binary for aboutform!! and so when I click the about button the second form does not show.
Is there some obvious mistake that I have committed. Do I have to separately compile aboutform?
Thanks in advance,
-A