Qt - Reddit – Telegram
Qt - Reddit
14 subscribers
241 photos
30 videos
4.05K links
News and discussion for the Qt Framework.

Subreddit: https://www.reddit.com/r/QtFramework

Powered by : @r_channels & @reddit2telegram
Download Telegram
qTbot - qt library for working with Telegram bots.

Hey, guys! How are you enjoying 2026? The air has gotten cleaner, no not... oh well. 😁

A few years ago, I wrote a library for building chatbots using Qt. Currently, I have several Telegram bots running on it, and they've been working quite stably. So, I think it's ready to be used beyond just my own projects.

I'm leaving the GitHub link here. The library is built on the principle of a unified interface — essentially, you can implement any other platform, like Facebook or others. If you like the idea, feel free to join in, use it, or help with development!

https://redd.it/1q280cv
@qt_reddit
Very confused with setting up lsp for QML in Neovim

Hello! I apologize if that is a silly question, but I've tried to search on this sub and elsewhere and I am still very confused. I can not get my QML LSP work fully in Neovim. I posted it in Neovim sub, but maybe people here know what my problem is. Hope it is OK.

I have tried different methods, recently got Lazyvim hoping it would be easier to set up it there. But there is so much information on how to set this stuff up and they are all different and I am honestly lost. Regardless, in every case, I do not manage to get definitions working. I get warnings or notifications of unused imports, and basic autocompletion even, but not definitions

Also, regardless if I try via mason or the sever installed with qt6 locally, and in general in every way i tried, in lspInfo it says
-version ? (no serverInfo.version response)
- root directory: nil

I do have language server installed, I checked - it is recognized by nvim, I have .qmlls.ini file in my project directory.

>.qmlls.ini
[General]
no-cmake-calls=true
buildDir="/run/user/1000/quickshell/vfs/7f02b536a7df0cbbf1960731c71d372b"
importPaths="/usr/bin:/usr/lib/qt6/qml"

Bellow, on the screenshots, there is one of my setups via config/lsp.lua.

Later I installed LazyDistro for nvim, hoping it would be simpler, but it ended up even more confusing, and if in the beginning, I understood what I was doing, now I am completely lost and confused already. I am not a programmer, just want to do some stuff as a hobby and I really love vim for everything but this lsp is a pain.
Maybe, if it is some silly stuipid mistake, can anybody just tell me what to do exactly or what to follow? I am just desperate already, please help

init.lua

config\/lsp.lua

checkhealth lsp

https://redd.it/1q20wes
@qt_reddit
Why is installation this slow

https://preview.redd.it/n1421x6pnwag1.png?width=1624&format=png&auto=webp&s=753b7de534898529be7e62b0a67449879644dade

I have tried changing mirrors but to no luck
this is only really happening when I try to install CDB debugger and debug symbols
other times its fine

https://redd.it/1q1ucer
@qt_reddit
llvm, debugging, no application output

This topic has already been discussed but I haven't found a specific solution. Windows, llvm-mingw compiler, and lldb debugger. For some time now nothing has been appearing in the application output in debug mode. I am certain that I haven't changed any settings. I've tried everything, including solutions that have more side effects than the are worth. Recently created a console in the application:

AllocConsole();
freopen(“CONOUT$”, “w”, stdout);
freopen(“CONOUT$”, “w”, stderr);

It worked for a few days and then stopped! I use llvm because with regular mingw the startup time is unacceptable.

Any proven ideas?

https://redd.it/1q3pjhg
@qt_reddit
This media is not supported in your browser
VIEW IN TELEGRAM
Sprite Animator in my free App - "3Vial OS" [Python / PySide6 / PyOpenGL / NumPy]

https://redd.it/1q3wnie
@qt_reddit
QML does not handle setData returning false

I've bound my text input to a role in my model. setData() is called on editingFinished, after the user has entered a new value. In some cases, the user might enter invalid data and setData() will return false. In such cases, the text input's text does not revert to what's in the model.

I've been able to get around this by never returning false, and always emitting dataChanged() in setData(). I don't have a problem with this in principle, but it doesn't seem like the "right" way of doing things. Is there a better way or am I on the right track?

https://redd.it/1q41ikk
@qt_reddit
What's the best way to get PCM audio data from a Mp3 file?

I've seen a few people use ffmpeg with Qt, but is there an easier way to get raw audio data?

https://redd.it/1q45tfh
@qt_reddit
Qt: How to force text color to always be black globally (without setting stylesheet per widget)?

I distribute Qt-based software and on one client the default text color is white instead of black.
Because the app uses a light background, the text is almost invisible.

Is there a way to force all text to be black globally (application-wide), without setting stylesheets on every widget individually?


Differences:

https://preview.redd.it/9mmxrwcznkbg1.png?width=1434&format=png&auto=webp&s=b7bf4411272aa98ebe7cb829627dee68b546ec16

https://preview.redd.it/uh5kqzcznkbg1.png?width=1140&format=png&auto=webp&s=26710309ed25f28131cabf7f17d9b9b4e0a9e24c

Thanks for help!

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