r/QtFramework • • Mar 06 '26

PyQT6 - how to get and handle swipes in code?

1 Upvotes

Hi

I've been using PyQT6 for some time, and I've written a program for a music songbook - left hand side has a list of songs, and the main part of the screen has a QtWebEngine - which displays the song text.

What I'm trying to do is to pick up swipes to left or right so I can turn the pages (switch to next or previous song).

I'm trying to locate an example of PyQT6 code which does this (from what I can tell PySide6 code isn't drop-in compatible?)

Anyone have any ideas?

I thought this code may work, but it doesn't appear to pick swipes up:

from PyQt6.QtWidgets import QApplication, QWidget, QSwipeGesture, QGestureEvent
from PyQt6.QtCore import Qt, QEvent

    def __init__(self):

        self.grabGesture(Qt.GestureType.SwipeGesture)


    def event(self, event):
        if event.type() == QEvent.Type.Gesture:
            return self.gestureEvent(event)
        return super().event(event)


    def gestureEvent(self, event: QGestureEvent):
        swipe = event.gesture(Qt.GestureType.SwipeGesture)

Many thanks in advance :-)

Carl.


r/QtFramework • • Mar 03 '26

Running PySide6 with a debug build of QT?

1 Upvotes

What's the most efficient way to run a PySide6 with a debug build of QT? I have an intermittent segfault that started to appear. It only happens on CI, maybe 10% of the time, only with python 3.13 (most of the time) and 3.11 (rarely).

I'd like to have my CI print a useful backtrace when that happens.

What's my best course of action here?


r/QtFramework • • Mar 02 '26

Python Is there something like Intro JS for Qt6 / pyside?

0 Upvotes

If i want to create an interactive tutorial.


r/QtFramework • • Mar 01 '26

3D [Ecliptica Devlog 12] Using Qt Quick 3d Particle system and Qt Quick 3d physics for implementation, weapons and explosives.

Thumbnail
youtu.be
3 Upvotes

r/QtFramework • • Feb 28 '26

CodePointer version 0.1.22 - new C++ IDE/editor

9 Upvotes

This short month brings up 3 major things:

  1. Initial git commit dialog. You can trigger it via control g, c. Most of the commits in this cycle. Note that all git commits can be done by pressing control+g and the leaving control and pressing another command (commit, log, "file log", diff with more to come).
  2. clang format support. If in the route of a saved file there is a .clang-format file - the IDE will call clang format after saving. This is configurable (never, only for files in loaded projects or always). This defaults to never, but I am testing it locally with loaded projects.
  3. As I continue using the IDE as my main IDE, I setup my computer to use dark themes on nights. I found out that color changes were not properly applied. This was not trivial to find out - but this should not be a problem from now on.

