Code Monkey home page Code Monkey logo

Comments (20)

vimpostor avatar vimpostor commented on August 19, 2024

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.

tgbamg avatar tgbamg commented on August 19, 2024

I have tried in Qt6.3.1 and here are the conclusions:

  1. import <iostream> works fine.
  2. import <QObject> does not work.
  3. Turning lib files(For example, a.cpp) into modules does not work.

from quickcurver.

vimpostor avatar vimpostor commented on August 19, 2024

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.

tgbamg avatar tgbamg commented on August 19, 2024

Can I use PyQt instead of Qt? Is there any reason why Qt must be used?

from quickcurver.

vimpostor avatar vimpostor commented on August 19, 2024

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.

tgbamg avatar tgbamg commented on August 19, 2024

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.

vimpostor avatar vimpostor commented on August 19, 2024

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.

tgbamg avatar tgbamg commented on August 19, 2024

Ok! I want to develop Andriod App with Qt6. Is there any tutorial?

from quickcurver.

tgbamg avatar tgbamg commented on August 19, 2024

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.

vimpostor avatar vimpostor commented on August 19, 2024

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.

vimpostor avatar vimpostor commented on August 19, 2024

Closing this issue, as it has been solved.

from quickcurver.

tgbamg avatar tgbamg commented on August 19, 2024

Is there a big difference between Qt6 and Qt5? Is it easy to upgrade a Qt5 project to a Qt6 project?

from quickcurver.

tgbamg avatar tgbamg commented on August 19, 2024

Does Qt6 support all modules that we can find in Qt 5.15?

from quickcurver.

tgbamg avatar tgbamg commented on August 19, 2024

If I want to apply for a job as a Qt developer, should I learn Qt5 or Qt6?

from quickcurver.

vimpostor avatar vimpostor commented on August 19, 2024

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.

tgbamg avatar tgbamg commented on August 19, 2024

But is Qt6 mature enough? I've noticed that most companies are using Qt5, and don't plan to migrate to Qt6.

from quickcurver.

vimpostor avatar vimpostor commented on August 19, 2024

But is Qt6 mature enough?

Yes

Other companies will eventually migrate to Qt6 too.

from quickcurver.

tgbamg avatar tgbamg commented on August 19, 2024

You make a good point. Thank you so much!

from quickcurver.

tgbamg avatar tgbamg commented on August 19, 2024

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.

vimpostor avatar vimpostor commented on August 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.