@Simmania said in What is best way to implement controls that render very fast?: QQuickPaintedItem (CPU based, thus probably to slow) QQuickItem + QSGGeometryNode QQuickItem + custom shaders QSGRenderNode / QRhi (probably overkill) These are all solutions that use low-level C++ code. I suggest writing some solutions in high-level QML first, as a way to get familiarized with QML and Qt Quick. This familiarity will help if you later decide you still need a solution written in C++. But before you go down the C++ route, ensure that you benchmark your QML solution. If you're not actually hitting any bottlenecks, there's no need for low-level coding. Notes: QML-defined components are automatically GPU-accelerated You can add custom sharers in QML too What is the best way to support styles? Should/can I use the QML Style system? Have a look at the new QML StyleKit: https://forum.qt.io/topic/165049/stylekit https://doc.qt.io/qt-6/qtlabsstylekit-stylekit-example.html
forum.qt.io
forum.qt.io ↗Forum NodeBB en anglais. 11 rubriques suivies : General and Desktop, Mobile and Embedded, QML and Qt Quick, Qt Creator and other tools, Installation and Deployment, Language Bindings, Game Development, Spanish, Qt Development, QtWebEngine et Qt Multimedia.
- Discussions par jour
- 7
- Discussions collectées
- 238
- Messages par jour
- 37
- Rubriques
- 11
- Sources suivies
- 12
- Moteur
- NodeBB
Dernières discussions
Relevé toutes les 4 heures depuis le flux public du forum. Seuls le titre, le lien et le début du message sont repris ; chaque lien renvoie à la source.
Hi and welcome to devnet, This a user forum where other users answer. For immediate fixes, you should contact the Qt Company. That said, you do not provide enough information such as version of Qt you are using for Androïd. Please take a look at the corresponding requirements chapter and use the JDK, SDK and NDK specified there. The changes between NDK versions can be quite large and often break stuff for third party such as Qt.
@Simmania said in "QML module not found" error when importing custom qml module: [cmake] CMake Error at custom_qml/MyButtons/CMakeLists.txt:4 (set_target_properties): [cmake] set_target_properties Can not find target to add properties to: [cmake] MyButtonsLib You've swapped the order of qt_add_library() and set_target_properties(). The order in your previous version was fine; you must define the target library first before you can set its properties. When removing line 4, I get the error message: [cmake] CMake Error at C:/Qt/6.11.2/msvc2022_64/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:1539 (message): [cmake] Metatype generation requires either the use of AUTOMOC or a manual list of [cmake] generated json files So that lines seems needed. You don't need it if you called qt_standard_project_setup() at the start of your project. This automatically enables AUTOMOC on all of your targets (and it also enables other features): https://doc.qt.io/qt-6/qt-standard-project-setup.html#description Note that I'm not sure about target_link_libraries(appstudio PRIVATE Qt6::Quick MyButtonsLib ) Maybe that should be target_link_libraries(appstudio PRIVATE Qt6::Quick MyButtonsLibplugin ) But it seems to make no difference. For STATIC modules, the official examples use *plugin: https://github.com/qt/qtdoc/blob/v6.11.2/examples/demos/mediaplayer/CMakeLists.txt#L31-L33 (Note: In practice, you could probably omit "MyButtonsLibplugin" and rely on qmlimportscanner to automatically find it... but I like t
Well, I made the change suggested by AI above and it has fixed the problem with the scene position of the QGraphicsObjects changing when the scrollbars are changed. And it fixed a problem where the scrollbars didn't quite end up being in the correct position. What it didn't fix is the problem that I originally was trying to fix where the dragging of the nodes goes extremely fast when the scene changes
I am trying to set up the Android SDK on Qt Creator 20.0.1 on Linux (Ubuntu 26.04 LTS) but keep getting an error about missing essential packages. Qt Creator cannot find the following essential packages: "platform-tools", "cmdline-tools;latest", "emulator", "ndk;27.2.12479018", "platforms;android-36", "build-tools;36.0.0". Install them manually after the current operation is done. According to sdkmanager --list_installed all the mentioned packeges are installed Installed packages: build-tools/36.0.0 36.0.0 Android SDK Build-Tools 36 cmdline-tools/latest 23.0.0 Android SDK Command-line Tools (latest) emulator 37.1.11 Android Emulator ndk/27.2.12479018 27.2.12479018 NDK (Side by side) 27.2.12479018 platform-tools 37.0.1 Android SDK Platform-Tools platforms/android-36 2.0.0 Android SDK Platform 36 system-images/android-36/google_apis_playstore/x86_64 7.0.0 Google Play Intel x86_64 Atom System Image I have confirmed that the SDK installation works in Android Studio, and also works to build other (non-Qt) apps. What would be the next steps in resolving this issue? Thank you.
Excellent ! Happy coding !
Hi, I'm trying to setup a simple Qt Quick app in Visual Studio using the Qt VS Tools extension, because I need to use MSBuild. However, I'm having difficulties auto-registering my C++ types. Unfortunately, there is no documentation in that regard. I noticed there is a target, but I don't know how to use it.
@Louis100 Hi, Check this post about accessing the bug report system.
@Nils-Petter-Skalerud i'm aware of this ! that's why i needed to know if there's a known fix or an export maybe that resolve this without touching the qt code or at least my qml code to make it work. I'll be waiting for your respond ! i hope you'll not forget to ask the expert, this can really help me :') thank you !!
In the locator (the little search box in lower left corner) type t Show Menu Bar and press enter. Once you have menu back in the View menu there's a Modes submenu. In these select either Icons and Text or Icons Only option to show the side bar.
When running Clang-Tidy or Clazy even for "current file only", they show the results for many other files, mostly system include files. Thats a mess to check them all. I'm probably making a simple mistake here. Can someone please help? I use Windows 10 and Qt6.9.1, which I know is a little outdated. I'm a bit reluctant to update on each minor version, unless really necessary.
You can reproduce it inside docker. I've checked out v6.12.0-beta1 tag into $PWD/qt. docker run -it --rm -v $PWD/qt:/src/qt ubuntu:22.04 bash export CMAKE_VERSION="4.3.2" export DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y \ build-essential \ perl \ python3 \ git \ ninja-build \ cmake \ ccache \ libssl-dev \ checkinstall \ libwayland-dev \ libxrandr-dev \ patchelf \ wget \ fuse3 \ pkg-config \ rsync \ libharfbuzz-dev \ libfribidi-dev \ libfontconfig-dev \ libgl1-mesa-dev \ libx11-dev \ libxext-dev \ libxfixes-dev \ libxi-dev \ libxrender-dev \ libxcb1-dev \ libx11-xcb-dev \ libxcb-glx0-dev \ libxcb-keysyms1-dev \ libxcb-image0-dev \ libxcb-shm0-dev \ libxcb-icccm4-dev \ libxcb-sync-dev \ libxcb-xfixes0-dev \ libxcb-shape0-dev \ libxcb-randr0-dev \ libxcb-render-util0-dev \ libxcb-util-dev \ libxcb-xinerama0-dev \ libxkbcommon-dev \ libxkbcommon-x11-dev \ libxcb-xinput-dev \ libegl1-mesa-dev \ libxkbfile-dev \ libxtst-dev \ libxshmfence-dev \ libxcursor-dev \ libxcomposite-dev \ libdrm-dev \ libxcb-dri3-dev \ libxcb-cursor-dev \ libxcb-res0-dev \ libdbus-1-dev \ libdbus-c++-dev \ libzstd-dev \ liblzma-dev \ libbz2-dev \ gettext \ python3-pip \ flex \ bison \ libudev-dev \ libcanberra-dev \ qpdf \ xxd \ libavcodec-extra \ libavcodec-dev mkdir /cmake-build && \ cd /cmake-build && \ git clone --depth 1 --branch v${CMAKE_VERSION} https://github.com/Kitware/CMake.git && \ cd CMake && \ mkdir build && \ cd build && \ cmake .. -G "Unix Makefiles" -DCMAKE_INSTAL
238 discussions collectées depuis le 1 septembre 2026. Suivre ce forum par mot-clé →