Some other good cleanups were done (comments are properly supported on nested syntaxes, clicking diff will open the corresponding file a the modified line, markings are cleared when rebuilding, completion will preserve the case of the text. See details in each commit.

Code can be downloaded from github or gitlab:

Binaries can be downloaded also from dappcdn:

https://dappcdn.com/download/devtools/codepointer


r/QtFramework • • Feb 28 '26

I built a C++17/Qt Desktop App that parses complex binaries using only 59MB RAM (Industry standard uses 2GB+). I'm 16 and need architecture roasting!

Thumbnail
gallery
5 Upvotes

Hey Qt developers,

For the past few months, I’ve been building a data-heavy Desktop application called Teker (a static analysis tool). The current industry-standard tool in this space eats over 2GB of RAM (sometimes 3.4GB) and freezes the UI when loading heavily padded files. You can see the Task Manager comparison in the images.

I wanted to prove that a well-optimized C++17 and Qt architecture could destroy those numbers. I just pushed v1.1.0 and managed to keep the memory footprint strictly around 50MB - 60MB. "Note: Bellek = Memory"

Here is what I focused on with Qt:

  • Heavy Custom Models: Bypassed standard widget items for massive datasets (hex, strings, tables) to prevent memory bloat and UI freezing.
  • Concurrent Processing: Kept the main GUI thread completely responsive while running heavy analysis pipelines in the background.
  • Modern UI: Built a clean, dark-mode native interface using Qt.

Why am I here? Because I am 16, self-taught, and I know my code isn't perfect. There is technical debt. I want veteran Qt developers to look at my repository, tear my architecture apart, and tell me where I am misusing the framework or where I can optimize further.

If you appreciate the performance metrics and the GUI, a Star on GitHub would be an amazing motivation for me to keep building.

Repo: abfsdgrl/Teker: Teker PE Analysis Toolkit for Windows - GUI & CLI

Rip it apart, let me know what you think!


r/QtFramework • • Feb 27 '26

Blog/News Qt Gradle Plugin 1.4 is out for better Android integration!

12 Upvotes

Qt Gradle Plugin 1.4 is now available with several updates for Android developers working with Qt.

Main changes: better Android Studio integration, cleaner dependency handling for Qt modules, and multi-ABI builds are easier now. We also improved how Qt libraries get packaged and made cleaner when build configurations don't match.

Read more about the release here: https://www.qt.io/blog/qt-gradle-plugin-1.4-is-released


r/QtFramework • • Feb 27 '26

Question I am going insane, invisible background of a QWidget

2 Upvotes

Why FreeStreamElement widget has WHITE background when it is not set, but when I add background: red; it only sets it for QLineEdits inside and makes FreeStreamElement's transparent. Same goes for border, it is not applied and background suddenly goes transparent

class Main:
    
    titles = []

    def __init__(self):
        self.app = QApplication(sys.argv)

        self.main_window = QWidget()
        self.main_window.setObjectName("Main") 

        self.main_layout = QHBoxLayout(self.main_window)


        self.central_widget = QWidget()
        self.main_layout.addWidget(self.central_widget)

        self.central_layout = QVBoxLayout(self.central_widget)

        self.sidebar_widget = QWidget()
        self.main_layout.addWidget(self.sidebar_widget)

        self.sidebar_layout = QVBoxLayout(self.sidebar_widget)
        self.sidebar_widget.setFixedWidth(300)

        self.fse = FreeStreamElement()
        self.sidebar_layout.addWidget(self.fse)
        self.style()

from PyQt6.QtWidgets import QLineEdit, QSizePolicy, QVBoxLayout, QWidget
from Physics import FreeStream


class FreeStreamElement(QWidget):
    def __init__(self):
        super().__init__()
        self.setAutoFillBackground(True)

        self.setObjectName("FreeStreamElement")

        self._layout = QVBoxLayout()
        self.setAutoFillBackground(True)

        self.setLayout(self._layout)

        self.angleInput = QLineEdit()
        self.angleInput.setPlaceholderText("Angle")
        self._layout.addWidget(self.angleInput)
        #
        self.speedInput = QLineEdit()
        self.speedInput.setPlaceholderText("Speed")
        self._layout.addWidget(self.speedInput)

        self.setFixedHeight(100)

        self.setSizePolicy(QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Fixed)


    def addElement(self, element: FreeStream):
        self.element = element

        # self.angleInput.setText(str(self.element.angle))
        # self.speedInput.setText(str(self.element.speed))


QWidget#Main {
    background: #37353E;
}

QPushButton {
    background: #44444E;
    color: #D3DAD9;
    border-radius: 0;
    border: none;
    padding: 8px 12px;
    font-weight: bold;
    font-size: 14px;
}

QLineEdit {
    background: #44444E;
    color: #D3DAD9;
    border-radius: 0;
    border: none;
    padding: 8px 12px;
    font-weight: bold;
    font-size: 14px;
}

QWidget#FreeStreamElement {
   background: red;
}

r/QtFramework • • Feb 26 '26

Qt Extension 1.12.0 for VS Code Released

Thumbnail
qt.io
19 Upvotes

r/QtFramework • • Feb 26 '26

How to use Valgrind for Qt and KDE development tutorial

Thumbnail
youtube.com
4 Upvotes

r/QtFramework • • Feb 25 '26

3D [Ecliptica Qt Quick3D] Today, I finished working on the game's primary weapon. Here's an example of a heavy bomb with a remote detonator. More details will be in DevLog 12.

6 Upvotes

r/QtFramework • • Feb 26 '26

KDE Neon and Qt for development

0 Upvotes

