qt_reddit | Unsorted

Telegram-канал qt_reddit - Qt - Reddit

15

News and discussion for the Qt Framework. Subreddit: https://www.reddit.com/r/QtFramework Powered by : @r_channels & @reddit2telegram

Subscribe to a channel

Qt - Reddit

Qt World Summit 2026: Going Virtual

I’m honestly a bit confused about the decision regarding the Qt Summit.

I attended the summit last year and had a really great time. The talks were interesting, the atmosphere was great, and it was also a nice opportunity to meet other Qt developers in person and exchange ideas. Because of that, I was really looking forward to the next one.

As far as I remember, the next Qt Summit had already been announced to take place in Berlin, which sounded great. So it was surprising to suddenly see the change and that the event is moving away from being an in-person summit.

Of course there might be reasons behind the scenes that I’m not aware of, but from the outside the decision feels quite sudden and a bit hard to understand. The in-person aspect was a big part of what made the summit special for me.

It’s honestly a bit disappointing, because I was really looking forward to attending again.

https://redd.it/1rrsknu
@qt_reddit

Читать полностью…

Qt - Reddit

Blurry SVG

Hi. I use this code trying to make SVG icons pixel perfect:

Image {
sourceSize.width: width
sourceSize.height: height
}

This works fine if the scaling is an integer value (100%, 200% or 300%) - icons are perfect. But when I set it to 150% or 250%, the icons are blurry.

Even if I try to increase the sourceSize, it helps only a bit, so they are still blurry, and if I increase too much, they became partially crispy and partially still blurry.

Is there any way to work this around? Will Qt ever fix it?

P.S. I checked on Windows 10 using Qt 6.9.3, 6.10.2 and 6.11 RC.

UPD Thanks to Sir\_Cheesy\_Cheese, this is fixed by using

smooth: false

https://redd.it/1rpemra
@qt_reddit

Читать полностью…

Qt - Reddit

Calender app

I'm looking for a simple calendar app or widget that has each day of the week in a column and where you can click at points to put in a meeting, event, etc.
Think any calendar app on your phone, basically.

I checked online but only found the calendar widget, which is a day picker and not the kind of calendar I'm looking for.

Does such a calendar already exist, e.g. as a widget or one of the Qt examples?

https://redd.it/1rqnfl1
@qt_reddit

Читать полностью…

Qt - Reddit

Running PySide6 with a debug build of QT?

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?

https://redd.it/1rjbzaw
@qt_reddit

Читать полностью…

Qt - Reddit

I built my own animated math plotter similar to Desmos [Python, PyOpenGL, PySide6, NumPy] - marching squares + batched line rendering

https://redd.it/1rlrclh
@qt_reddit

Читать полностью…

Qt - Reddit

Hey everyone, while creating the game, I encountered a bottleneck in Qt instance lods. Today I prepared a patch to improve performance on complex scenes. Please take a look at the result.

https://redd.it/1ro2tmc
@qt_reddit

Читать полностью…

Qt - Reddit

[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.

https://redd.it/1resxo3
@qt_reddit

Читать полностью…

Qt - Reddit

How to use Valgrind for Qt and KDE development tutorial
https://www.youtube.com/watch?v=WGBdQxA2gII

https://redd.it/1rfmqs8
@qt_reddit

Читать полностью…

Qt - Reddit

Qt Extension 1.12.0 for VS Code Released
https://www.qt.io/blog/qt-extension-1.12.0-for-vs-code-released

https://redd.it/1rfdpht
@qt_reddit

Читать полностью…

Qt - Reddit

I am going insane, invisible background of a QWidget

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.mainwindow = QWidget()
self.main
window.setObjectName("Main")

self.mainlayout = QHBoxLayout(self.mainwindow)


self.centralwidget = QWidget()
self.main
layout.addWidget(self.centralwidget)

self.central
layout = QVBoxLayout(self.centralwidget)

self.sidebar
widget = QWidget()
self.mainlayout.addWidget(self.sidebarwidget)

self.sidebarlayout = QVBoxLayout(self.sidebarwidget)
self.sidebarwidget.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;
}



https://redd.it/1rgfwq9
@qt_reddit

Читать полностью…

Qt - Reddit

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!

https://redd.it/1rh1jrl
@qt_reddit

Читать полностью…

Qt - Reddit

