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

New Qt Academy Course: Building a Finance Manager App with Qt for Python
https://www.qt.io/academy/course-catalog#building-finance-manager-app-with-qt-for-python

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

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

Qt - Reddit

Help debugging really odd SEGFAULT

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)

```

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

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

Qt - Reddit

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

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

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

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

Qt - Reddit

QIcon and KDE icon themes tutorial
https://www.youtube.com/watch?v=sJrezOC1qyE

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

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

Qt - Reddit

Qt Academy Coming to YouTube! Learn basics of Qt Quick Controls
https://redd.it/1qtrj0m
@qt_reddit

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

Qt - Reddit

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

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

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

Qt - Reddit

Can I use QML for an IDE ?

Im currently planning to make a manim IDE (its a python lib for making animations), and given that Im really familiar with QML Im planning to use it (with PySide6 and some python backend)

So should I merge some QtWidget components (for the core editor for exemple) or is it overkill for this kind of project ?

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

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

Qt - Reddit

I whipped up a very quick Kiosk app for reviewing Dental AI ethics and safety for an upcoming convention

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

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

Qt - Reddit

Autoclicker using PySide6/QML for ui and pynput/wayland-automatin for logic

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

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

Qt - Reddit

[QML 3D Particles and View3d RayPick] - Working on different types of weapons and combat systems.

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

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

Qt - Reddit

Autoclicker with PySide6/QML compatible with wayland and non wayland systems

https://reddit.com/link/1qlyhxu/video/uwhauay01dfg1/player



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

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

Qt - Reddit

Where to learn

Hello everyone I’m just starting with QT and I want to know where to learn this software from because it’s overwhelming at first for newcomers

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

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

Qt - Reddit

QDento - Practice Management Software made with QWidgets
https://redd.it/1qgaai2
@qt_reddit

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

Qt - Reddit

Microsoft Edge WebView2

Is it possible to integrate Webview2 with a qtquick app instead of qtwebengine.

If is there any examples i can follow.

My application runs on windows client only.

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

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

Qt - Reddit

Updates to Qt Quick for Android in Qt 6.9 and 6.10
https://www.qt.io/blog/qt-quick-for-android-qt-6.9-and-6.10

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

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

Qt - Reddit

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

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!

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

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

Qt - Reddit

Why isnt my property animation being triggered on state change?

Hey

I am trying to understand the state machine/animation frameworks, and I setup a small example :


void CharacterItem::setupStateMachine() {

m_moveStateMachine = new QStateMachine();



QState* idleState = new QState(m_moveStateMachine);

QState* movingState = new QState(m_moveStateMachine);



QSignalTransition* idleToMovingTransition

= idleState->addTransition(this, &CharacterItem::startMovingAnimation, movingState);

QPropertyAnimation* anim = new QPropertyAnimation(this, "pos", m_moveStateMachine);

anim->setDuration(1000);

anim->setStartValue(QPoint{0, 0});

anim->setEndValue(QPoint(100, 250));

idleToMovingTransition->addAnimation(anim);



connect(movingState, &QState::entered, [anim]() { qDebug() << "got moving"; });

connect(anim, &QPropertyAnimation::stateChanged, [](QAbstractAnimation::State state) {

qDebug() << state;

});

QFinalState* final = new QFinalState(m_moveStateMachine);



m_moveStateMachine->setInitialState(idleState);

m_moveStateMachine->start();

}


The state transition is happening, since got moving is printed correctly when i trigger the chance through CharacterItem::startMovingAnimation signal, but the animation state does not change to Running. if I manually connect the moving state to the animation through connect(movingState, &QState::entered, [anim]() { anim->start(); }); it works perfectly fine, but as far as I understand I don't need to do if i called addAnimation on the transition.


Can anyone help me, thank you



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

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

Qt - Reddit

QML documentation

Short backstory, I'm building a reusable Qt/QML component library intended to be shared between multiple applications.

I've been trying to properly documentat this library using QDoc, following official Qt documentation. I've set up qconfig file, experimented module headers, separate qdoc files and also explored some modules of Doxygen for qml as alternative.

I'm struggling cause of QDoc management which feels heavy and too fragile for the pipeline. The whole experience is really poor for pure QML and looks too outdated using the default HTML output. At the moment Doxygen isn't really a solution either.

I would appreciate hearing how others are handling it and also any ideas are welcome. Thanks in advance!

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

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

Qt - Reddit

Qt apps, where is the business implementation usually located?

I am mostly working with backend development building APIs which exposes data for clients. I sometimes play with Qt for fun, because desktop apps are way cooler than web apps. I have never worked in a company with Qt apps. For a basic structure like:

req
(1) Qt app ----> API ----> database
res
(2) Qt app <---- API <---- database

For professional Qt apps, does the API hold the entire business implementation and the Qt is simply the UI displaying the data coming out of the API?




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

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

Qt - Reddit

Qt 5.15 To Qt 6.5 Migration

Currently single handedly working on Qt 5.15 to Qt 6.5 migration, there were multiple code changes I had to go through while doing so, I currently have two branches Master and the Pseudo Master for Qt 6.5 both having their respective build scripts, it's a cumbersome task of manually rebasing code changes between the two, any suggestions or way out for this?

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

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

Qt - Reddit

CodePointer version 0.1.1 - new C++ IDE/editor

February release is back again in github, while keeping gitlab and dappcdn as code an distribution mirrors. This month I decided to use the IDE as my main IDE, which has its own set of challenges (completion is missed, git integration is so minimal). Those 2 areas will be my next focuses on the following releases.

I added a terminal widget into the main IDE, refactored the git plugin and added a few search options for the project search. I also added a visual hint when the main window is not active.

Code can be downloaded from github or gitlab:

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

Binaries can be downloaded also from dappcdn:

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

CodePointer with built in terminal




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

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

Qt - Reddit

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

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

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

Qt - Reddit

Qt Widgets in 10 years?

Where do you see it? With all that push of QML abomination, and the stagnation of QtWidgets, do we say goodbye to C++ only GUI development (within Qt)?

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

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

Qt - Reddit

[Self Promotion] WIP PySide6 Book
https://leanpub.com/pyside6blueprints

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

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

Qt - Reddit

Annoying warning modal -- suppress or multiprocess?

I have a few constraints for something I'm working on:

1. I'm stuck in the debug runtime

2. I'm stuck with QT5

3. The GUI must be handled from a worker thread instead of the main process thread

Annoyingly the debug QApplication exec call has an assertion where it checks that the QT-designated main thread is the same as the process main thread -- which is not possible without significant refactoring.

So my question is: Is this popup being created by the QT framework itself, or is it a CRT popup? Am I better off suppressing it or leveraging multiprocessing? Is there a rule of thumb for this type of thing?

(I'm new to QT but not new to C++)

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

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

Qt - Reddit

Ask clarification for salary

I am a qt developer with a year of experience. I primarily working in defence and aerospace industry. I make PPI display for radars to control.

I have done 3 projects so far.

Comming April 2026, my appraisal will come.
As an Indian qt developer, working in a defence startup, how much can I asked for?

My current is 3.6LPA.
What is the market salary and how much can I ask maximum?

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

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

Qt - Reddit

How to convert svg to qml ?

I want for my app to support themes and for that I need to change the color of my svg icons (Of course I cant have 200 svg files), but I cant use QtQuick.svg or VectorImage for some reason and the only solutions left are editing the XML code directly or converting them to qml, and I think qml is more easier.

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

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

Qt - Reddit

I have a bug in running Qt debugger
https://redd.it/1qgvwb5
@qt_reddit

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

Qt - Reddit

QML busy indicator stuck.

Hi,

I am following a series of tutorials, but my code is not behaving the same way. The indicator is stuck.

import QtQuick
import QtQuick.Controls
import QtQuick.Controls.Material

Window {
width: 640
height: 480
visible: true
title: qsTr("Hello World")

BusyIndicator {
width: 100
height: 100
anchors.centerIn: parent
running: true
}
}

Using Qt 6.8

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

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

Qt - Reddit

C++26 Reflection 💚 QRangeModel
https://www.qt.io/blog/c26-reflection-qrangemodel

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

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