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
@VelcodeCS
Жыл бұрын
Any time 😃
@eelick1978
3 жыл бұрын
I cannot tell you how much pain you just saved me from .... you are a code god :)
@marcolanfranco3372
3 жыл бұрын
Excellent! It is not easy to find such effective tutorials, many thanks
@hackpulsar
7 ай бұрын
The most instructive, well structured and high quality tutorial on this topic. Thank you!
@mbwilding
3 жыл бұрын
The perfect tutorial doesn't exi.... You helped me more than you know. Thanks for this man! Subbed.
@VelcodeCS
3 жыл бұрын
Took me a while to figure it out. Just sharing the knowledge ☺️
@Overwatch86
8 ай бұрын
Concise and to the point. Got my Qt app integrated with my project in VS Code. Thanks man.
@VelcodeCS
8 ай бұрын
Any time!
@litergod
8 ай бұрын
Super helpful/concise guide, very helpful for wrapping my head around using Cmake + Qt
@alexsimper4153
2 жыл бұрын
its hard to find some good qt tutorials on the internet, thanks for this!
@huzeyfeerkek2678
Жыл бұрын
Thanks for this practical tutorial. Extending it with google test integration would be even better.
@intjengineering
Жыл бұрын
Hello World, I hereby present you the new David Malan haha Excelent tutorial, man. Thanks. Greetings from Germany.
@VelcodeCS
Жыл бұрын
😅 greetings to Germany!
@marvinadams4784
3 ай бұрын
Thanks, buddy, much appreciated…
@37kuba
Жыл бұрын
@Velcode You are awesome dude. Thank you for your kind explanation and helping out others!
@VelcodeCS
Жыл бұрын
Happy to help!
@ed4157
3 жыл бұрын
Helped me a lot, very good explanation. Thank you
@KX36
2 жыл бұрын
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.
@joeporsche1767
3 жыл бұрын
This is very good content. One more subscriber here. Cheer!!!
@Darklink88600
3 жыл бұрын
Thanks for sharing your knowledges ! =)
@VelcodeCS
3 жыл бұрын
No problem!
@amiraabdelwanis5679
Жыл бұрын
thanks for your great explanation :)
@randhirraj9192
3 жыл бұрын
very good explanation.Thanku !!!
@maryguty1705
3 жыл бұрын
it would be great if you could show a video of how to create custom project template that you can just select like Qt console in New Project UI etc.
@VelcodeCS
3 жыл бұрын
Not a bad idea!
@rafaelvidal4561
11 ай бұрын
Very nice video. Congratullations. Do you know if I can use QT6 for Front-End in a ESP32 device?
@Massimus888
Жыл бұрын
Thanks. Just set it up with VSCode. The compiler couldn't find ui_mainwindow.h in mainwindow.cpp. But it worked after adding: set(CMAKE_AUTORCC ON) to the CMakeLists.txt. I really like these types of tutorials where we start from the bottom. Liked and subscribed!
@user-wp6pu4ud6y
8 ай бұрын
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?
@matthewjheaney
5 ай бұрын
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?
@zjinup
3 жыл бұрын
good work bro! thx!
@bemay3909
2 жыл бұрын
Thanks a lot!😊😊😊
@nobody2416
Жыл бұрын
7:45 would be nice if more tutorials werent scared of length
@joseimiranda
Жыл бұрын
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.
@carlodicicco2750
Жыл бұрын
Does your tutorial work even for pycharm instead of VisualStudio?
@joseimiranda
Жыл бұрын
Hi There. It's me again. Hope I get some answer sometime. Please dismiss my below question. Already solved the problem. My question now is: When you use WIN32 the executable is 32 bits? Can't us use WIN64? I tried but the system got messed up. Lots of messages that I could not trace to the origin of the problem. The make app is good, but I think you must expend A LOT of time to learn how to use it the right way. Cheers.
@VelcodeCS
Жыл бұрын
You have to make sure all your libraries are also WIN64. Everything you're using has to be x64. I hope that helps some.
@vivekb5191
3 жыл бұрын
How to add external LIB and dll
@VelcodeCS
3 жыл бұрын
You can add them the same way. Ultimately, you want your executable to be able to use them. So, you can copy them over to the location of the executable (that's essentially what we did)
@mig7287
3 жыл бұрын
👍👍
@maryguty1705
3 жыл бұрын
there is no MSVC compiler for my installed QT even through I installed it with MSVC 2019 selected. There is only a QT MSVC 2019 with no complier. Do I need to seperately download a MSVC 2019 complier from visual c++ or is it a problem of QT intallation procedure?
@VelcodeCS
3 жыл бұрын
Yes, you have to install visual studio 2019 separately. You can get the community version which only requires a Microsoft account and it's free.
@anatolykubasov1687
2 жыл бұрын
Hi, I got an error while cmake configuration. It says that the source directory does not appear to contain CMakeLists.txt. But it does. Any help?
@VelcodeCS
2 жыл бұрын
Hello! I am going to need more info to help. What version of cmake are you using? What does your file look like?
@fawadfawad-xu9zs
Жыл бұрын
I get error says "This project failed to start because because no QT platform plugin could be initialized Reinstalling application may fix this problem"
@VelcodeCS
Жыл бұрын
Looks like it's not finding your Qt build. Did you set everything correctly in the path?
@salihaiptes8285
2 жыл бұрын
hi, i got an error; "error in configuration process project files may be invalid cmake", what can i do
@VelcodeCS
2 жыл бұрын
Umm I'm need more information. What step are you on? What version of cmake are you using?
@amnesie148
3 жыл бұрын
Wow Qt is ver.6 now. So fast..
@VelcodeCS
3 жыл бұрын
Officially came out in December
@ChoukManar
Жыл бұрын
CMake Error at CMakeLists.txt:4 (project): Generator Visual Studio 17 2022 could not find any instance of Visual Studio. Configuring incomplete, errors occurred! See also "C:/Cmake/build would pls help me fixing this error
@VelcodeCS
Жыл бұрын
Do you have visual studio installed?
@ChoukManar
Жыл бұрын
@@VelcodeCS yes I do
@jessprogany4345
3 жыл бұрын
at 17:33 Qt Creator doesn't create a class "Mainmenu" in my case What shall I do?
@VelcodeCS
3 жыл бұрын
That's odd. Did you select the right option? There is an option to only make the .ui (no class file) and an option to make the whole class (.ui, .h., .cpp). Check it out again. Now, if for some reason it is not working, you can still make the .h and .cpp files manually yourself. You can look at the repository for how the class looks (mostly, like a regular class which uses you UI). Hope this helps!
@fanpeter-z3c
3 жыл бұрын
I was using vscode to build my project, but it couldn't auto detect the QT header files, i thought it might be my cmakelist sytax error that i didn't include the headers properly , then i switched to visual studio to build , it works fine (can auto detect all the headers), do u have the same problem when using vscode to build ?
@VelcodeCS
3 жыл бұрын
I myself have never used Qt in a project set up for VS code. It may be possible that it doesn't have the include directories properly set up. I think there's a way to check what directories are included in the project. You could check there. Let me know if you see something suspicious.
@williamxtc8054
2 жыл бұрын
How do you add some class with Q_OBJECT in this case? If I add the following into main.cpp, it will fail compiling class MyButton : public QPushButton { Q_OBJECT public: MyButton(QWidget* parent) : QPushButton("MyButton", parent) {} };
@VelcodeCS
2 жыл бұрын
I think you should put your MyButton class in its own .cpp/.h files. Qt does things and it may interfere with the main function (not 100% sure, but I suspect that's the problem).
@williamxtc8054
2 жыл бұрын
@@VelcodeCS Yeah you are right, if I move it into separate .h/.cpp, then it works fine. Thanks! One other thing I noticed is that if I try this with Qt5 (also changing the CMakeLists.txt to use Qt5), it gives me the following error when trying to launch it from VS2019 "This application failed to start because no Qt platform plugin could be initialized". Not seeing it with Qt6
@VelcodeCS
2 жыл бұрын
I believe Qt 5 doesn't come pre-built for VS2019 (only VS2017). If you want to use it with VS2019, you have to install the c++ v141 toolset then add it as an option when you configure it with CMake (put v141 on the same window you choose the OS type. For example, x64).
@iutb
Жыл бұрын
I found this very useful. What if you don’t like to add qt or any other libraries in your system environment?
@VelcodeCS
Жыл бұрын
I believe you can set the path manually in CMake. It'll first throw an error saying can't find Qt, then you put the path and reconfigure.
@RodCDavid
3 жыл бұрын
Why do I need to isntall CMake?
@VelcodeCS
3 жыл бұрын
Only if you want to use cmake files to configure your project. Otherwise, you just need to install Qt 6 and have your setup however you need it.
@aninosspro
2 жыл бұрын
Bru plz make a QT Udemy course, all the QT courses on Udemy are bad too bad🤮, and too basic 🥶 and teach you only bad coding 😱 and surface stuff if you just could make a course for Advance QT
@VelcodeCS
2 жыл бұрын
It's funny you say that because I would go on there hoping someone would make one 😅. If only I had the time to prepare a full on course 😵💫.
@alexsimper4153
2 жыл бұрын
for a while now, Qt has been throwing me an error when executing the program, despite building fine: qt.qpa.plugin: Could not load the Qt platform plugin "windows" in "D:\Qt\6.1.3\msvc2019_64\plugins\platforms" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available platform plugins are: direct2d (from D:\Qt\6.1.3\msvc2019_64\plugins\platforms), minimal (from D:\Qt\6.1.3\msvc2019_64\plugins\platforms), offscreen (from D:\Qt\6.1.3\msvc2019_64\plugins\platforms), windows (from D:\Qt\6.1.3\msvc2019_64\plugins\platforms), direct2d, minimal, offscreen, windows. any idea why? i have the plugins installed and the rigth path set, and im using vs2019
@VelcodeCS
2 жыл бұрын
So your error is at runtime, correct? If so, it's failing to find those files (I'm assuming). You could try and copy those files from the plugins\platforms directory and paste them where the built executable is. If you do that, does it do anything different?
@alexsimper4153
2 жыл бұрын
@@VelcodeCS Thanks man! It worked by doing that
@VelcodeCS
2 жыл бұрын
Awesome! You probably need to add those plugin folders to your path if you don't want to copy paste things. I also got a video on deployment of the Qt app. It may help with what you're doing a bit.
Пікірлер: 74