Lektra PDF viewer 0.6.2 [Splits and Portals Update]
https://codeberg.org/lektra/lektra/releases

https://redd.it/1r7kqzd
@qt_reddit

Читать полностью…

Qt - Reddit

HWINFO with Qt Quick?

Hello,

I have been trying to make hwinfo work with my qt project, it was a system monitor project that I did using windows API but I wanted to use HWINFO instead but it seems that qt have some problems with hwinfo and I get the undefined error even tho the auto complete and cmake generation is all successful

`error: undefined reference to` hwinfo::getAllCPUs()'\`

Here is my complete CMAKE:

cmake_minimum_required(VERSION 3.16)

project(SystemMonitor VERSION 0.1 LANGUAGES CXX)

set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_AUTORCC ON)

find_package(Qt6 REQUIRED COMPONENTS Charts Core Gui Qml Quick)

qt_standard_project_setup(REQUIRES 6.8)

qt_add_executable(appSystemMonitor
main.cpp
)

qt_add_qml_module(appSystemMonitor
URI SystemMonitor
QML_FILES
Main.qml
SOURCES systeminfo.h systeminfo.cpp
QML_FILES SidebarButton.qml
RESOURCES Resources.qrc
QML_FILES
QML_FILES ProcessorPage.qml
QML_FILES MemoryPage.qml
QML_FILES EthernetPage.qml
)

# Qt for iOS sets MACOSX_BUNDLE_GUI_IDENTIFIER automatically since Qt 6.1.
# If you are developing for iOS or macOS you should consider setting an
# explicit, fixed bundle identifier manually though.
set_target_properties(appSystemMonitor PROPERTIES
# MACOSX_BUNDLE_GUI_IDENTIFIER com.example.appSystemMonitor
MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION}
MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}
MACOSX_BUNDLE TRUE
WIN32_EXECUTABLE TRUE
)

add_subdirectory("vendor/hwinfo")

target_link_libraries(appSystemMonitor
PRIVATE
Qt::Charts
Qt::Core
Qt::Gui
Qt::Qml
Qt::Quick
lfreist-hwinfo::hwinfo
)

if(WIN32)
target_link_libraries(appSystemMonitor
PRIVATE
iphlpapi
ws2_32
)
endif()

include(GNUInstallDirs)
install(TARGETS appSystemMonitor
BUNDLE DESTINATION .
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)



https://redd.it/1r8e9em
@qt_reddit

Читать полностью…

Qt - Reddit

will Qt stock ever bounce back ?

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

https://redd.it/1r29cev
@qt_reddit

Читать полностью…

Qt - Reddit

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

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.

https://redd.it/1r2cpm1
@qt_reddit

Читать полностью…

Qt - Reddit

I built a full dealership management system in QtQuick. here's the UI

https://redd.it/1rrso19
@qt_reddit

Читать полностью…

Qt - Reddit

Qt 6.10.2 - Can't install commercial license

I started with a evaluation license, then I was given the leftovers of a commercial license (50 days left). However, I can't seem to get Qt Creator to see the license json file in the qtlicd folder. Any thoughts?

I've put in a support ticket, but they indicated it may take up to 2 business days to respond. I'm thinking maybe just continue with my development (just starting out in Qt for GUI development) hoping my evaluation license will automatically transition to the stored commercial license when it expires (yep, in 2 days).

UPDATE: Got a response from Qt Support, which resulted in me removing all .qt-license instances on my computer except the one at 'qtlicd' folder. In that folder, I stored the downloaded .qt-license and json file. Now Qt Creator loads without the 'Buy License' popup.

https://redd.it/1rpjwjx
@qt_reddit

Читать полностью…

Qt - Reddit

Is there something like Intro JS for Qt6 / pyside?

If i want to create an interactive tutorial.

https://redd.it/1rivlmi
@qt_reddit

Читать полностью…

Qt - Reddit

PyQT6 - how to get and handle swipes in code?

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.

https://redd.it/1rm8p98
@qt_reddit

Читать полностью…

Qt - Reddit

What is the correct way to approach design of UI for Embedded targets ?

Hi there!

I want to build a GUI application which runs in Raspberry Pi. I have downloaded the QtCreator and Qt Design Studio desktop applications. However, I am finding it slightly difficult to design the UI in Qt Design Studio as in organizing the components, setting the margins, custom font etc.

