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. How to choose a new Form in Qt creator
Forum Updated to NodeBB v4.3 + New Features

How to choose a new Form in Qt creator

Scheduled Pinned Locked Moved Unsolved General and Desktop
11 Posts 4 Posters 4.7k Views 2 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.
  • tomyT Offline
    tomyT Offline
    tomy
    wrote on last edited by
    #1

    Hi,

    I'm reading this tutorial. It speaks about choosing a new Form from the MainWindow template. But there isn't the so-called new Form and MainWinodw template on my Qt creator 3.6.0 IDE.
    I even searched the web for it.

    I should have a great thankful for the designers of Qt documentations that have made such a simple and straightforward way of learning Qt!
    Whenever I use those documentations I will be more regretful about choosing Qt for programming.

    kshegunovK 1 Reply Last reply
    0
    • tomyT tomy

      Hi,

      I'm reading this tutorial. It speaks about choosing a new Form from the MainWindow template. But there isn't the so-called new Form and MainWinodw template on my Qt creator 3.6.0 IDE.
      I even searched the web for it.

      I should have a great thankful for the designers of Qt documentations that have made such a simple and straightforward way of learning Qt!
      Whenever I use those documentations I will be more regretful about choosing Qt for programming.

      kshegunovK Offline
      kshegunovK Offline
      kshegunov
      Moderators
      wrote on last edited by
      #2

      @tomy
      Hello,
      There is. Select from the menu: File > New File or Project ...
      This will produce a dialog like this one:
      QtCreator form dialog
      Choose Qt and Qt Designer Form, click on the Choose ... button and then follow the wizard.

      Kind regards.

      Read and abide by the Qt Code of Conduct

      1 Reply Last reply
      1
      • tomyT Offline
        tomyT Offline
        tomy
        wrote on last edited by
        #3

        @kshegunov:

        Thank you very much for both your help and kind words you used. :-)

        All the best.

        1 Reply Last reply
        0
        • tomyT Offline
          tomyT Offline
          tomy
          wrote on last edited by
          #4

          I completed this. It's here.
          But how to make it run (not Preview mode), please?
          The Run and Build buttons on Designer are grayed out.

          1 Reply Last reply
          0
          • Ni.SumiN Offline
            Ni.SumiN Offline
            Ni.Sumi
            wrote on last edited by Ni.Sumi
            #5

            hi @tomy ,
            It s the same how you run other Qt projects . Click on edit and run it.

            1 Reply Last reply
            0
            • tomyT Offline
              tomyT Offline
              tomy
              wrote on last edited by
              #6

              Hi dear Ni.Sumi,

              I'd run the projects using CTRL+R or clicking on the green triangle located on the bottom left side.
              Did you mean the "Edit" menu?
              Anyway, all the Build and Debug buttons are grayed out as well (please look the screenshot).

              1 Reply Last reply
              0
              • Ni.SumiN Offline
                Ni.SumiN Offline
                Ni.Sumi
                wrote on last edited by
                #7

                Hi @tomy

                http://postimg.org/image/kmzfg1zed/

                This edit, I am talking.

                1 Reply Last reply
                0
                • tomyT Offline
                  tomyT Offline
                  tomy
                  wrote on last edited by
                  #8

                  Please have a look at the tutorial I pointed to in my first post of this thread.

                  The Form can be run only in Preview. Now we have only .ui file, but I think using qmake commands and creating .cpp, .h and .pro files we can run it normally. But how to do these? This is what I don't know and like to learn.

                  1 Reply Last reply
                  0
                  • Ni.SumiN Offline
                    Ni.SumiN Offline
                    Ni.Sumi
                    wrote on last edited by
                    #9

                    hi @tomy ,
                    So you need .ui aling with cpp and header? If it is case, then you must select "Qt Designer Form Class" , not Qt Designer Form.
                    http://postimg.org/image/72s5i3v6b/

                    1 Reply Last reply
                    1
                    • E Offline
                      E Offline
                      eureka
                      wrote on last edited by
                      #10

                      @tomy

                      I fell into the same hole here ..
                      https://forum.qt.io/topic/63965/how-to-create-ui-file-for-manually-edited-application-h-cpp-only

                      1 Reply Last reply
                      0
                      • Ni.SumiN Offline
                        Ni.SumiN Offline
                        Ni.Sumi
                        wrote on last edited by Ni.Sumi
                        #11

                        Info:

                        I prefer, to make ui along with class and header. It makes very easy in future to handle the ui objects , functions related to it in another class. Direct access of ui elements in other separate class causes many problems.

                        If you want to ui, diorectly in your application. Read this. its very simple

                        long info: shortinfo

                        @eureka post is also similar, ...adding ui, header and c++ file manually,

                        1 Reply Last reply
                        0

                        • Login

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