[solved]calling a dialog in another dialog
-
Are you sure you don't have any typos in filename? If you include existing file from same directory it will work. Can you post here screenshot of directory where your dialog.cpp contains?
P.S. About highlighting. Andre and I already said that you can use @ tags for it.
-
you mean project by directory?
if yes,so (signup.h) is in the same directory where dialog.cpp contains.
actually (signup.h) and (dialog.h) are in th Headers part,
(signup.cpp) and (dialog.cpp) are in the Sources part.
i thought maybe including a dialog in another dialog is not possible in Qt
and that's why i got that error. -
If you use Linux just go in console into your dir, type ls there and copy output here. If you use Windows open your directory in Explorer and make a screenshot of it (or use dir comand in windows console).
-
this is the pro file:
@TARGET = NoteBook
TEMPLATE = app
SOURCES += dialog.cpp
../source/src/main.cpp
../signup.cpp
HEADERS += dialog.h
../source/src/User.h
../source/src/TagRelation.h
../source/src/Tag.h
../source/src/header.h
../source/src/Content.h
../source/src/BaseRelation.h
../source/src/BaseIndex.h
../source/src/BaseEntity.h
../signup.h
FORMS += dialog.ui
../signup.ui
@ -
I see in your .pro file that your signup.h is NOT in the same directory as your dialog.cpp. You should either use
@
#include "../signup.h"
@
or add to your .pro file
@
INCLUDEPATH += ../
@ -
You are welcome. Don't forget to mark thread as [solved]