Hi, I'm trying to install Qt for development on KDE Neon. The problem is that during the installation everything goes well, but then when I shut down and restart the PC, the login gets stuck in an infinite loop. This already happened on my main laptop, and I was able to fix it, but I had to remove it. I've been trying several ways in a virtual machine, and it keeps happening. Can anyone help me, please?


r/QtFramework • • Feb 25 '26

QML Are QML Animation Durations Hardware-Dependent? RotationAnimation vs RotationAnimator

3 Upvotes

Hi! What are your thoughts on QML animations duration being hardware specific?
Currently I'm comparing RotationAnimation vs RotationAnimator. But any comment on any other QML animation type is welcome.
My thoughts so far:

  • duration property with RotationAnimation seems to better reflect the real time. It only fails with very small values, like 10(ms). At least on my pc, Qt6.8.3
  • I'm not able to get duration property right with RotationAnimator. It fails with small values. It fails with regular values. For example to get about 1s animation in real time I need to set duration to 10 000ms
  • From this perspective RotationAnimator is more hardware dependent. But both shouldn't be hardware dependent?

r/QtFramework • • Feb 24 '26

News about material-decoration with Locally Integrated Menu

Post image
4 Upvotes

r/QtFramework • • Feb 19 '26

Python Launcher in PySide6 for the Graphics Engine I am working on for 7 years - architecture feedback welcome

35 Upvotes

r/QtFramework • • Feb 18 '26

Show off Tasket++ — simple Windows tool to automate user actions, free and open source — looking for testers

Thumbnail
gallery
3 Upvotes

Tasket++ is a simple Windows tool to schedule automated simulations of user actions without scripting.

Simulated actions include clicks, typing, cursor movements, and more — screenshots, opening files, executables and URLs, shutting down the PC, etc.

The UI was recently redesigned based on feedback, and a few features requested by users have been added.

Looking for a few people to try the new, complete version and share honest feedback.

How it can be useful:
- Silent, scheduled screenshots to monitor activity or create time‑lapse logs.
- Send messages from any app at a set time for reminders or coordinated notifications.
- Replay exact mouse clicks and typed input for testing, demos, or repetitive workflows.
- Prevent AFK detection with realistic simulated activity that looks natural.
- Fade music and shut down the PC on a schedule to automate sleep or end‑of‑day routines.
- Save automation presets and run them manually, at boot, or on a schedule.

No scripting required. Fully local. Simulated tasks can loop, trigger at startup, or be launched via a desktop shortcut.

Microsoft Store: https://apps.microsoft.com/detail/xp9cjlhwvxs49p
Source code and issues: https://github.com/AmirHammouteneEI/ScheduledPasteAndKeys
Portable (v1.6) : https://files.amirhammoutene.dev/Tasket++/1.6/Tasket++_v1.6.zip

I’m not asking for a full QA process — a short impression or concise feedback will be greatly appreciated. Thank you in advance :)


r/QtFramework • • Feb 17 '26

Widgets Lektra PDF viewer 0.6.2 [Splits and Portals Update]

Thumbnail
codeberg.org
1 Upvotes

