Skip to content

Qt Development

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

Subcategories


  • This is where all the desktop OS and general Qt questions belong.
    84k 458k
    84k Topics
    458k Posts
    B
    @SGaist Thanks for the reply, they didn't provide the .lib files in the source code, so I had to generate them myself. I was able to find https://wiki.videolan.org/GenerateLibFromDll explaining how to do it and got the application to run now, thanks!
  • 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
    G
    Thanks a lot @Pl45m4 for your time ! With this link (https://doc.qt.io/qtforpython-6/examples/index.html) i found some good examples ! However i face a big problem it seems impossible to embed QWidgets (like PyQtGraph or Matplotlib plots) directly in a QML panel. I'm looking for alternatives or solution but nothing ... Thanks
  • This is a discussion space for

    • for audio / video playback and recording
    • media formats and codecs
    • camera and screen sharing functionality
    46 191
    46 Topics
    191 Posts
    B
    I have an Qt6 application that simply opens a camera with QCamera in QMediaCaptureSession, use QVideoSink::videoFrameChanged to trigger a paintEvent to draw the current frame. Everything is working correctly, but then I notice if I drag the application window, it starts dropping frames. This does not happen if I resize the window. Is this a known issue or there are ways to get around this issue? Below are a stripped version of my code: .h file class VideoManager : public QWidget { Q_OBJECT public: VideoManager(); protected: void paintEvent(QPaintEvent* event) override; private slots: void OnFrameChanged(QVideoFrame const& frame); private: void Start(); void Stop(); private: QMediaCaptureSession m_capture; QCamera m_camera; QVideoSink m_sink; QImage m_frame; }; .cpp file VideoManager::VideoManager() { m_capture.setCamera(&m_camera); m_capture.setVideoSink(&m_sink); connect(&m_sink, &QVideoSink::videoFrameChanged, this, &VideoManager::OnFrameChanged); } void VideoManager::Start() { for (const QCameraDevice &device : QMediaDevices::videoInputs()) { for (auto const& format : device.videoFormats()) { m_camera.setCameraDevice(device); m_camera.setCameraFormat(format); m_camera.start(); this->show(); return; } } } void VideoManager::paintEvent(QPaintEvent *event) { QPainter painter(this); painter.drawImage(this->rect(), m_frame); } void VideoManager::OnFrameChanged(const QVideoFrame &frame) { // I used this to check when I drag the window, this debug stops, which means the signal wasn't fired qDebug() << frame.startTime(); m_frame = frame.toImage(); this->update(); }
  • Have a question about Qt Creator, our cross-platform IDE, or any of the other tools? Ask here!
    8k 36k
    8k Topics
    36k Posts
    PerdrixP
    Hmm odder and odder - I ran the build again and it worked!
  • 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
    Christian EhrlicherC
    Ancient QtCreator installers can be found here: https://download.qt.io/archive/qtcreator/ Iirc QtCreator 5.x was the latest which was built with Qt5.
  • What can we say - we like games. And you can use Qt to write some. Questions? Ask here.
    877 4k
    877 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
    @Axel-Spoerl “Thank you for the update. I’ll retry accessing the repositories and continue monitoring the situation. Please let me know if there are further changes.”
  • 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
    JonBJ
    @Buller You are aware that both of these are compile-time macros (e.g. https://qwt.sourceforge.io/qwt__global_8h_source.html) so, assuming you put these in your source code, they do not necessarily tell you anything about the "runtime versions" that the libraries might have been compiled with in the past? Or the runtime version of either Qt or QWT which might happen to be found?
  • 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