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

Is it possible to load a PDF asynchronously using QtPDF?

I'm trying to load a PDF in a Qt Widget application using threading. Irrespective of what I do, it fails to load the PDF. I tried creating a concurrent thread, made a new QPdfDocument, loaded a PDF into the entity and then moved it to the main thread before returning the pointer. It still doesn't work! Here is an MWE (I know that the PDF loading in this example is synchronous, but even this fails to work - forget about loading the PDF asynchronously):

QFuture<QPdfDocument*> future = QtConcurrent::run([](){
QPdfDocument* loadDoc = new QPdfDocument();
loadDoc->load(ProjectSettings::instance().pdfPath);
loadDoc->moveToThread(QApplication::instance()->thread());
return loadDoc;
});

m_document = future.result();

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

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

Qt - Reddit

GridLayout vs GridView for non-scrollable views

Is there any reason to use a QML GridView over a GridLayout with a Repeater when all items are always displayed on screen and scrolling is disabled?


I ask because I'm finding GridView's concept of fixed cellwidth/height restrictive and I'm able to achieve what I need with a GridLayout + Repeater. Just wanted to make sure I'm not breaking some golden QML rule.

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

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

Qt - Reddit

Background colour extending beyond tool tip background?

I'm trying to customize a Scrivener theme (which uses 'Qt5 framework and CSS tags,' whatever that means) but am having trouble with borders and background colours.

Basically, if I round the corners of the tool tip pop up, the background colour doesn't round with it; it extends beyond the border as sharp corners.

why it look like that

I tried a few different fixes for it that I found online, but I couldn't get them to work in Scrivener (92Learns said to use the overflow and overflow-clip-margin codes, but it didn't do anything in Scrivener). I'm also learning everything as I go, so I can't figure out why the provided code isn't working.

Suggested solution from 92Learns 'Border Radius Rules Every Designer Must Know'

If anyone has any ideas for fixing this I'd really appreciate it

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

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

Qt - Reddit

"Signal Drilling" and Qt design Philosophy

Hey everyone, I am seeking a little bit of advice from some more experienced Qt developers. For context, I have been using PySide6 to develop a couple of applications over the past 3 or so months, so I am relatively new to Qt development and the Qt Ecosystem in general. Recently, I've noticed a bit of an issue with the maintainability of the Signals in Qt.

