How to choose a new Form in Qt creator
-
wrote on 15 Feb 2016, 09:11 last edited by
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. -
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.
-
wrote on 15 Feb 2016, 11:04 last edited by
-
wrote on 15 Feb 2016, 11:54 last edited by
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). -
wrote on 15 Feb 2016, 12:01 last edited by
-
wrote on 15 Feb 2016, 12:11 last edited by
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.
-
wrote on 15 Feb 2016, 12:19 last edited by
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/ -
wrote on 15 Feb 2016, 12:42 last edited by
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 -
wrote on 15 Feb 2016, 12:44 last edited by Ni.Sumi
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,
1/11