Difference between .pro and CMakeLists.txt
-
Hi,
Just getting used to Qt.
So, I've been coding away on something and there are Headers, footers and forms.
Above these (below the Project name) is a .pro file.So, when I go to create a new Qt Widgets application, instead of following the format as above, there is:
MainWindow class
mainwindow.h,
mainwindow.cpp
mainwindow.ui.There is not, however, a Projectname.pro.
Instead there's a CMakeLists.txt file.
Also, when I try to add another form, it seems to exist somewhere but doesn't show in the project list and I can't edit it.Also, there is a sub-folder in the Project Explorer of "CMake Modules" that is not present in my other projects.
Did I somehow select something different when I created this project?
Thanks,
Uberlinc
-
@Uberlinc said in Difference between .pro and CMakeLists.txt:
Did I somehow select something different when I created this project?
You're using Qt6 which switched from qmake to cmake and therefore now there is a CMakeLists.txt instead a pro-file.
-
Ah!
That explains it!So, then what do I do that's different?
I am trying to do a simple second window application.
When I add a new Qt Designer Form Class, it doesn't add the new files in the Project Explorer.
Is there something else I'm meant to do?Thanks.
-
@Uberlinc said in Difference between .pro and CMakeLists.txt:
Is there something else I'm meant to do?
You have to add it by yourself to the CMakeLists.txt