So, I started exploring how to do it better and I came to know that such designs can be created in a tool called Figma. Even though I have started to design the UI in Figma, I don't know how to tailor the design to incorporate the states of different components like Buttons, sliders and switches. What I mean to say is, if I have used a toggle switch in Figma from the Material UI design kit, do I have to place the disabled state of the same switch in the Figma design so that it can be used in the Qt Quick GUI application ? I am kind of stuck here.

Please let me know how I should be going about this.

PS : I don't have any UI design knowledge, so if you could suggest any resources to learn from, it would be very helpful.

Thanks!

https://redd.it/1rmlfgl
@qt_reddit

Читать полностью…

Qt - Reddit

[Ecliptica Devlog 12] Using Qt Quick 3d Particle system and Qt Quick 3d physics for implementation, weapons and explosives.
https://youtu.be/oiubNGnXtqQ

https://redd.it/1ri7g82
@qt_reddit

Читать полностью…

Qt - Reddit

Is it possible to have open source Qt desktop app but have commercial features like a SaaS and not pay for a qt commercial licence ?

My question is basically the title of my post.
I have an open source desktop app I'm planning to make, however I don't want to pay for the license. ( broke and in uni rn )
The software will have pay to use features based on a monthly subscription.

I'm willing to publish it under any open source licence. ( recommendations for this are welcome. )

I did search online for an answer but I didn't find good examples of companies doing this. I know telegram exists, but I'm not sure if they pay for the license or not.

otherwise I have to look for alternative frameworks.

https://redd.it/1rf4611
@qt_reddit

Читать полностью…

Qt - Reddit

CodePointer version 0.1.22 - new C++ IDE/editor

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.

https://preview.redd.it/y1skb8phgamg1.png?width=1586&format=png&auto=webp&s=7ee5761b58c913b629215991cccfdf5f77313062

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:

[https://gitlab.com/codepointer/codepointer/-/releases/v0.1.2](https://gitlab.com/codepointer/codepointer/-/releases/v0.1.2)
https://github.com/codepointerapp/codepointer/releases/tag/v0.1.2

Binaries can be downloaded also from dappcdn:

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





https://redd.it/1rhbvmt
@qt_reddit

Читать полностью…

Qt - Reddit

Did you guys know that with Qt you can build hybrid apps — frontend/GUI in HTML/CSS/JS, backend in C++/Qt — and they talk to each other via QWebChannel? 🚀
https://redd.it/1rfh54q
@qt_reddit

Читать полностью…

Qt - Reddit

Qt Gradle Plugin 1.4 is out for better Android integration!

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

https://redd.it/1rg3knf
@qt_reddit

Читать полностью…

Qt - Reddit

I am really struggling to get a property from one item into a different file in the same folder.

I have a file called Colors.qml. In that file is a property called accentGreat. This is the relevant portion.

Colors.qml:

Item {
id: colors
property color accentGreat: "#FFCE00"
}

In another file I am referencing that property to color a Rectangle. Here is the relevant portion.

GameItem.qml:

import QtQuick 2.15
import QtGraphicalEffects 1.15

Item {
id: cpntgameListgame
Item {
anchors.fill: parent
Rectangle {
anchors.fill: parent
color: "transparent"
border {
width: vpx(5)
color: Colors.accentGreat
}
}
}
}

Both of these files are in the same folder. I am new to QML, but I have read that to reference a property from a file in the same folder you don't need an import, you can just use the file name and the property name.

However, the color of the rectangle isn't gold, it's "#000000," which I assume is the default value for a color property. When I assign the color in the same file using the hex code, it works fine, so I know it's not my rectangle shape.

When I import the folder that contains both files it still doesn't work, in case that helps.

Any ideas as to what I am doing wrong?

https://redd.it/1ran7no
@qt_reddit

Читать полностью…

Qt - Reddit

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

https://redd.it/1r894l1
@qt_reddit

Читать полностью…

Qt - Reddit

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

https://redd.it/1r92p3d
@qt_reddit

Читать полностью…

Qt - Reddit

Qt using Visual Code in 2026

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

https://redd.it/1r277ss
@qt_reddit

Читать полностью…

Qt - Reddit

QT6 icons on Windows list with pictures
https://redd.it/1r2owng
@qt_reddit

Читать полностью…
Subscribe to a channel