qt_reddit | Неотсортированное

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

-

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

Подписаться на канал

Qt - Reddit

Cant get Qt web engine to work / install it properly

C:/Qt/6.9.1/msvc2022_64/lib/cmake/Qt6/Qt6Config.cmake but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT FOUND. Reason given by package: Failed to find required Qt component "WebEngineWidgets". Expected Config file at "C:/Qt/6.9.1/msvc2022_64/lib/cmake/Qt6WebEngineWidgets/Qt6WebEngineWidgetsConfig.cmake" exists

This is the error I get

I looked online coudlnt find anything

I installed web engine by going to the maintenance tool and installing the extension

chatgpt kept telling me to click on Qt 6.9.1 then MSVC 2022 64 bit, then somehow expand that and tick the web engine, but I can't do that on my maintenance tool

Thanks for any help

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

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

Qt - Reddit

[Qt Quick 3D game] Ecliptica Development log 8
https://youtu.be/wxPwA2-JBLM?si=6xS5l0alhaQ-Wu2z

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

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

Qt - Reddit

QSettings and OrganizationDomain on macOS

hello everyone, i'm trying to use qsettings on macos, i've set the organization domain to my .tech domain that i own, but i guess qt doesn't regonize .tech as a top level domain, so my plist files get name com.domain-tech.program.plist instead of tech.domain.program.plist

is there a way to force .tech to be a recognized, or force plist name?

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

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

Qt - Reddit

Do you know that Qt quick 3d can do this ? This is amazing, 10 km terrain generation per second with some visible area, and infinity Map.
https://youtu.be/_-KU9SpdI5A

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

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

Qt - Reddit

Dissolving main window experiment
https://redd.it/1lomkav
@qt_reddit

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

Qt - Reddit

I tried building something for the new qt developers, can you check this 7 minutes long video.
https://youtu.be/8O3xPe22V9o?si=Q5Mw4cMdW3Yy6FAu

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

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

Qt - Reddit

Bug: QDS is unresponsive?

Sup!

Qt Design Studio is lags A LOT. Whenever I type something, the IDE takes a few seconds to respond. I've been facing this issue for a long time now. Is it the same for everybody?

See the video

https://reddit.com/link/1ln4kcs/video/ai842cxr7s9f1/player

I'm doing standard builds as of now. But QDS with Live Preview is much more productive, for me.

Specs:
Lenovo V14 G3 IAP (i5-1235U, 8GB)
Windows 11
Qt Design Studio 4.7.2 (latest)
Qt Creator 17
Qt 6.9
MSVC 19

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

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

Qt - Reddit

