Cross-platform Qt 6 CMake Project Setup

preview_player
Показать описание
In this video I show you how to set up Qt 6 and a CMake file which can be used to build your Qt C++ project to be used with Visual Studio 2019 and Qt Creator. This CMake file is usable in Windows, Mac, and Linux.

___ Social Media ___

___ Equipment ___

00:00 Introduction
00:27 Install Qt
04:31 Setup Qt in Path (Windows)
06:50 Install CMake
07:38 CMake File
13:45 Visual Studio Setup
16:04 Sample Code
19:15 Qt Creator Setup
23:18 Summary
24:00 Last Remarks
Рекомендации по теме
Комментарии
Автор

This is literally the most helpful CMake and Qt tutorial I’ve ever watched to help me get all setup. And the most concise. Massive thank you

ChickenTandies
Автор

The most instructive, well structured and high quality tutorial on this topic. Thank you!

hackpulsar
Автор

I cannot tell you how much pain you just saved me from .... you are a code god :)

eelick
Автор

Excellent! It is not easy to find such effective tutorials, many thanks

marcolanfranco
Автор

Concise and to the point.
Got my Qt app integrated with my project in VS Code.
Thanks man.

Overwatch
Автор

Super helpful/concise guide, very helpful for wrapping my head around using Cmake + Qt

litergod
Автор

its hard to find some good qt tutorials on the internet, thanks for this!

alexsimper
Автор

The perfect tutorial doesn't exi....

You helped me more than you know. Thanks for this man! Subbed.

mbwilding
Автор

Check out Qt VS Tools extension for Visual Studio. I haven't used it much but it seems to reduce the need for a lot the initial setup and a lot of of back and forth between VS, Qt creator, CMake and windows explorer. Only downside I can see is that it still uses qmake.

KX
Автор

Hello World, I hereby present you the new David Malan haha

Excelent tutorial, man. Thanks.
Greetings from Germany.

electro.engineering
Автор

Thanks for this practical tutorial. Extending it with google test integration would be even better.

huzeyfeerkek
Автор

Very nice video. Congratullations. Do you know if I can use QT6 for Front-End in a ESP32 device?

rafaelvidal
Автор

@Velcode You are awesome dude. Thank you for your kind explanation and helping out others!

kuba
Автор

Hey thanks for the video, i have a question that when we try to export a project from Qt design studio to Qt creator, it uses cpp main file to load the qml, how can i do it for python development?

wppuudy
Автор

21:17 in my kit management i cant see CMake tab.. anyone please help me

saimahmad
Автор

How do you force Qt Creator to re-run the build configuation dialog? You had a project that had an existing config (MSVC was the compiler), but then you were able to get force Qt Creator to run the configation dialog again, allowing you to add a different compiler. How did you do that?

matthewjheaney
Автор

Hi there. Enjoyed your video. But I would like to know if you can help me with cmake and qt6. I have installed qt6 in my msys6/mingw64 using pacman. My c++ compiler idem (g++). I want to develop a basic qt that uses Q_OBJECT. I know I have to use the moc inside the makefile. Well, I have tried but could not make it work. Thanks. Jose.

joseimiranda
Автор

This is very good content. One more subscriber here. Cheer!!!

joeporsche
Автор

Helped me a lot, very good explanation. Thank you

ed
Автор

Does your tutorial work even for pycharm instead of VisualStudio?

carlodicicco