Comments (20)
Right now unfortunately both major compilers are missing complete support for modules: https://en.cppreference.com/w/cpp/compiler_support
When those compilers implement modules, it might be possible but for now we have to stick to traditional includes.
import <iostream>
would definitely work then, but I think import <QObject>
would require Qt code changes first.
from quickcurver.
I have tried in Qt6.3.1 and here are the conclusions:
import <iostream>
works fine.import <QObject>
does not work.- Turning lib files(For example, a.cpp) into modules does not work.
from quickcurver.
Yeah, unfortunately modules support is still in an early stage. We will have to wait a bit, before we can start getting rid of header files in C++.
from quickcurver.
Can I use PyQt instead of Qt? Is there any reason why Qt must be used?
from quickcurver.
You can use whatever you want for your own projects. I think PyQt is easier for beginners, so if you are just starting out, I would recommend it.
But in the end, Qt with C++ is the cleaner solution, especially if you want to get any good performance in your app. I personally have never tried PyQt, so I can't comment on any additional quirks it may have.
I would recommend to always write the Gui in QML though, there is just nothing better than declarative languages for UI.
May I ask what you specifically have in mind?
from quickcurver.
I am a Qt beginner. I want to use Qt to develop desktop application and mobile application. Why QML is better than Qt Designer?
from quickcurver.
Why QML is better than Qt Designer?
I think you can use QML in Qt Designer, so there is no problem in using Qt Designer. Though I personally just write the code directly, because it's much faster than using a GUI for me, but that's a personal preference.
from quickcurver.
Ok! I want to develop Andriod App with Qt6. Is there any tutorial?
from quickcurver.
Do I must use Qt Creator and Qt Designer to develop a Qt Application? Can I develop a Qt Application just using Vim?
from quickcurver.
Ok! I want to develop Andriod App with Qt6. Is there any tutorial?
Yes, there is: https://www.qt.io/product/qt6/qml-book/ch01-meetqt-meet-qt
Do I must use Qt Creator and Qt Designer to develop a Qt Application? Can I develop a Qt Application just using Vim?
No, you can just use vim, I do the same. You can very easily use any editor you want, since Qt is using cmake as build system.
from quickcurver.
Closing this issue, as it has been solved.
from quickcurver.
Is there a big difference between Qt6 and Qt5? Is it easy to upgrade a Qt5 project to a Qt6 project?
from quickcurver.
Does Qt6 support all modules that we can find in Qt 5.15?
from quickcurver.
If I want to apply for a job as a Qt developer, should I learn Qt5 or Qt6?
from quickcurver.
Look, you can find almost all the answers to your questions by doing a google search. I would recommend you to use Qt 6, as it is the latest version.
from quickcurver.
But is Qt6 mature enough? I've noticed that most companies are using Qt5, and don't plan to migrate to Qt6.
from quickcurver.
But is Qt6 mature enough?
Yes
Other companies will eventually migrate to Qt6 too.
from quickcurver.
You make a good point. Thank you so much!
from quickcurver.
How to play your game? I used "W A S D" or "Up Down Left Right", but this straight line goes by itself and does not listen to my orders.
from quickcurver.
How to play your game? I used "W A S D" or "Up Down Left Right", but this straight line goes by itself and does not listen to my orders.
Make sure the game field is focused by clicking on it, then "Left" and "right" should work.
from quickcurver.
Related Issues (8)
- the game starts larger than my display HOT 11
- The Back button closes program HOT 5
- Is there a compiled version available HOT 10
- Great game but...
- Progress? HOT 1
- Screenshots HOT 1
- Help, your artifact is down HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quickcurver.