Skip to content

Qt Development

Everything development. From desktop and mobile to cloud. Games, tools, 3rd party libraries. Everything.
144.5k Topics 724.2k Posts
Qt 6.11 is out! See what's new in the release blog

Subcategories


  • This is where all the desktop OS and general Qt questions belong.
    84k 460k
    84k Topics
    460k Posts
    Paul ColbyP
    I've tried to change the GIT_TAG to origin/openmath or "openmath". However, doing so blocks all builds, as CMake says it could not clone the repository. Can you show us the error message? I used GIT_TAG origin/openmath and it fetched correctly, however broke the configure step because that branch's code is full of compiler warnings, treated as error. (If I use origin/master, I get an unmet tinyxml2 dependency instead, which I haven't bothered installing). I think you should pass the commit hash matching that tag. This is correct, you should, for security (not technical) reasons: it is advisable to use a hash for GIT_TAG rather than a branch or tag name. A commit hash is more secure and helps to confirm that the downloaded contents are what you expected.^1 But branch and tag names work too. Since the openmath branch has not changed in 2 years, you could always try: GIT_TAG 086f4eb740270b28bd0c61a0a359aea9300d61ae # Current openmath HEAD. For which I get the same result as GIT_TAG origin/openmath - ie it fetches, just has compilation errors compiling the MicroTex source. Cheers.
  • Looking for The Bling Thing(tm)? Post here!
    20k 78k
    20k Topics
    78k Posts
    G
    Hi everyone, I am working with Qt 6.9.3 and customizing a ScrollBar using the QtQuick.Controls.Basic style. I have encountered an issue where the ScrollBar.AsNeeded policy does not work as expected when attached to a ListView.When the ListView is completely empty (or content fits within bounds), the scroll handle/thumb correctly hides, but the custom background track remains permanently visible on the screen. If I switch back to the default QtQuick.Controls style without customization, the AsNeeded policy works perfectly. Here is the custom ScrollBar implementation I am using in a standalone file: // CustomScrollBar.qml import QtQuick import QtQuick.Controls.Basic ScrollBar { id: control policy: ScrollBar.AsNeeded minimumSize: 0.1 hoverEnabled: false contentItem: Rectangle { implicitWidth: 10 implicitHeight: 10 color: control.pressed ? "#444" : "#888" // Handle correctly tracks active/size states visible: control.policy === ScrollBar.AlwaysOn || (control.active && control.size < 1.0) } background: Rectangle { implicitWidth: control.implicitWidth color: "#E0E0E0" // This background remains visible even when ListView is empty (control.size == 1.0) } } And how it is attached: ListView { id: listView Layout.fillHeight: true Layout.fillWidth: true clip: true model: 0 // Empty for testing ScrollBar.vertical: CustomScrollBar { anchors.right: listView.right } } Is there a specific internal property or visibility binding for the background item in the Basic style template that I need to manually handle to make it respect the AsNeeded policy when the view has no overflow? Thanks for your help!
  • The forum for developing everything embedded: Linux, WinCE, Symbian, MeeGo... you name it.
    14k 63k
    14k Topics
    63k Posts
    SGaistS
    Then try with the full logging enabled. There will be a flood but you might find something in there.
  • This is a discussion space for

    • for audio / video playback and recording
    • media formats and codecs
    • camera and screen sharing functionality
    51 222
    51 Topics
    222 Posts
    V
    I have been having this same issue with my Bluetooth headset not being detected
  • Have a question about Qt Creator, our cross-platform IDE, or any of the other tools? Ask here!
    8k 36k
    8k Topics
    36k Posts
    T
    Hi again, in the meantime our clang experts are working on a solution for using lldb. I'm sure they will do it well. I still have another issue with lldb. But therefore I will start another thread or even create a bug ticket. And for the issue with gdb not showing the object member values (which was my original one) I first will try to find out, whether there is a new gdb version doing it better.
  • 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 52k
    10k Topics
    52k Posts
    SGaistS
    Hi, With which compiler ? Which configure parameters did you use ? What number of cores are you using at the same time ? What are your machine specifications ?
  • What can we say - we like games. And you can use Qt to write some. Questions? Ask here.
    875 4k
    875 Topics
    4k Posts
    ansifpiA
    [image: b1158623-f24e-4104-894e-84fd254a3468.png] We built the abive 2D game app in Qt QML back in 2013, before Android gaming took off. We implemented X-Y movement, acceleration physics, joystick controls and more, all in QML — a genuinely fun project. But my honest takeaway after ~10 years of Qt work: Qt is not built for games. Its strength is putting a clean UI on top of complex hardware and machinery — industrial systems, automotive HMI, embedded devices. That's where it shines. Games need rich animation pipelines, physics engines, asset tooling and GPU-focused rendering — areas where engines like Unity, Unreal or Godot are far better served. So my suggestion: if you're serious about game development, learn a dedicated game engine. If what actually excites you is engineering — machinery, hardware, instrumentation — then Qt is an excellent fit, and the official Qt Academy courses (qt.io/academy) are a good free starting point.
  • Discussions and questions on QtWebEngine
    1k 4k
    1k Topics
    4k Posts
    D
    @SGaist Thank you for this suggestion! I've actually evaluated this option, the problem for my case is that the application runs on Linux. Unfortunately, according to the docs, the underlying engine for web view for Linux is Qt's web engine. On Linux, Qt WebView depends on the Qt WebEngine module to render content. Currently or main concerned is the control on QT libraries. Current the app use system provided QT libraries. I am planning to ship a self contained package first. And the main concern around this is the deployment tree size. Removing these resources saved ~80MBs but I am not sure if that would break anything
  • You're using Qt with other languages than C++, eh? Post here!
    870 3k
    870 Topics
    3k Posts
    PedromixP
    New version QtJambi 6.11.1 is available now 🎉. For all who want to create smart UIs🚀 in Java or Kotlin based upon the latest Qt release. https://www.qtjambi.io/ [image: 95a6c11a-f7b2-4a9c-8325-ccfc9c93b3ec.png]
  • For discussion and questions about Qt for Python (PySide & Shiboken)

    3k 15k
    3k Topics
    15k Posts
    P
    Same crash for 6.10.1, 6.10.3, 6.11.0
  • Specific issues when using Qt for WebAssembly

    466 2k
    466 Topics
    2k Posts
    R
    Hi, I am not able to get the hellogl2 example working with Qt for WebAssembly. This is the example that is found in the Qt/Examples/Qt-6.11.1/opengl/hellogl2 directory, and also in https://doc.qt.io/qt-6/qtopengl-hellogl2-example.html . It works when I compile it as a regular program, however, when I compile it for WebAssembly, the contents of QOpenGLWidget are not rendered. This example is similar to a program that I am working on and having the same problems. The following are the steps to reproduce it: cd ~/Qt/Examples/Qt-6.11.1/opengl/hellogl2 ~/Qt/6.11.1/wasm_singlethread/bin/qmake6 hellogl2.pro make python3 -m http.server 8000 Then in the browser: http://localhost:8000/hellogl2.html Roman
  • Discussions and questions about Qt Quick Ultralite and using Qt on microcontrollers in general

    156 476
    156 Topics
    476 Posts
    G
    I am working on a Qt for MCUs application and currently using OTF font files with the Static font engine. The font quality is good with OTF, but internal flash usage becomes very high. When I use FMP fonts, flash usage is low, but some glyphs do not render properly. Any guidance on the correct approach to move OTF font storage to external memory would be very helpful. Thank you.
  • Combining Qt with 3rd party libraries or components? Ask here!
    1k 6k
    1k Topics
    6k Posts
    S
    I know this is an old thread, but since it still shows up in search results: In case someone has issue with cross-compiling vlc4.0 from linux to windows, You can also checkout a blog on this issue: https://medium.com/@skdevane/building-vlc-4-0-for-windows-inside-wsl2-every-wall-i-hit-and-how-i-got-through-them-72e6e1e2d456
  • The forum for discussing the Qt Digital Advertising Platform

    16 41
    16 Topics
    41 Posts
    E
    @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

    11 20
    11 Topics
    20 Posts
    jsulmJ
    @Alejandro_qt_ Here is an example how to build qtbase module: https://stackoverflow.com/questions/50022325/building-qt-module-from-source