Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [solved]calling a dialog in another dialog
Forum Updated to NodeBB v4.3 + New Features

[solved]calling a dialog in another dialog

Scheduled Pinned Locked Moved General and Desktop
25 Posts 5 Posters 13.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    Eddy
    wrote on 9 Jul 2011, 09:40 last edited by
    #11

    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?

    Qt Certified Specialist
    www.edalsolutions.be

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DenisKormalev
      wrote on 9 Jul 2011, 09:42 last edited by
      #12

      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?

      1 Reply Last reply
      0
      • R Offline
        R Offline
        rh
        wrote on 9 Jul 2011, 09:54 last edited by
        #13

        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....

        1 Reply Last reply
        0
        • D Offline
          D Offline
          DenisKormalev
          wrote on 9 Jul 2011, 09:55 last edited by
          #14

          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.

          1 Reply Last reply
          0
          • R Offline
            R Offline
            rh
            wrote on 9 Jul 2011, 10:04 last edited by
            #15

            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

            1 Reply Last reply
            0
            • R Offline
              R Offline
              rh
              wrote on 9 Jul 2011, 10:06 last edited by
              #16

              and about high lighting the code how can i do that?
              i don't know it.

              1 Reply Last reply
              0
              • D Offline
                D Offline
                DenisKormalev
                wrote on 9 Jul 2011, 10:07 last edited by
                #17

                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.

                1 Reply Last reply
                0
                • R Offline
                  R Offline
                  rh
                  wrote on 9 Jul 2011, 10:21 last edited by
                  #18

                  excuse me Denis.
                  what do you mean by screenshot of directory?
                  how can i do that?

                  1 Reply Last reply
                  0
                  • R Offline
                    R Offline
                    rh
                    wrote on 9 Jul 2011, 10:43 last edited by
                    #19

                    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.

                    1 Reply Last reply
                    0
                    • D Offline
                      D Offline
                      DenisKormalev
                      wrote on 9 Jul 2011, 10:44 last edited by
                      #20

                      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).

                      1 Reply Last reply
                      0
                      • R Offline
                        R Offline
                        rh
                        wrote on 9 Jul 2011, 11:01 last edited by
                        #21

                        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
                        @

                        1 Reply Last reply
                        0
                        • D Offline
                          D Offline
                          DenisKormalev
                          wrote on 9 Jul 2011, 11:07 last edited by
                          #22

                          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 += ../
                          @

                          1 Reply Last reply
                          0
                          • R Offline
                            R Offline
                            rh
                            wrote on 9 Jul 2011, 11:23 last edited by
                            #23

                            thank you Denis.
                            it works.
                            really thank you......
                            and thank from everybody that reply me and help me to solve this problem.

                            1 Reply Last reply
                            0
                            • D Offline
                              D Offline
                              DenisKormalev
                              wrote on 9 Jul 2011, 11:29 last edited by
                              #24

                              You are welcome. Don't forget to mark thread as [solved]

                              1 Reply Last reply
                              0
                              • R Offline
                                R Offline
                                rh
                                wrote on 9 Jul 2011, 11:39 last edited by
                                #25

                                ok.sure.

                                1 Reply Last reply
                                0

                                20/25

                                9 Jul 2011, 10:44

                                • Login

                                • Login or register to search.
                                20 out of 25
                                • First post
                                  20/25
                                  Last post
                                0
                                • Categories
                                • Recent
                                • Tags
                                • Popular
                                • Users
                                • Groups
                                • Search
                                • Get Qt Extensions
                                • Unsolved