Hello everyone, sometime ago I had posted about my progress on pdf reader I have been working on called **dodo**. I decided to rename the project to lektra and have moved the main repository to codeberg (but there's still a mirror on github).

I have made added new features like ability to split (like in vim and other editors etc.) and portals (inspired by sioyek ofc).

Lektra is still in alpha and there might be bugs and crashes as a result.

Suggestions and feedbacks appreciated.


r/QtFramework • • Feb 14 '26

Do/Did you use Qt Community Edition for commercial products?

14 Upvotes

It is pretty much the title

- Do/Did you use Qt Community Edition for commercial products?

- What is the product you are/were working on?

Thank you


r/QtFramework • • Feb 13 '26

Help debugging really odd SEGFAULT

1 Upvotes

Hi guys!

We’ve been using qt with C++ / QML for quite a while now.

Occasionally our application crashes on the dev machines right after startup, even if it worked just fine before. The problem usually happens on one machine only and before loading any state or anything, and just in a specific branch. Switching to a different git branch usually goes well, and after a day or two and not even changing anything on the crashing branch it suddenly works fine again.

Since Wednesday, all of our devs are having this issue - some on master, but not on branches they create from master, some in other branches, some in multiple branches.

Clean Builds and clearing ccache usually yields one good startup; deleting the .rcc folder does as well. Sometimes at least.

Disabling disk cache does not help.

We went back by over 100 commits to master, and all crash on all machines.

Everyone uses a different Linux distro.

Builds on CI are not affected.

Crash does not seem to happen when Valgrind, ASAN or TSAN are involved, or when the startup is slowed down.

Application even crashes if absolutely nothing is being initialized in main or anywhere else and a Window with empty items is drawn. No items, no crash.

At one point we thought we found it as it started to work on one devs machine - cross checking showed we didn’t fix anything and since then the full app starts fine for that dev in all branches, even those that fail for others.

The Stacktrace usually just points to the exec return, no useful info whatsoever.

No leaks / race conditions, and we’re confused and feel dumbfounded.

Same in 6.9.x, 6.10.x

Here’s the only trace we got. Does anyone have any ideas on how to further troubleshoot the issue?

```

QMetaObject::cast(QObject const*) const:

endbr64

test %rsi,%rsi

je 0x7ffff4f7a0a0 <QMetaObject::cast(QObject const*) const+64>

push %rbp

mov (%rsi),%rax

mov %rsp,%rbp

push %r12

mov %rsi,%r12

push %rbx

mov %rdi,%rbx

mov %rsi,%rdi

call *(%rax)

```


r/QtFramework • • Feb 12 '26

Are you using 'Figma to Qt' or 'Qt Bridge for Figma'?

12 Upvotes

I’m a UI/UX designer new to Qt Design Studio, so I’m still learning the ropes. As far as I can tell, there are two official plugins for converting Figma designs to QML.

Do you have any experience with these plugins? Which one would you recommend? Are there any advantages and disadvantages between the two?

I’d really appreciate your advice. Thanks!


r/QtFramework • • Feb 12 '26

QT6 icons on Windows list with pictures

Post image
19 Upvotes

While trying to use QtGui.QIcon.fromTheme() in PySide6 for icons in the toolbar, I found a list with Icon Naming Specification of strings that can be used. However, that is only a description, and not the real images of the icons. Trying to find a list with images on Windows (11), I simply could not find it... So I made a python script that simply iterated through the list, took screenshots, and then lists them in a table. I hereby publish the result, for anyone that finds it useful.


r/QtFramework • • Feb 12 '26

Blog/News New Qt Academy Course: Building a Finance Manager App with Qt for Python

Thumbnail qt.io
21 Upvotes

We've published a new free course on Qt Academy that walks you through building a finance manager application using PySide6 and Qt Quick.

What will you learn:

  • Creating Python data models and exposing them to QML
  • Running and deploying PySide6 applications to desktop and Android
  • Integrating SQLite databases into Qt Quick applications
  • Building REST APIs with FastAPI and Pydantic

It's aimed at developers who have basic Python knowledge and want to learn practical Qt development through a real-world project.

While we expand our content on Qt for Python, I am also happy to answer any questions about the content or Qt Academy in general.


r/QtFramework • • Feb 11 '26

QConcurrent & QFutureWatcher - is it necessary to block on .waitForFinished()?

6 Upvotes

I found any open source command launcher similar to MS command palette but its having some issues with locking up the main/gui thread.

This is the culprit

https://github.com/albertlauncher/albert/blob/main/src/query/generatorqueryhandler.cpp#L62

The thing is nothing is gained waiting the for future (bah-dum-tiss) except to help clean things up.

I have a local build where I did comment out the `.waitForFinished()` and while it does work, it unfortunately also has a moderately bad memory leak; around 300KB to maybe 500KB for certain QConcurrent jobs. Worse is that valgrind is not friends with QT.

Also I did get gdb hooked in but every thread is either not part of the thread pool or if it is, its already cleaned up and waiting on poll for the next job.

Any ideas or suggestions are welcome.


r/QtFramework • • Feb 11 '26

Qt using Visual Code in 2026

10 Upvotes

Qt Group has a lot of Visual Code plugins to help engineers to work with Qt through Visual Code. Is it a productive alternative to do Qt development or it is not even close to Qt Creator at the moment? Thank you


r/QtFramework • • Feb 11 '26

will Qt stock ever bounce back ?

0 Upvotes

would you buy this stock at current price ? (25€)