Skip to content

Qt Development

Everything development. From desktop and mobile to cloud. Games, tools, 3rd party libraries. Everything.
144.0k Topics 720.0k Posts

Subcategories


  • This is where all the desktop OS and general Qt questions belong.
    83k Topics
    455k Posts
    15 years later it's still happening. Has anyone figured out the cause of this output, and how to get rid of it?
  • The forum for developing everything embedded: Linux, WinCE, Symbian, MeeGo... you name it.
    14k 62k a day ago
    14k Topics
    62k Posts
    Hello Qt Community, I'm experiencing frustrating layout artifacts in my Qt/QML Android application that occur intermittently during orientation changes. The layout works correctly about 9 out of 10 times, but occasionally displays distorted or incorrectly sized elements. Environment: Qt 6.8.3 Android NDK 27.0.12077973 Simple ApplicationWindow with ColumnLayout structure Problem: Layout renders perfectly in portrait mode Most orientation changes work fine ~10% of orientation changes result in visual artifacts (incorrect sizing, element positioning) No console errors or warnings Current QML Structure: ApplicationWindow { visible: true title: qsTr("Business Assistant") ColumnLayout { anchors.fill: parent anchors.margins: 20 spacing: 10 Text { /* title */ } RowLayout { Layout.fillWidth: true TextField { Layout.fillWidth: true } Button { /* fixed width */ } } ScrollView { Layout.fillWidth: true Layout.fillHeight: true TextArea { /* content */ } } } } What I've Tried: Pure Layout-based approach (no mixed anchors) ApplicationWindow instead of Window Layout.fillWidth/fillHeight instead of explicit sizing Adding orientation change timers (workaround) Wrapping in Item containers Questions: Is this a known Qt Android orientation handling bug? Are there differences between debug vs release mode for orientation handling? What's the recommended approach for reliable orientation layouts in Qt 6.8.3? Should I consider switching to Flutter for mobile development? The intermittent nature makes this particularly frustrating - users randomly experience broken layouts. Any insights or proven solutions would be greatly appreciated. Qt Version: 6.8.3 Android NDK: 27.0.12077973 Thanks in advance for any guidance!
  • Looking for The Bling Thing(tm)? Post here!
    20k Topics
    77k Posts
    I have the same problem in 2025. Did you find a solution?
  • Have a question about Qt Creator, our cross-platform IDE, or any of the other tools? Ask here!
    8k Topics
    35k Posts
    Hello, I use the Creator 16.0.1 MSVC_2022. The creator seem to be in a endless loop (no error shown, no reaction) after opening a special source file. I have disable the Clang-Code model. The file must no be in any project. A copy of this file, does not crash during opening, but crashed after collapsing the code view. I tried to find out the problematic code position by deleting lines but have not found a real logic roule. It has to do with scrolling and collapsing. Any ideas ?
  • Your Qt just doesn't want to build? Your compiler can't find the libs? Here's where you find comfort and understanding. And help.
    10k 51k a day ago
    10k Topics
    51k Posts
    Setting the environment variable QT_DEBUG_PLUGINS to a non-zero value should result in information about the platform plugin loading to be dumped to the console. Sometimes it provides very direct and actionable feedback, eg reporting a missing dependency or version mismatch. Using QT_WIN_DEBUG_CONSOLE is probably also necessary. Further documentation: https://doc.qt.io/qt-6/debug.html#environment-variables-recognized-by-qt
  • What can we say - we like games. And you can use Qt to write some. Questions? Ask here.
    868 4k 2 days ago
    868 Topics
    4k Posts
    Hi @meme001 Your proactive steps for UI performance on Android devices should be Utilizing Loader for deferred component initialization Minimizing constantly-updating bindings Optimizing image assets To further enhance UI responsiveness on Android, Consider this Leverage (QtQuick.Controls 2) Optimize Animations Profile with Qt Tools Reduce Overdraw Resource Management Asynchronous Operations Remember, performance optimization is an iterative process. Regular profiling & testing across different devices can provide insights into areas needing improvement.
  • Questions about Qt WebKit and related topics? Post here!
    2k 6k 27 days ago
    2k Topics
    6k Posts
    @Vbrg So in a word Qt only offers integrated browser with chromium/Qt web engine.
  • Discussions and questions on QtWebEngine
    1k 4k a day ago
    1k Topics
    4k Posts
    This command worked for me sudo pacman -S libxml2-legacy
  • You're using Qt with other languages than C++, eh? Post here!
    862 Topics
    3k Posts
    [image: cb2a3cc3-f435-4606-af64-5e7b6f7d685a.png] New version QtJambi 6.9.0 is out now 🎉. Try QtJambi to create sophisticated user interfaces in Java. https://www.qtjambi.io
  • Combining Qt with 3rd party libraries or components? Ask here!
    1k 6k 2 days ago
    1k Topics
    6k Posts
    I just wrote a program using GModule to load a Qt module, but after loading, I constantly got critical meaasge from GLib. g_main_context_pop_thread_default: assertion 'stack != NULL' failed But if I ignore this, program runs very normally. I can use environmental variable to make the messages disappear, but this might have side effects. So I want to know whether there's a good idea to make the application work.
  • For discussion and questions about Qt for Python (PySide & Shiboken)

    3k Topics
    14k Posts
    Hi, Any news about that? I’m trying to use a Pyside6 app without desktop with KMS. It works with linuxfb but I need to rotate the screen and it’s not possible on that platform.
  • Specific issues when using Qt for WebAssembly

    454 2k 2 days ago
    454 Topics
    2k Posts
    If I remember well, this SharedArrayBuffer is needed when using wasm multithreading. If your app does not need multithreading, use Qt wasm single threading. If multithreading is needed, check https://forum.qt.io/post/765010
  • Discussions and questions about Qt Quick Ultralite and using Qt on microcontrollers in general

    139 Topics
    434 Posts
    Hi! We have a bit more complex setup with a generic library that defines (multiple) qml_modules. These qml_modules are then consumed in projects. Projects are again separated into multiple qml_modules. The problem arises while we wanted to transition to QmlProject files from CMake (as the Qt for MCUs CMake API is deprecated). The project specific qml_module has C++ types that need to be used in Qml, hence we define a InterfaceFiles node in the QmlProject like the following: InterfaceFiles { files: [ "include/path/to/a/InterfaceHeader.h" ] MCU.qmlImports: [ "com.company.generic.component" ] } The compiler fails to resolve header includes in InterfaceHeader.h as the qmlprojectgenerator only gets CMake INCLUDE_DIRECTORIES of the CMake targets of the project feature qml_module passed as the --include-dirs parameter. The feature lib (created with qul_add_target(TARGET_NAME QML_PROJECT feature.qmlproject) does link to the generic qml_module with a target_link_libraries() call but this is too late for the internal workings of the qul_add_target macro. Somehow the QmlProject is missing a way to tell it which other qml_modules need to be linked/considered. The qul_add_target macro at some point internally is only evaluating the direct INCLUDE_DIRECTORIES which does not include the include directories of transitive dependencies. Here is another short overview of the structure: * generic-library - output: qml_module * project * feature-a - defines qml_module - depends on qml_module of generic-library - ERROR: the interface header files of this of this qml_module are unable to include headers of the generic-library when using .qmlproject files. * feature-xxx - defines qml_module - depends on qml_module of generic-library - additionally might depend on another feature of the project * project-lib - depends on all features * project-app - depends on project-lib Thx, Andi
  • The forum for discussing the Qt Digital Advertising Platform

    16 Topics
    40 Posts
    @nayka Can I use QtDigitalAdvertising on PC applications? Or is it only allowed for use on Android or iOS mobile devices?
  • For discussion and questions about Qt Insight

    9 Topics
    13 Posts
    I wanted to check out the latest features for qt-insight-1.9 but the link just forwards to the main blog page and in the blog I couldn't find anything about QT Insight.