[solved]calling a dialog in another dialog
-
wrote on 9 Jul 2011, 09:40 last edited by
The error means your program doesn't find the signup.h file.
Do you know where it is?
Did you put it in your pro file?
-
wrote on 9 Jul 2011, 09:42 last edited by
r@h@, Andre already asked you to highlight code with @ tags. I'm asking you again. Highlighted code is much easier to read.
Do you have this file (sighup.h) in same directory where your dialog.cpp contains? If not do you have needed directory in INCLUDEPATH in your pro file?
-
wrote on 9 Jul 2011, 09:54 last edited by
in fact my question is that why when i use <#include "signup.h" > in dialog.cpp ,i receive an (no such file or directory)error .
it's not possible in QT to include a dialog in another dialog?and how can i call a dialog by pushing a button in another dialog?
i hope i could explain what's my problem with this program....
-
wrote on 9 Jul 2011, 09:55 last edited by
Can you answer my questions about directory structure. I don't think anybody can help you without this info. Crystal balls are not so strong.
-
wrote on 9 Jul 2011, 10:04 last edited by
yes,(signup.h) file is in same directory where dioalog.cpp contains.
and i add signup.h by
(right click on Form directory in the project)->(add new ) -> (Qt Designer Form Class)
yes , (signup.h) is in HEADERS in .pro file -
wrote on 9 Jul 2011, 10:06 last edited by
and about high lighting the code how can i do that?
i don't know it. -
wrote on 9 Jul 2011, 10:07 last edited by
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.
-
wrote on 9 Jul 2011, 10:21 last edited by
excuse me Denis.
what do you mean by screenshot of directory?
how can i do that? -
wrote on 9 Jul 2011, 10:43 last edited by
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. -
wrote on 9 Jul 2011, 10:44 last edited by
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).
-
wrote on 9 Jul 2011, 11:01 last edited by
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
@ -
wrote on 9 Jul 2011, 11:07 last edited by
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 += ../
@ -
wrote on 9 Jul 2011, 11:23 last edited by
thank you Denis.
it works.
really thank you......
and thank from everybody that reply me and help me to solve this problem. -
wrote on 9 Jul 2011, 11:29 last edited by
You are welcome. Don't forget to mark thread as [solved]
-
wrote on 9 Jul 2011, 11:39 last edited by
ok.sure.
20/25