PDA

View Full Version : 'Hello world' question



Azevedo
25th June 2016, 21:38
Hi,
I'm getting familiar with the Qt "hello world".

I do not understand the line
#include "ui_mainwindow.h".
If the file ui_mainwindow.h does not exist how can it be included?

Radek
25th June 2016, 21:59
It does (supposing you have created mainwindow.ui in your Designer and declared it in the FORMS directive in your .pro file), don't worry. It'll be created by qmake during building your app.

Azevedo
26th June 2016, 20:08
Oh it is created during compilation time then. Thanks!