Live pixel blending with QPainter using the Difference blend mode, pretty cool (I'll post the custom effect on GitHub if I manage to get it working properly)

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

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

Qt - Reddit

Animted tray icon with PyQt6, pretty cool
https://redd.it/1llv3ds
@qt_reddit

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

Qt - Reddit

Qt Creator 17 how to upgrade and use tutorial
https://www.youtube.com/watch?v=orENCrm0LwI

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

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

Qt - Reddit

Is Qt risking developers by degrading its CLI tools? My VS Code experience
https://redd.it/1ljeh7r
@qt_reddit

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

Qt - Reddit

Load QWebEngineView in a seperate thread?

Hello, I have a program that is basically an overlay for a desktop. Kind of similiar to the steam one. I have a QWebEngineView that is running in this overlay. However when i press a button to setup my class (it runs the method load_state), and in this load state i have (init for reference):
```python
def __init__(self, url=QUrl("https://www.google.com/")):
super().__init__()
self.url = url
self.web_view = None
self.main_layout = QVBoxLayout(self)

def load_state(self):
self.web_view = QWebEngineView(self)
self.main_layout.addWidget(self.web_view)
self.web_view.setUrl(self.url)
```

The self.web_view takes a bit of time (like 0.5 seconds) to load so I get a small lag while pressing this button. Now I technically know that all widgets should be ran and initialized on the main thread but is there a way to load it on a seperate thread and the somehow connect it to the main one? I tried Signals and it didn't work for me.

```python
class ModLoader(QObject):
finished = Signal()
mod_loaded = Signal(object)

def __init__(self, mod):
super().__init__()
self.mod = mod

def run(self):
self.mod.load_state()
self.mod_loaded.emit(self.mod)
self.finished.emit()
```
error:
QObject::setParent: Cannot set parent, new parent is in a different thread
QObject::setParent: Cannot set parent, new parent is in a different thread

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

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

Qt - Reddit

I made a beginner tutorial on structuring QT projects. What do you think about this for the beginner's ?!

Even I am not a pro or consider to be one, but this is how I have learned to manage my code base for qt projects. If you know better ways, please comment down I am looking for better alternatives from the actual pros.

kastuvpokharel/how-to-structure-projects-in-c-or-qt-cmake-and-directories-c03012e521bd">kastuvpokharel/how-to-structure-projects-in-c-or-qt-cmake-and-directories-c03012e521bd" rel="nofollow">https://medium.com/@kastuvpokharel/how-to-structure-projects-in-c-or-qt-cmake-and-directories-c03012e521bd


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

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

Qt - Reddit

QT Quick 6.9.0 Keyboard Android and Textarea Placeholder

I'm experiencing two strange issues while developing an Android app with QT Quick.

The first is that under 6.8.2, I have a simple login screen with a username and password, which works perfectly. However, when I upgrade the build to 6.9.0, this handwriting feature message appears when I start it, which you can decline, however. But no matter what you choose, I can no longer type anything with the keyboard. It no longer responds to any keys. (Android Emulator)

The second issue (under 6.8.2) is that I have a placeholder text in a text area. When I click in the field, the placeholder moves into the frame. However, the cursor now moves into the frame, which means I'm typing over the placeholder and not in the actual field.

Definition of the text area:
TextArea {
id: montageResultField
Layout.fillWidth: true
Layout.preferredHeight: 100
font.pixelSize: 16
placeholderText: qsTr("Test Placeholder...")
background: Rectangle {
radius: 8
border.color: montageResultField.activeFocus ? "#0078D7" : "#CCCCCC"
border.width: 1
}
text: montageResult
onTextChanged: montageResult = text
}



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

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

Qt - Reddit

Qt license for solo developer?

I contacted Qt Company via email about this but they never replied. Does anyone know whether a solo developer who does not work for others and hasn't found a company yet can obtain a Small Business License and what they require in terms of documentation if so? Starting a business just to get a license had high running costs where I live, but I can't develop under LGPL either. Is my only option to pay 4k per year?

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

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

Qt - Reddit

Qt or React

Can I shift to react, I am not being able to quickly make apps with qt, can I really quickly make apps with React using AI, like vibe coding is easier on React, I tried to do some stuff with qt but there's only to a limit you can do, there's not much code data available on the internet about qt, most probably that's the reason why AI isn't so well suited with Qt. I am working on a big project I have also developed a prototype using qt itself, but I wanna move to react like i know understandable levels of html/css/javascript, although I know Java a bit better, I haven't really made some interesting projects using javascript. So which learning curve is sharper, Qt or React, I am currently in the beginning phase of my qt journey too, so should I shift to react. I mean i have heard react is usably fast, and qt is fastest but I am using PyQt or pyside, so obviously react is faster then these, and most web apps are built on react so should I move to React, but I would feel slight guilt, because I already started my qt journey.

I don't know, can someone guide me, as I said my goal is to get things done faster.

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

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

Qt - Reddit

What exactly is the license of PySide6?

Hello everyone,
I’m a desktop application developer, and I’m currently planning to build a high-performance Windows application using PySide6.

My question, as the title suggests, is about PySide6’s license.
If I use only the provided APIs from PySide6 (without modifying its source code), along with a few third-party libraries, can I freely distribute my app for commercial purposes?

I want to make sure I’m complying with the license correctly, as I’m not very confident when it comes to legal or licensing topics.
I appreciate your understanding and any guidance you can provide.
Thank you very much!

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

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

Qt - Reddit

help

can anyone tell me about oracle application framework and where can i learn?

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

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

Qt - Reddit

Segfault QtCharts in qml with pyside6

Ok, complete beginner here, so please keep the answer to my question simple.

I have written some code for a raspberry pi 5, using a rs485 to usb adapter to read out a modbus signal to containing a force signal. Now i want to visualize the signal within a 10s timeframe using QtCharts. Meaning, i want a graph that refreshes with 60fps and displays a 10 second window of measurements. I created a gui with qt design studio and added some placeholders for the charts (2charts, currently only one implemented and that one is causing segfault). The placeholder was later manually replaced with the chart. Running the program now and switching to the diagramm from another view of the app, the software crashes immediately and says segfault, nothing more nothing less.

I created a test script where i just have QtCharts plot some constant points to check if this fault is happening because of me accessing the measurement file wrong, the fault happens here as well, so it is some qml QtCharts interaction i think.

I appreciate you taking your time to read and answer, have a nice day.

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

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

Qt - Reddit

Best way to stream raw camera bytes in real time?

Using qml with qt quick

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

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

Qt - Reddit

qtedit4 - v0.0.11 - new C++ IDE

Hi all,

I released version 0.0.11 of my IDE. The new features are (borked) Meson support, move tabs between splits, multicursor support and various small small fixes. Get it here: https://github.com/diegoiast/qtedit4/releases/tag/v0.0.11

qtedit4 - split tab, and multiple text cursor

Broken? it seems I broke the way that the build system detect binaries, so you can build, but not run the binaries... I fixed this in main if someone asks, I will release v0.0.12 with this fix.

PS: Multi cursor support in a QPlainText widget is available for all, use https://github.com/diegoiast/qutepart-cpp

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

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

Qt - Reddit

How to make glow after they removed graphical effects and qt5compat imports?

title and why did they remove that or am I over seeing something?

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

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

Qt - Reddit

Can't find online installer with version 6.2.3

I am working on a project using Qt. It's highly recommended to use Qt v6.2.3 for development. Latest official online installer doesn't include this version (earliest one is 6.5.3). Is it possible to find an online installer with v6.2.3?

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

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

Qt - Reddit

QThreads not quitting

Hello , I recently started using Qt for a C++ project and I'm struggling to make the program shut down.
The QThreads used are not quitting even after 1min wait and I don't know why.
code Example :


https://preview.redd.it/kt7hiofw3a9f1.png?width=818&format=png&auto=webp&s=166782ebe350f4d2b4102c003979e28528f69d50

only "yolo 1" is printed on the console which lead me to believe that worker_controllerInput is the problem:
worker_controllerInput code :

https://preview.redd.it/xt1hvmka4a9f1.png?width=574&format=png&auto=webp&s=caa1cfabe9c3b6717f08bada677600db68bdbd0e




After adding a lot of print debugging statements
"running" stops getting printed and "finished checking :::::" gets printed on the console , so the program is not stuck in the while loop.

The worker thread is not doing anything but doesn't want to quit. why?

I appreciate your help and your advice in advance.

Have a good day.



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

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

Qt - Reddit

What's New in QML formatting
https://www.qt.io/blog/whats-new-in-qml-formatting

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

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

Qt - Reddit

Qt Creator extension registry

I've pushed my "adopted" Qt Creator plugins to the Qt Creator extension registry. Now the installation and discoverability is just a few clicks away! 🎉

https://reddit.com/link/1lj6cdg/video/97ghiswadu8f1/player

If you have a Qt Creator plugin that you want to be part of the registry, just fork it, and do a pull request!

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

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

Qt - Reddit

How to make a central shortcut manager in Qt C++?

I have an ActionManager class (defined below) which collects all of the actions from different widgets in my app and shows them in a shortcuts window. The problem is you can't add pointers of widget owned actions to a central action manager like that. It's wrong both from memory management/object lifetime perspective and usage perspective (won't see all the shortcuts until the corresponding widget is created).

Sure there will be some kind of central manager, which the shortcut window can query, but how it interacts with rest of widgets needs to be reconsidered. How can i avoid these issues?

Stackoverflow link for same question: https://stackoverflow.com/questions/79675439/how-to-make-a-central-shortcut-manager-in-qt-c

#ifndef ACTIONMANAGER_H
#define ACTIONMANAGER_H

#include <QObject>
#include <QWidget>
#include <QAction>
#include <QKeySequence>
#include <QHash>

class ActionManager : public QObject
{
Q_OBJECT

public:
static ActionManager *getInstance();

ActionManager();
~ActionManager();

void addAction(const QString &name, QAction *action, const QString &description = "");
void addAction(const QString &name, QAction *action, QKeySequence keySequence,
const QString &description = "");
void addAction(const QString &name, QAction *action, QList<QKeySequence> keySequence,
const QString &description = "");

QAction *getAction(const QString &name) const;
std::vector<QAction *> getAllActions() const;

private:
QHash<QString, QAction *> actions;

static ActionManager *instance;
};

#define Actions() (ActionManager::getInstance())

#endif // ACTIONMANAGER_H


.cpp

#include "ActionManager.h"

Q_GLOBAL_STATIC(ActionManager, uniqueInstance)

ActionManager *ActionManager::getInstance()
{
return uniqueInstance;
}

ActionManager::ActionManager() {}
ActionManager::~ActionManager() {}

void ActionManager::addAction(const QString &name, QAction *action, const QString &description)
{
action->setObjectName(name);
if (!description.isEmpty()) {
action->setText(description);
}
actions.insert(name, action);
}

void ActionManager::addAction(const QString &name, QAction *action, QKeySequence keySequence,
const QString &description)
{
if (!keySequence.isEmpty()) {
action->setShortcut(keySequence);
}
addAction(name, action, description);
}

void ActionManager::addAction(const QString &name, QAction *action, QList<QKeySequence> keySequence,
const QString &description)
{
if (!keySequence.empty()) {
action->setShortcuts(keySequence);
}
addAction(name, action, description);
}

QAction *ActionManager::getAction(const QString &name) const
{
return actions.contains(name) ? actions.value(name) : nullptr;
}

std::vector<QAction *> ActionManager::getAllActions() const
{
std::vector<QAction *> result;
result.reserve(actions.size());

for (const auto &entry : actions)
result.push_back(entry);

return result;
}


Example Usage:

QAction *seekPrevAction = new QAction(this);
seekPrevAction->setShortcut(Qt::Key_Escape);
seekPrevAction->setShortcutContext(Qt::WidgetWithChildrenShortcut);
addAction(seekPrevAction);
connect(seekPrevAction, &QAction::triggered, seekable, &CutterSeekable::seekPrev);
Actions()->addAction("Decompiler.seekPrev", seekPrevAction, tr("Seek to Previous Address"));


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

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

Qt - Reddit

Looking for Remote Qt-Based Embedded Role

Hi everyone,
I'm a Canadian-based Embedded Software Engineer with extensive experience in Qt/QML, C++, Embedded Linux (Yocto), QNX, and STM32/i.MX6/i.MX7 platforms. I'm currently looking for remote opportunities involving Qt development, particularly in embedded systems or medical/industrial devices.

🔧 Highlights:
Over 6 years of embedded software experience, including work on medical devices, IoT, and low-power embedded systems.

Developed applications and drivers in C++/Qt/QML for QNX and Linux systems.

Hands-on work with U-Boot, Secure Boot (HAB on i.MX7), and board bring-up.

Experience with RTOS (FreeRTOS, UCOS-II) and networking protocols (TCP/IP, I2C, SPI, USB).

Proficient in device driver development, Yocto build systems, and cross-platform debugging.

Strong history of remote contract work and cross-functional collaboration.

🛠️ Recent Projects:
Migrated QNX 6.5 software to i.MX7, including custom Qt/QML UI development for medical devices.

Brought up STM32-based portable devices and optimized power-sensitive code in C++.

Led kernel modifications (e.g., scheduler tuning) and secure boot setup for QNX/i.MX platforms.

I'm currently open to contract or full-time remote opportunities anywhere globally, as long as the role involves Qt/QML and embedded development.

If you know of any open roles or teams that could use someone with this skill set, please feel free to drop a message

Thanks in advance!


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

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

Qt - Reddit

Android App Camera and Gallery

Hello,

I'm currently building a small Android app with QT.

Is there an easy way to let the user take a photo with the camera or select an image from the gallery?

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

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

Qt - Reddit

How to build KDE apps and Kate from source on Windows using KDE Craft tutorial
https://www.youtube.com/watch?v=38QE543bnb0

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

Читать полностью…
Подписаться на канал