In general, I have been structuring my projects in a relatively strict tree. I have a root "MainApplication" class that owns all UI widget classes, as well as any additional classes needed to do back end work. (I've been creating GUI applications for hardware, so usually back-end work looks like writing serial data of some sort.) My UI widgets then usually look like a tree where I have some sort of view/page that does a specific thing, and then I have additional nested widgets depending on the task I am trying to accomplish. Usually, I will define each individual Widget in it's own file, so a Serial terminal widget might be defined in a "serial_terminal.py" file.

The main issue I've been running into is when I have a deeply nested widget that exists far into the project's tree structure, and I need it to effect something on the back-end. Lets say I have an "Emergency Stop" button that's nested 5 widgets deep from my "MainApplication" class. That emergency stop button will need to emit a signal to my "HardwareManager" class to make something happen. To accomplish this, what I have been doing is having whatever classes own the button to emit that signal all the way up the tree, so that the MainApplication can finally connect it to the HardwareManager slot. This means that whenever I add a new button to one file, I'll have to edit up to 5 (or more) additional files just to add its intended functionality.

This problem seems very similar to React's "Prop drilling" issue, which is what Redux and other state managers try to solve. However, after a little bit of digging, I didn't seem to find much in the Qt ecosystem that aims to solve this issue, or even much discussion of this issue in the first place.

So my question is: What's the solution? Is the problem in the way in which I choose to structure my applications? Are there state managers out there that I missed? Do you just grit your teeth and accept the inconvenience? I would love to hear the thoughts of some more experience Qt developers!

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

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

Qt - Reddit

Don't know where to Start

Hey, I'm looking at a customer service job from the past three years and now I want to switch my career and get into software development. I have tried to learn web development but due to race in competition and AI it seems like going there would be a pretty tough job. And everybody starts from there. So that is the reason I started learning C++ And now I want to get into QT development. I have no idea what I am going to do. Please help me out with the resources or any suggestion. It will be really appreciated. Please keep in mind that I want to Land a job in this field.

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

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

Qt - Reddit

I successfully swapped over my Engine's UI library from ImGui to Qt

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

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

Qt - Reddit

Balancing visual layouting and custom code

I'm quite a beginner but quite interested in the visual layout of applications in QT Creator. (C++, without QML) On the other hand I start to find myself creating custom widgets. And I cannot always see a full visual preview.

What's a good balance between "visual editing" and custom Code?

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

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

Qt - Reddit

Tasket++ - Lightweight no‑code automation tool for Windows (free & open source)

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

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

Qt - Reddit

Does Qt Have a Future or Not?

Where is Qt used the most today in terms of countries, industries, and companies?

I am curious where the demand for Qt C++ developers is strongest ?

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

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

Qt - Reddit

[A full-featured scene editor for Qt Quick3d] xyrillforge
https://www.youtube.com/watch?v=MnaxTK3klLo

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

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

Qt - Reddit

Qt Quick - how to clip rounded corners

I’m fairly new to Qt, and I’m trying to implement a design that uses a lot of rounded corners. I’ve managed to achieve rounded corners using MultiEffect’s mask effect, but this seems excessively complex, and I feel like I must be missing something.

As a simple example, I’m trying to implement a popup that looks similar to the following, with the item’s background changing on hover: https://jsfiddle.net/ygtc06a5/ How could this be done?

Thanks!

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

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

Qt - Reddit

Ideas for Pet Projects

Hi, I've been learning Qt for two months by reading Max Schlee's book. If you have any ideas for pet-projects, I'd be happy to hear from you.

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

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

Qt - Reddit

The new SkyMaterial from Qt 6.12, designed for working with indirect light, has been successfully integrated with Ecliptica game. Check out the results! We now have smooth, fluid weather and daytime transitions.

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

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

Qt - Reddit

Can viMarkdown be built on Linux?

Recently, I've been developing viMarkdown, which is a Markdown editor powered by Qt6.

viMarkdown screnn shot

Unfortunately, I don't currently have access to a Linux environment. Could someone try building viMarkdown with CMake and QtCreator and let me know whether it builds successfully?

viMarkdown: https://github.com/vivisuke/viMarkdown

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

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

Qt - Reddit

Zenkai: a fast and customizable app launcher written in Zig + Qt
/r/Zig/comments/1u838md/zenkai_a_fast_and_customizable_app_launcher/

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

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

Qt - Reddit

Fluent-QT: a modern Fluent-style component library for Qt Widgets

Hi everyone,

I’m working on Fluent-QT, an open-source C++17 component library for Qt Widgets.

The goal is to help existing Qt Widgets applications get a more modern Fluent / WinUI-style desktop UI without migrating to QML.

I also built a project website where you can see the Gallery screenshots and download the demo app:

Website:

https://calvinhxx.github.io/Fluent-QT/

GitHub:

https://github.com/calvinhxx/Fluent-QT

The project currently includes reusable widgets, design tokens, theme infrastructure, animations, component states, and a runnable Gallery app. It supports Windows and macOS.

I’d appreciate feedback from people still building or maintaining Qt Widgets applications

I’d be interested in feedback from people still building or maintaining Qt Widgets applications:
\- Is this direction useful for your projects?
\- Which Widgets components are still missing in modern Qt desktop apps?
\- Would you prefer this to stay Fluent-focused, or support multiple design languages?

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

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

Qt - Reddit

Qt Bridges - Public Beta for Rust
/r/rust/comments/1uknh6y/qt_bridges_public_beta_for_rust/

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

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

Qt - Reddit

CodePointer version 0.1.6 - new C++ IDE/editor

CodePointer is a new IDE written from scratch by me. It is focused on C++ at this moment (with cmake support out of the box, conan is WIP).

(https://github.com/codepointerapp/codepointer/releases/tag/v0.1.6)July release fixes dark mode, adds markdown indenter to qutepart-cpp, some Windows related bugs and small updates to the treesitter plugin.

CodePointer dark mode - on the left new scheme , on the right older version \(much brighter, harder to read\)

One huge win I see while using this IDE is that dark mode changes automatically on KDE. QtCreator for example changes the whole UI - but keeps editor white. On restart - the editor becomes dark. (BTW: the event of color change is not sent on Windows - is this a known issue?)

Binary packages for Windows and Linux are in https://github.com/codepointerapp/codepointer/releases/tag/v0.1.6

Code is available at:
https://github.com/codepointerapp/codepointer
https://gitlab.com/codepointer/codepointer

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

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

Qt - Reddit

How to install Qt wasm on NixOS?



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

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

Qt - Reddit

How would you handle this problem (Card Designer)?

So I'm currently trying to make a card designer for my application (similar to the Qts Widgets Designer). I'm currently unsure if I should use the QGraphicsView/Scene for Viewing the Widgets, I want to insert via a QGraphicsProxyWidget (because I want to give my users a direct view of the finished card and not use a QGraphicsRectItem) and I made a small prototype and had a lot of problems like the movement of QGraphicsProxyWidget where you need a wrapper item for it to be moveable (Stack Overflow post for this problem) and some others or creating my own view with a QWidget.

I just plan to create a simple card designer for my application so you can use widgets to design it and layouts and thats it. I don't need rotation or z-ordering. Would you still recommend using the QGraphicsView or create my own view? Do you have any recommendations which route I should go?

Just you know: My Qt experience is very limited and I am still learning it.
Qt Widgets 6.11.1 and C++20

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

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

Qt - Reddit

devcontainer support in QtCreator

Hi there! Has anyone successfully used devcontainer support in Qt Creator?

I’m trying it with v20, but I can’t get it to run. It appears in my project tree, and the Docker image has everything it needs. The same image also works when configured directly as a device. However, the devcontainer stays red and isn't available in Kits. I think I'm missing a step but I don't know which one.

Does anyone have a working example?

I’m on Debian 13, using a Debian 13 Docker image, in case that matters.

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

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

Qt - Reddit

How to support japanese writing in rich text editor

For a document editor that supports Japanese text it should be able to write vertically. Also, if I'm not wrong, there are some characters that are different when written vertically. Is there an easy way to do all that in a rich text editor widget?

I assume that those are the main problems. The character writing itself and to show them I guess it's already solved by other things, like html format, etc. And I don't know if I have to worry about anything else about that

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

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

Qt - Reddit

How to learn shader programming for Qt 6?

Are there tutorials or walkthroughs for programming shaders on Qt 6 that you can recommend? The first thing I want to do is draw QSGGeometry lines with varying line thicknesses but I’m finding it difficult to get started.

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

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

Qt - Reddit

libpyqt6.so now ships with conda-forge PyQt6 — custom Qt Designer widgets work out of the box

If you've ever tried to use a QDesignerCustomWidgetInterface subclass with PyQt6 installed via conda, you hit the same wall: Qt Designer shows "Python plugin" as failed in Help > About Plugins, because libpyqt6.so was never included in the conda package.

For pip users, pyqt6-tools provides a wrapper around Designer that sets up the path. But with conda, there was no workaround — the physical plugin file just wasn't there.

I fixed the conda-forge recipe. Since build _1 of PyQt6 6.11.0 (published June 17), the plugin is included:

conda install pyqt6=6.11.0=*_1

What changed: the pyqt6 recipe was only installing the Python package, but Qt plugins need to be in $PREFIX/plugins/designer/.

The build was already producing libpyqt6.so — the recipe just wasn't copying it to the right place. One line fix: cp -r $PREFIX/lib/python3.x/site-packages/PyQt6/Qt/plugins/ $PREFIX/plugins/

Same issue exists for PyQt5 (needs libpyqt5.so) but since Qt5 reaches EOL in December 2026, PyQt6 is the priority.

If you're building conda packages that ship Qt plugins, check that qt-plugins are in the right location. The upstream build system puts them inside the Python site-packages — conda expects them under $PREFIX/plugins/.

This was discussed on the PyQt mailing list earlier this week.

I'm posting it here in case anyone else was tracking the issue.



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

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

Qt - Reddit

Qt Creator 20 and local AI
https://www.qt.io/blog/qt-creator-20-and-local-ai

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

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

Qt - Reddit

Thinking of Switching to Qt/C++ Desktop Development Looking for Good Learning Resources

I'm considering changing my development focus and moving into desktop application development using Qt and C++. My goal is to build modern cross-platform desktop applications and eventually become proficient with Qt Widgets, Qt Core, and QML. I'm looking for recommendations on:

High-quality C++ tutorials (beginner to intermediate)

The best Udemy courses for modern C++

Good Qt courses covering Qt Core and Qt Widgets

QML and Qt Quick learning resources

Any learning roadmap for becoming productive with Qt development

If you've made a similar transition or currently work with Qt professionally, I'd love to hear what resources helped you the most and what you'd recommend avoiding.

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

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

Qt - Reddit

GNU debugger GDB how to use for KDE and Qt programming tutorial
https://www.youtube.com/watch?v=GR2jIleellk

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

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

Qt - Reddit

Building a QML Engine for Unity. Would you use that?

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

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

Qt - Reddit

Two years

Hello!

For the past two years, I've been interested in Linux desktop environments and desktop shell development. I really enjoyed experimenting with Hyprland, customizing my setup, exploring source code, writing small plugins, and learning how everything works under the hood.

Then QuickShell came along. Since it seemed to be used in almost every modern desktop setup I saw, I initially thought that Material You 3 was somehow built directly into QuickShell itself. However, after looking into it more closely, I realized that wasn't the case.

I started exploring the source code of projects like End4 and Caelestia, and that led me to a question: how did they manage to customize and style Qt Quick Controls so extensively?

My experience with Qt is fairly limited. Most of my previous work was with Qt Widgets, so the Qt Quick ecosystem is still quite new to me.

I'd really like to understand how these custom styles and themes are created for Qt Quick Controls. In particular, I'm interested in learning how to implement or port Material You 3 components and design principles to Qt Quick.

I'd greatly appreciate any explanations, advice, or resources on this topic.

Thank you very much!

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

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

Qt - Reddit

Why is it not removing the appropriate time from the list

i am using PyQt and I have a list that sorts the time according to the 24 hour time

I do not know why it stops removing at a certain point. I believe it has to do with my remove_time(self) method but I am unsure

can someone give me advice based on this issue on what I can do

I have attached the source code link so you can get an idea of what the code looks like

source code

Honestly I am aware the code looks sloppy but I am just going with it.

Look at problem here

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

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