Skip to content

Qt Development

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

Subcategories


  • This is where all the desktop OS and general Qt questions belong.
    84k 458k
    84k Topics
    458k Posts
    jeremy_kJ
    @electric-dev said in How to add a QCompleter to a Qtreeview: completar=["ABB","auto","avellana","asturia"] completer = QCompleter(completar) ... completer.setModel(QFileSystemModel(completer)) ... self.my_model=QStandardItemModel(self,completer) self.setModel(self.my_model) These three sections of code are mutually incompatible. QCompleter supports a single model at a time. In addition, the completer needs to be set on an input widget such as QLineEdit, or queried as described in the documentation.
  • The forum for developing everything embedded: Linux, WinCE, Symbian, MeeGo... you name it.
    14k 63k
    14k Topics
    63k Posts
    SGaistS
    Hi, That is strange. Did you already tried with a different mirror ?
  • Looking for The Bling Thing(tm)? Post here!
    20k 78k
    20k Topics
    78k Posts
    SGaistS
    Can you start Qt Creator from the command line using the QT_DEBUG_PLUGINS environment variable set to one and then use the preview mode ? I am wondering whether the svg plugin gets lost somehow.
  • This is a discussion space for

    • for audio / video playback and recording
    • media formats and codecs
    • camera and screen sharing functionality
    45 190
    45 Topics
    190 Posts
    J
    @Sikander-Rafiq said in How to provide SRT file to QMediaPlayer: I have manually added Subtitles support in my QT app Would you be so kind as to share some clues about how you did it? I'm building a PySide6 app for editing/translating subtitles, using libmpv to display the video with subtitles. But my app has to save a whole SRT file just to show one freshly-edited subtitle (even when the video is paused). So I'd be interested to know how to make a text overlay that can show text on a video (playing as well as paused). I suspect that you used a text overlay, as I could not see any other way to do it, last time I looked (maybe a year ago). Edit: I hope you meant Qt (cute), not QT (cue tee), as I'm not interested in Apple QuickTime. ;)
  • Have a question about Qt Creator, our cross-platform IDE, or any of the other tools? Ask here!
    8k 36k
    8k Topics
    36k Posts
    SGaistS
    @paulf Hi, While the installer itself is indeed x86_64, the Qt installation is universal.
  • 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
    10k Topics
    51k Posts
    nicwainwrightN
    Is there a target we can point to for Yocto builds in the meantime? Or should we somehow wait to be updated?
  • What can we say - we like games. And you can use Qt to write some. Questions? Ask here.
    875 4k
    875 Topics
    4k Posts
    8Observer88
    Debug drawer for Box2D v3 using QPainter It uses b2World_Draw to draw Box2D objects for debugging. You can just download and run it without compiling libs because it include libs for Windows (MinGW) and Android. Source: https://github.com/8Observer8/debug-drawer-qpainter-box2dv3-qt6-cpp [image: 2a9af153-b7d2-40a0-9702-5fdfb79ccf52.png]
  • Discussions and questions on QtWebEngine
    1k 4k
    1k Topics
    4k Posts
    G
    @jsulm Thanks for the reply. Correct. I created a folder name different from the default. FYI, I can build other examples so I don't think my installation folder is the issue.
  • You're using Qt with other languages than C++, eh? Post here!
    867 3k
    867 Topics
    3k Posts
    N
    Indeed, it didn't work for PySide2; I had to implement a workaround. The option is present in the shiboken6 documentation, but not in shiboken2. I conclude it is not supported by the latter. Thanks
  • Combining Qt with 3rd party libraries or components? Ask here!
    1k 6k
    1k Topics
    6k Posts
    P
    So finally an update ! In my code I used 'setStyle' which modifes obviously internals of the QwtCurve in my "class CustomQwtCurve : public QObject, public QwtPlotCurve" constructor I had: setStyle(QwtPlotCurve::Lines); this seems to do stuff that makes it break. I added : setSymbol(nullptr); to the end of constructor and now it does not crash anymore. It also does not crash if I remove setStyle(QwtPlotCurve::Lines);
  • For discussion and questions about Qt for Python (PySide & Shiboken)

    3k 15k
    3k Topics
    15k Posts
    addiksA
    Hello Qt Forum, I am currently trying to learn qt via the python pyside6 package. The project I have chosen to learn qt with is a password trainer that is supposed to ask you for your future password after every screen-unlock so that you can be sure that you can remember that password before you actually start using it. To listen to screen-unlocks, I am trying to listen to the DBUS org.freedesktop.ScreenSaver/ScreenSaver -> ActiveChanged(bool) signal. Unfortunately this does not seem to work using the Qt-DBUS library. Using the dbus-monitor, I can see that the signals are actually being sent: $ dbus-monitor "interface='org.freedesktop.ScreenSaver'" ... signal time=1761396762.341364 sender=:1.21 -> destination=(null destination) serial=94408 path=/ScreenSaver; interface=org.freedesktop.ScreenSaver; member=ActiveChanged boolean true ... signal time=1761396765.026613 sender=:1.21 -> destination=(null destination) serial=94464 path=/ScreenSaver; interface=org.freedesktop.ScreenSaver; member=ActiveChanged boolean false My current attempt to listen to this signal looks something like this: from __future__ import annotations from PySide6 import QtDBus, QtCore from PySide6.QtCore import Slot, QObject from typing import Annotated, get_type_hints class DBusEventDispatcher(QtCore.QObject): def __init__(self): super().__init__() sessionBus = QtDBus.QDBusConnection.sessionBus() if not sessionBus.isConnected(): errorMessage = sessionBus.lastError().message() raise Exception("Cannot connect to DBUS: " + errorMessage) success = sessionBus.registerService("my_app") print(success) success = sessionBus.registerObject( '/', 'org.freedesktop.ScreenSaver', self, QtDBus.QDBusConnection.ExportAllSlots ) print(success) mo = self.metaObject() for m in range(mo.methodOffset(), mo.methodCount()): print(mo.method(m).methodSignature()) self.iface = QtDBus.QDBusInterface( "org.freedesktop.ScreenSaver", # Service "/ScreenSaver", # Path "org.freedesktop.ScreenSaver", # Interface sessionBus ) print(self.iface.isValid()) self.iface.connect( QtCore.SIGNAL("ActiveChanged(bool)"), self.ActiveChanged ) QtCore.QObject.connect( self.iface, QtCore.SIGNAL("ActiveChanged(bool)"), self.ActiveChanged ) success = sessionBus.connect( 'org.freedesktop.ScreenSaver', # service, '/ScreenSaver', 'org.freedesktop.ScreenSaver', 'ActiveChanged', self, QtCore.SLOT('ActiveChanged(bool)') ) print(success) @QtCore.Slot(bool) def ActiveChanged(self, active: bool): print("ActiveChanged") print(active) ... which produces this output when executed: $ python3 my_app.py True True b'ActiveChanged(bool)' True True But sadly, that is it. When the screen is locked and unlocked (and produces the dbus-monitor output at the top), nothing more happens from the script. I have already tried other DBUS-libraries and can confirm that at least one of these is actually able to catch that event, but sadly none of these libraries play nice with qt because they all interfere with the main loop in some way or another. Does anybody know what may be wrong with the script? Is there maybe some debug-flag that I could set to see what is happening inside the python / Qt-DBUS library? Any other ideas? Thanks for any help. $ python3 --version Python 3.12.3 $ pip3 list Package Version ------------------ ------- cysystemd 2.0.1 pip 24.0 PySide6_Essentials 6.10.0 shiboken6 6.10.0 systemd 0.17.1 systemd-python 235 $ uname -a Linux gerrit-framework 6.14.0-112033-tuxedo #33~24.04.1tux1 SMP PREEMPT_DYNAMIC Tue Sep 30 19:33:36 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux $ cat /etc/issue TUXEDO OS 24.04.3 LTS \l KDE-Plasma-Version: 6.4.5 KDE-Frameworks-Version: 6.17.0 Qt-Version: 6.8.2 Graphics-Platform: Wayland
  • Specific issues when using Qt for WebAssembly

    460 2k
    460 Topics
    2k Posts
    F
    Hi, I'm building a Qt application that loads large files, so I need more than 4 GB of memory. I know that with 64-bit WebAssembly this wouldn’t be a problem, but I can’t find any option to build Qt with wasm64. Did I miss something, or is Qt not yet ready to be built with WebAssembly 64-bit? If that’s the case, do you know when it might become possible? Thanks,
  • Discussions and questions about Qt Quick Ultralite and using Qt on microcontrollers in general

    151 463
    151 Topics
    463 Posts
    J
    Hello everyone, I'm following the guide from https://doc.qt.io/QtForMCUs-2.10/qtul-nxp-rt1170-qsg.html to develop on the NXP i.MX RT1170 platform. I carefully followed each step in the tutorial, but when I reached the final build stage, the compiler reported the following error: make[1]: *** No rule to make target 'libQulCore_cortex-m7-hf-fpv5-d16_Windows_armgcc_MinSizeRel.a', needed by 'MIMXRT1176_Project.axf'. Stop.  I tried going back through the tutorial to check if I missed anything, but I couldn't identify the problem. Could anyone advise how to resolve this error? Environment: IDE: MCUXpresso IDE v11.9.0 [Build 2144] [2024-01-05] SDK: SDK_2_16_0_MIMXRT1170-EVKB Qt for MCUs: 2.10.1 Thank you!
  • The forum for discussing the Qt Digital Advertising Platform

    16 39
    16 Topics
    39 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