Unsolved How to choose a new Form in Qt creator
-
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. -
@tomy
Hello,
There is. Select from the menu: File > New File or Project ...
This will produce a dialog like this one:
Choose Qt and Qt Designer Form, click on the Choose ... button and then follow the wizard.Kind regards.
-
-
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. -
hi @tomy ,
It s the same how you run other Qt projects . Click on edit and run it. -
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). -
-
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.
-
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/ -
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 -
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
@eureka post is also similar, ...adding ui, header and c++ file manually,