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. Creating subproject using menu in Qt
Forum Updated to NodeBB v4.3 + New Features

Creating subproject using menu in Qt

Scheduled Pinned Locked Moved Solved General and Desktop
12 Posts 2 Posters 663 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.
  • Y Offline
    Y Offline
    yy_pc_programmer
    wrote on 10 Aug 2022, 11:53 last edited by
    #1

    Hello . I am learning qt for the first time. What I want to do is create subproject. But I don't know how to do this in qt. How can I track a step? So I don't want to build from codes. I just want to create from qt's menus. Is it possible?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 10 Aug 2022, 12:03 last edited by mrjj 8 Oct 2022, 12:07
      #2

      Hi and welcome to the forums.

      alt text

      https://doc.qt.io/qtcreator/creator-project-creating.html

      1 Reply Last reply
      1
      • Y Offline
        Y Offline
        yy_pc_programmer
        wrote on 10 Aug 2022, 12:28 last edited by yy_pc_programmer 8 Oct 2022, 12:29
        #3

        Thank you very much for your sharing. I previously created a database linked project with a login screen. How can I link this to another project, as a subproject? Actually, I want to do this: When I enter the general project, I want the login page to appear first. Then redirect me to the other subproject after successful login. I hope I could explain. thanks...

        M 1 Reply Last reply 10 Aug 2022, 12:52
        0
        • Y yy_pc_programmer
          10 Aug 2022, 12:28

          Thank you very much for your sharing. I previously created a database linked project with a login screen. How can I link this to another project, as a subproject? Actually, I want to do this: When I enter the general project, I want the login page to appear first. Then redirect me to the other subproject after successful login. I hope I could explain. thanks...

          M Offline
          M Offline
          mrjj
          Lifetime Qt Champion
          wrote on 10 Aug 2022, 12:52 last edited by
          #4

          @yy_pc_programmer
          Hi
          Im not sure you want a sub project as such as that will create the DB app as its own exe.

          So to embed it into other app, often you would simply add the needed files (*. and *.cpp)
          and then simply create an instance of you DB login form.

          Depending on the effect you want.
          You can either popup the login dialog from MainWindow
          or from main.

          1 Reply Last reply
          1
          • Y Offline
            Y Offline
            yy_pc_programmer
            wrote on 10 Aug 2022, 13:20 last edited by
            #5

            Screenshot_1.png I am sorry. But I am trying to learn qt. How can I fix the project you see in this picture? thanks

            M 1 Reply Last reply 10 Aug 2022, 13:50
            0
            • Y yy_pc_programmer
              10 Aug 2022, 13:20

              Screenshot_1.png I am sorry. But I am trying to learn qt. How can I fix the project you see in this picture? thanks

              M Offline
              M Offline
              mrjj
              Lifetime Qt Champion
              wrote on 10 Aug 2022, 13:50 last edited by
              #6

              @yy_pc_programmer
              Hi
              You mean how to undo having the login as sub project ?

              1 Reply Last reply
              1
              • Y Offline
                Y Offline
                yy_pc_programmer
                wrote on 10 Aug 2022, 13:52 last edited by
                #7

                Yeah. i meant it

                M 1 Reply Last reply 10 Aug 2022, 13:54
                0
                • Y yy_pc_programmer
                  10 Aug 2022, 13:52

                  Yeah. i meant it

                  M Offline
                  M Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on 10 Aug 2022, 13:54 last edited by
                  #8

                  @yy_pc_programmer

                  Hi
                  the docs says
                  "To remove subprojects, right-click the project name in the Projects view, and select Remove Subproject in the context menu."

                  So is there such menu if you right click the LoginPage.pro ?

                  1 Reply Last reply
                  1
                  • Y Offline
                    Y Offline
                    yy_pc_programmer
                    wrote on 10 Aug 2022, 14:33 last edited by
                    #9

                    Yeah. That option is in the menu. But not selected

                    1 Reply Last reply
                    0
                    • Y Offline
                      Y Offline
                      yy_pc_programmer
                      wrote on 11 Aug 2022, 14:40 last edited by
                      #10

                      well. It doesn't allow me to choose. And I can't choose.

                      M 1 Reply Last reply 11 Aug 2022, 16:19
                      0
                      • Y yy_pc_programmer
                        11 Aug 2022, 14:40

                        well. It doesn't allow me to choose. And I can't choose.

                        M Offline
                        M Offline
                        mrjj
                        Lifetime Qt Champion
                        wrote on 11 Aug 2022, 16:19 last edited by
                        #11

                        @yy_pc_programmer

                        ok. im not sure why.

                        You can manually remove the files then. and fixup the Project.pro to clean any mention of
                        LoginPage

                        1 Reply Last reply
                        1
                        • Y Offline
                          Y Offline
                          yy_pc_programmer
                          wrote on 12 Aug 2022, 05:16 last edited by
                          #12

                          thanks. problem solved

                          1 Reply Last reply
                          1

                          1/12

                          10 Aug 2022, 11:53

                          • Login

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