cplusplusqt | Unsorted

Telegram-канал cplusplusqt - C++ & Qt

1137

Link: @CplusplusQt Embedded: @EMBCpp • No DM without prior permission • Behave friendly • No NSFW • No Spam • No unauthorized Bots • Don't advertise other groups

Subscribe to a channel

C++ & Qt

I got this from Claude:

Qt Creator has full Android support through an Android Kit (configure SDK/NDK/JDK paths under Preferences → Devices → Android, or Edit → Preferences in older versions). Once the kit’s set up, you build, deploy, and debug .apk/.aab files directly from the IDE. Under the hood, androiddeployqt generates an Android project and invokes Gradle to package it.

On Gradle: by default Qt uses the Gradle wrapper (gradlew + gradle-wrapper.properties) that ships in Qt’s Android package templates. The wrapper auto-downloads a specific Gradle version on first build. If you want to use a manually installed Gradle instead — common when you’re offline, behind a corporate proxy/firewall, or need a pinned version — you have a few options:

• Point the wrapper at your local install. Edit gradle-wrapper.properties and set distributionUrl to a file:// path of your downloaded Gradle distribution zip. This is the least invasive route and keeps the wrapper mechanics intact.
• Override the package template. Set ANDROID_PACKAGE_SOURCE_DIR in your .pro/CMakeLists.txt to a custom directory containing your own gradle-wrapper.properties (and build.gradle), so Qt doesn’t overwrite your config on each deploy.
• Run Gradle yourself. Let Qt generate the Android project (androiddeployqt --output ...), then invoke your system Gradle (gradle assembleRelease) outside the wrapper entirely. Useful if you want the IDE for editing/debugging but your own build orchestration.

One gotcha worth flagging: the Android Gradle Plugin (AGP) version that Qt’s template requests must be compatible with both your Gradle version and your JDK. Mismatches here are the usual source of cryptic build failures. If you pin Gradle manually, check Qt’s docs for your specific Qt version to see which AGP/Gradle pairing it expects.

Given you’re already doing Qt cross-compilation work, the ANDROID_PACKAGE_SOURCE_DIR route is probably cleanest — it gives you reproducible, version-controlled control over the Gradle setup without fighting Qt’s regeneration. Want me to sketch out a minimal custom package source dir for that?

Читать полностью…

C++ & Qt

I think you can specify a local gradle location somewhere, but i haven’t touched that for some years

Читать полностью…

C++ & Qt

Yes, this file was downloaded for me. Excuse me, what should I do next?

Читать полностью…

C++ & Qt

I'm sorry, is there no way I can fix the problem?? And since my VPN tunnels the entire system, what do you think could be the problem?

Читать полностью…

C++ & Qt

Gradle version may not be an issue. If it is a problem with download that needs to be fixed.

Also, the Android Gradle Plugin (AGP) version (defined in build.gradle) is compatible with specific minimum gradle wrapper version (defined in gradle-wrapper.properties)

If the gradle files are auto generated by Qt, then they should never be the root cause.

Читать полностью…

C++ & Qt

I want to set up Android Kit on Qt I set up the required sdk and ndk but when I build it, it gives a gradle warning because Iran is under sanctions and filtering, I have to use a vpn

Читать полностью…

C++ & Qt

Gradle 8.6 seems to be quite old. Is everything up to date?

Читать полностью…

C++ & Qt

:-1: error: A problem occurred configuring root project 'android-build-untitled1'.
> Could not resolve all artifacts for configuration ':classpath'.
> Could not find com.android.tools.build:gradle:8.6.0.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/8.6.0/gradle-8.6.0.pom
- https://repo.maven.apache.org/maven2/com/android/tools/build/gradle/8.6.0/gradle-8.6.0.pom
Required by:
root project :

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

BUILD FAILED in 8s

Читать полностью…

C++ & Qt

Expand the errors and share the details here.

Читать полностью…

C++ & Qt

Processional and Enterprise license will cost even more.

Читать полностью…

C++ & Qt

I have not personally used them, but attended regional Qt Meet (Qt Summits organised by Qt sales reps in Bangalore, India) where I have seen the demonstration. Qt for MCU libraries are light weight compared to the Qt for Application Development. Using QML looked super easy for developing embedded GUI. It used standard C++ libraries.

Читать полностью…

C++ & Qt

Nope, It is much easier with "Boot to Qt" and "Qt for MCU".

Infact the commercial license "Qt for Device Creation" is the major revenue generator for Qt Company.

Many MedTech and Automotive industries are using Qt for HMI compared to any other frameworks.

Читать полностью…

C++ & Qt

I have used C++ for STM32 MCUs and found it straightforward and easy but someone told me that thing about Qt. Not sure how true it is

Читать полностью…

C++ & Qt

Yes, that’s what I mean. Of course it is c++, but you can almost create an app without knowing much of ”normal” c++. The Qt libraries are does almost everything that the .net or java standard libraries do (at least the important stuff) and they integrate with each other as you would expect from a standard library.

Читать полностью…

C++ & Qt

I do prefer dear IMGUI

Читать полностью…

C++ & Qt

My version is 6.8, I don't think it has changed much since the last version you used.
Excuse me, what was your suggestion?

Читать полностью…

C++ & Qt

I’m not sure, but at least the vpn seems to be working

Читать полностью…

C++ & Qt

Can you access this file: https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/8.6.0/gradle-8.6.0.pom

Читать полностью…

C++ & Qt

Yes, I think it is a networking problem (either the file isn’t available anymore or the connection is blocked). Gradle wants to download files all the time, so you should look into the vpn setup if you think it may be the cause

Читать полностью…

C++ & Qt

No, I'm using Qt 6.8. I think GRADLE is enough. I think the problem is with the VPN, which can't get the files. Can I set it up manually?

Читать полностью…

C++ & Qt

Could you share the build.gradle file?

Читать полностью…

C++ & Qt

:-1: error: Building the android package failed!
-- For more information, run this command with --verbose.

Читать полностью…

C++ & Qt

:-1: error: FAILURE: Build failed with an exception.

* What went wrong:

Читать полностью…

C++ & Qt

how do i solve this problem?

Читать полностью…

C++ & Qt

Here is the license cost for small business

Читать полностью…

C++ & Qt

Most of my prior and current projects use STM32 MCUs for which I use STM32CubeIDE plus C++.
You think Qt for MCU is still a good alternative for them?

Читать полностью…

C++ & Qt

Welcome to the group, @Arkenil! :-)

Wanna share your story of how you started with Qt, QML or C++? Maybe some nice feature that made you stick with it.
Rules are set on the description of the group. :)

Читать полностью…

C++ & Qt

I haven’t really used it, but I think you have to compare it to the alternatives. Embedded can be challenging.

Читать полностью…

C++ & Qt

I heard using Qt for embedded is rather hard, true?

Читать полностью…

C++ & Qt

That’s right, but there’s much stuff starting with Q (eg QString, Qvector and so on) that aren’t identical with standard C++.
Qt is a framework but I guess it doesn’t dislike to look a little like kinda language.

Читать полностью…
Subscribe to a channel