Skip to content

Qt Development

Everything development. From desktop and mobile to cloud. Games, tools, 3rd party libraries. Everything.
144.5k Topics 723.9k 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
    R
    I installed Qt 6.11.1 with the maintenance tool and made a simple C++ aboutQt() demo RHEL9. I then used patchelf --set-rpath and LD_DEBUG=libs to confirm that it was not using the system's Qt 6.6.2 libraries. The text clipping bug was still present. So maybe the underlying problem is/was a change/bug in Gnome/Mutter/Wayland/etc.? The EPEL package for qt6-qtwayland doesn't include the adwaita decorator despite having it set as the default. So maybe it's something they knew about. $ cat demo.pro TEMPLATE = app QT += gui widgets core SOURCES += main.cpp TARGET = demo $ cat main.cpp #include <QApplication> int main(int argc, char** argv) { QApplication app(argc, argv); app.aboutQt(); } $ /opt/Qt/6.11.1/gcc_64/bin/qmake $ make $ patchelf --set-rpath "/opt/Qt/6.11.1/gcc_64/lib:/opt/Qt/6.11.1/gcc_64/plugins" ./demo $ LD_DEBUG=libs ./demo 2>&1| grep adwaita calling init: /opt/Qt/6.11.1/gcc_64/plugins/wayland-decoration-client/libadwaita.so I also don't experience the text clipping issue on Arch, but it would be nice to have drop shadows. Totally understand your points about GNOME devs randomly removing things and not providing workarounds (don't get me started on tray icons). Unfortunately I've given up on trying to convince everyone to use tiling WMs and RHEL9 w/ GNOME is something I'm required to support. I think xcb is fine but do you have any pointers for dynamically picking the right platform plugin / decorator to use? Or maybe I should just assume Wayland users have xwayland installed.
  • Looking for The Bling Thing(tm)? Post here!
    20k 78k
    20k Topics
    78k Posts
    GrecKoG
    My case is to develop simplified TextArea within ability just to write, read, copy and paste text without extensive functionality. You can do that in QML with C++ helpers if needed, but as said before the c++ code for TextArea is not public API.
  • The forum for developing everything embedded: Linux, WinCE, Symbian, MeeGo... you name it.
    14k 63k
    14k Topics
    63k Posts
    L
    I'm trying to use QFileDialog::getOpenFileContent() on Android. The file picker intent opens correctly, but the callback is never invoked, so I cannot obtain the selected file content. I have already requested MANAGE_EXTERNAL_STORAGE. Using either QFile with a file URL or my own file picker implementation works correctly, so file access itself does not seem to be the issue. Is QFileDialog::getOpenFileContent() expected to work on Android? If so, are there any additional requirements or configurations that I might have missed? I couldn't find any related bug reports in the Qt bug tracker.
  • 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
    cristian-adamC
    @cristian-adam said in How to Enable Python Type Hints in Qt Creator?: I've opened up QTCREATORBUG-34195: Python debugging not having pretty printers for Pyside6 Qt types. The bug report has been closed, and this is how Qt Creator master (21) looks like: [image: e72021e9-d1f7-4576-877c-ebb5aa2a6ac4.png]
  • 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
    @JonB AFAIK, it's a linker operation so somewhere there's a -Wl, that went missing from what it seems.
  • What can we say - we like games. And you can use Qt to write some. Questions? Ask here.
    875 4k
    875 Topics
    4k Posts
    W
    @JorgeT said in [QT Quick 3D] QRchi shaders and QQuick3DRenderExtension: Hi everyone. I'm trying to create a render extension node for View3d, but i cannot find any useful documentation. I saw the OutlineRender example in the QQuick3D examples, but it doesn't use any shaders at all: https://doc.qt.io/qt-6/qtquick3d-extensions-stenciloutline-example[.].html Later, i found this QRhi example on the Qt documentation, but i couldn't get it to work and it doesn't use QQuick3DRenderExtension https://doc.qt.io/qt-6/qrhi.html What I’m trying to do is apply a shader as a post-process to the View3D framebuffer using the extension property list. Could anyone either explain the QRhi example or provide a commented example that goes through each step? I have experience with OpenGL, but I just can’t get this to work. Thanks!!
  • Discussions and questions on QtWebEngine
    1k 4k
    1k Topics
    4k Posts
    T
    @SGaist the cross compilation of the libraries fixed the prob
  • 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
    C
    problem solved. thank you AI. OK, digging into the vibe debugging, this seemed pretty good. I was going to summarize it, but the AI generated description seems pretty legit, so here is what it did: Getting pyuscope's GUI running on the labsmore scope host (jaguar) Host: videoteam@ps1.fpgas.online:4031 (hostname jaguar, Debian 13, Python 3.13) pyuscope: ~/pyuscope, run as ./app/argus.py inside venv ~/venv/labsmore Scope: lip-vm1 β€” a Hayear HY-800B v4l2 camera (on /dev/video4) + GRBL motion Date: 2026-06-15 Carl's GUI wouldn't start. There turned out to be three separate problems, one stacked behind the other. All three are now fixed and the GUI runs. Problem 1 β€” Qt "xcb" plugin crash (the one Carl reported) Symptom qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in ".../cv2/qt/plugins" even though it was found. Cause (plain English) pyuscope draws its window with Qt (PyQt5). The venv also had the deluxe opencv-python, which secretly ships its own private copy of Qt. The moment pyuscope does import cv2, opencv quietly repoints an environment variable (QT_QPA_PLATFORM_PLUGIN_PATH) at its own Qt plugins. Now two different copies of Qt fight inside one process: Qt finds an xcb plugin file (so it isn't "missing") but it's the wrong, mismatched one β€” "found" but "could not load". Proven: QT_QPA_PLATFORM_PLUGIN_PATH is empty before import cv2 and becomes .../cv2/qt/plugins immediately after. Fix β€” use the headless opencv build (same API, no bundled Qt). pyuscope uses no opencv GUI functions, so nothing is lost: ~/venv/labsmore/bin/pip uninstall -y opencv-python ~/venv/labsmore/bin/pip install opencv-python-headless==4.13.0.92 Problem 2 β€” GStreamer "could not link" crash (GST_IS_CAPS null) Symptom (after Problem 1 was fixed) gst_caps_intersect_full: assertion 'GST_IS_CAPS (caps1)' failed ... assert self.raw_element.link(element) AssertionError (gstwidget.py:530) Cause This host has a newer PyGObject (3.56) in which the old shortcut of passing a string straight into the Gst.Caps() constructor was removed β€” it now raises SystemError / silently ignores the string, producing an empty/invalid caps. pyuscope built its video pipeline's capsfilter with Gst.Caps("video/x-raw,..."), so every microscope config got a null caps and the pipeline wouldn't link. Fix β€” use the supported API, Gst.Caps.from_string(...), at the 3 call sites (uscope/gui/gstwidget.py Γ—2, uscope/imager/gst.py Γ—1). Applied in-place; see git diff in ~/pyuscope. (Worth upstreaming to Labsmore.) Problem 3 β€” the real root cause: the venv couldn't see GStreamer's Python support Symptom (after Problem 2 was fixed) gst_base_sink_init: assertion 'pad_template != NULL' failed ... assert queue.link(dst) AssertionError (gstwidget.py:634) Cause pyuscope's frame-grabber (CaptureSink in uscope/gst_util.py) is a GStreamer element written in Python. The machinery that turns its __gsttemplates__ / __gstmetadata__ declarations into a real element (with a "sink" pad) lives in the gst-python overrides β€” Debian's python3-gst-1.0 package, not in pip's PyGObject. The venv was created with python3 -m venv (so include-system-site-packages = false) and had a pip-installed PyGObject. That pip PyGObject has no gst-python overrides, so the sink never got a pad and the pipeline couldn't link. This same missing-overrides problem is also what broke Gst.Caps("string") in Problem 2 β€” one root cause, two symptoms. Proven: with the venv's own python but the system overrides on PYTHONPATH, the sink registers correctly; without them, it doesn't. Fix β€” let the venv use the apt-installed python3-gi + python3-gst-1.0 (matched to GStreamer 1.26.2): # 1) allow the venv to fall back to system packages # edit ~/venv/labsmore/pyvenv.cfg: include-system-site-packages = true # 2) remove the override-less pip PyGObject so the system one is used ~/venv/labsmore/bin/pip uninstall -y PyGObject (The venv's own pip packages β€” PyQt5, numpy, opencv-headless β€” still take precedence; only gi/Gst now come from the system, which is how GStreamer Python apps are meant to run on Debian.) Result β€” the GUI runs --microscope mock (test pattern): full GUI comes up with live video β€” see argus_mock_screenshot.png. --microscope lip-vm1 (the real scope): launches cleanly with zero console errors, connects to the HY-800B camera (/dev/video4) and the GRBL motion controller, and reaches pyuscope's normal "System is not homed" dialog. A direct GStreamer grab from /dev/video4 produces valid frames (dark only because the scope light was off / no sample) β€” scope_camera_frame.jpg. How Carl launches it ssh -p 4031 videoteam@ps1.fpgas.online tmux a # tmux already has DISPLAY=:0 cd ~/pyuscope . ~/venv/labsmore/bin/activate ./app/argus.py --microscope lip-vm1 Then click OK on the "System is not homed" dialog once the stage is clear (this homes the CNC β€” it physically moves the stage), or Cancel to use the GUI without homing. Durability of the fixes opencv: nothing depends on opencv-python; setup.py has install_requires=[] and setup_ubuntu_20.04.sh only installs apt python3-opencv (--user), so the headless swap won't be undone in the venv. venv config: a backup of the original was saved as ~/venv/labsmore/pyvenv.cfg.bak-claude. source patch: the Gst.Caps.from_string change lives in the ~/pyuscope git checkout (visible in git diff) β€” review and upstream when convenient.
  • Specific issues when using Qt for WebAssembly

    465 2k
    465 Topics
    2k Posts
    Joe von HabsburgJ
    You can try this : QNetworkAccessManager _manager; _manager.setAutoDeleteReplies(true);
  • 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
    C
    @SGaist Thank you! Sadly I don't know anything about reverse engineering the protocol. I'm just a diecut designer for scrapbooking. I've tried the alternative softwares and they're missing things that I'm used to designing with. This is such a great machine and I didn't want to have to buy a Cricut or Silhouette. I was just hoping to find some sort of patch for this software so that it would stop giving me the check usb connection error code. Thank you for your time!!
  • 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