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

Creating subproject using menu in Qt

Scheduled Pinned Locked Moved Solved General and Desktop
12 Posts 2 Posters 630 Views
  • 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.
  • yy_pc_programmerY Offline
    yy_pc_programmerY Offline
    yy_pc_programmer
    wrote on 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
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by mrjj
      #2

      Hi and welcome to the forums.

      alt text

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

      1 Reply Last reply
      1
      • yy_pc_programmerY Offline
        yy_pc_programmerY Offline
        yy_pc_programmer
        wrote on last edited by yy_pc_programmer
        #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...

        mrjjM 1 Reply Last reply
        0
        • yy_pc_programmerY yy_pc_programmer

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

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on 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
          • yy_pc_programmerY Offline
            yy_pc_programmerY Offline
            yy_pc_programmer
            wrote on 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

            mrjjM 1 Reply Last reply
            0
            • yy_pc_programmerY yy_pc_programmer

              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

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #6

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

              1 Reply Last reply
              1
              • yy_pc_programmerY Offline
                yy_pc_programmerY Offline
                yy_pc_programmer
                wrote on last edited by
                #7

                Yeah. i meant it

                mrjjM 1 Reply Last reply
                0
                • yy_pc_programmerY yy_pc_programmer

                  Yeah. i meant it

                  mrjjM Offline
                  mrjjM Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on 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
                  • yy_pc_programmerY Offline
                    yy_pc_programmerY Offline
                    yy_pc_programmer
                    wrote on last edited by
                    #9

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

                    1 Reply Last reply
                    0
                    • yy_pc_programmerY Offline
                      yy_pc_programmerY Offline
                      yy_pc_programmer
                      wrote on last edited by
                      #10

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

                      mrjjM 1 Reply Last reply
                      0
                      • yy_pc_programmerY yy_pc_programmer

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

                        mrjjM Offline
                        mrjjM Offline
                        mrjj
                        Lifetime Qt Champion
                        wrote on 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
                        • yy_pc_programmerY Offline
                          yy_pc_programmerY Offline
                          yy_pc_programmer
                          wrote on last edited by
                          #12

                          thanks. problem solved

                          1 Reply Last reply
                          1

                          • Login

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