Último tema hace 10 d

forum.qt.io

forum.qt.io

Foro NodeBB en inglés. 11 secciones seguidas: 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 y Qt Multimedia.

Discusiones por día
6
Discusiones recopiladas
238
Mensajes por día
36
Secciones
11
Fuentes seguidas
12
Motor
NodeBB

Últimas discusiones

Recogido cada 4 horas desde el feed público del foro. Solo se reproducen el título, el enlace y el principio del mensaje; cada enlace remite a la fuente.

What is best way to implement controls that render very fast?

@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

Trouble in android sdk setup in Qt Creator

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.

"QML module not found" error when importing custom qml module

@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

fake mouse move events when scrolled programatically

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

Setting up Android SDK for Qt Creator on Linux

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.

Auto-regiersting QML types in MSBuild

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.

Constrain Clang-Tidy and Clazy to just one file

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.

Target 'FFmpeg::avutil' is missing an SBOM_ENTITY_TYPE value.

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 discusiones recopiladas desde el 1 de septiembre de 2026. Seguir este foro por palabra clave →