Questions tagged [qt]
Qt is a cross-platform application development framework widely used for the development of application software that can be run on various software and hardware platforms with little or no change in the underlying codebase, while having the power and speed of native applications. Qt is available with both commercial and open source licenses.
86,259
questions
-3
votes
0
answers
75
views
Why doesn't the database work only for one table?
In this part of the code, It is supposed to show a form that is supposed to work as a registry form or an edit form.
in the edit form, It shows the correct data from both tables the first time you ...
0
votes
0
answers
9
views
disable ssl_client_socket_impl.cc(975)] handshake failed errors in QWebEngineView
For this little example ,
from PySide6 import QtCore, QtWidgets, QtWebEngineWidgets
# or
# from PySide2 import QtCore, QtWidgets, QtWebEngineWidgets
class BetterWebView(QtWebEngineWidgets....
-1
votes
0
answers
25
views
How to read/write whole drive in Qt?
I'm looking for a Qt class to handle whole drive like the following Windows APIs:
HANDLE hd=CreateFile("\\\\.\\C:",GENERIC_READ,...);
...
ReadFile(hd,...);
WriteFile(hd,...);
QFile seems to ...
-1
votes
0
answers
35
views
PyQt Application Freezes When Creating GUI Elements [duplicate]
I'm trying to create multiple GUI elements to show the transcript of a video, the issue is that it freezes when creating the GUI as it creates all the GUI such as, QTextEdit, QLineEdit, QPushButtons ...
0
votes
0
answers
32
views
sfml widget with transparent background in Qt
I am using the QSFML repo to use sfml 2.x inside a Qt 6.x widget.
I cound not find a way to make the sfml background transparent to see classic qt widgets behind the sfml widget (whatever I try the ...
0
votes
0
answers
30
views
make fails on a system without Qt
I made a modification to my project to recognize whether I'm building against GTK or Qt. I can build my project on the system where Qt is installed, but if there is no Qt it fails with:
g++: warning: @...
-4
votes
0
answers
51
views
Where can I see the system tray icon on MacOS? [closed]
I have created using system tray icon class in Qt C++ SDK.
But I couldn't see on the MacOS System and haven't seen any system tray icon on MacOS until now.
I would like to know if anyone can help me ...
0
votes
1
answer
35
views
How To use QSqlQuery::bindValue [closed]
I have this snippet :
int id = m_AddItemCandidate->getId();
QString s = "INSERT INTO studied_substantives (subst_id, no_singular, no_plural, meaning) ";
s = s + "VALUES(:id,...
0
votes
0
answers
40
views
shiboken6: constexpr variable must be initialized by a constant expression
I am trying to build some python wrappers using shiboken6 and Pyside6. I have managed to get the code compiling on a single machine, but now that I migrated the code to a build server, I am getting a ...
-3
votes
0
answers
31
views
QComboBox stylesheet under Linux
I am developing a Qt application for Linux and Windows.
QComboBoxes should be modified so that when collapsed, the characters are white and the background is dark gray. If I open it, the background in ...
0
votes
0
answers
25
views
Qt/QML - Getting *qml* stack trace from Non UI thread is always crashing
In a certain QML app there is a problem that sometimes QML scripts hang UI thread for very long times, like 20+ seconds of UI thread not processing any incoming events from any source. In rare cases ...
0
votes
0
answers
23
views
Subdirectories traversing and creation performance [closed]
I am currently working on a software (not designed by me) that creates a file inside a specific, very deep, directory tree.
Let's say that the file name is 00112233445566778899.txt
The program creates ...
0
votes
0
answers
20
views
How to read a 'CompactSVMModel' save in a .mat file from a C++/Qt program
I tried to save a machine learning model into a .mat file, and then read it from a Qt/C++ application.
Following the documentation, I managed to read files containing basic types like double or int.
...
0
votes
1
answer
44
views
DateTime .lastModified() is empty [closed]
I have a app which displays the Date & Time of a file and the filepath in a QTableView. I use the following code to get the Date & Time of a file and display the path and Date & Time.
The ...
-1
votes
0
answers
25
views
Qt custom virtual keyboard [closed]
The script works incorrectly with modal windows (exec()) because of focus loss or interruptions in the keyboard script. The keyboard logic is divided into two scripts: a focusLogic script and the ...
0
votes
0
answers
42
views
Unexpected rounded corners in Qt Frameless Widget
Unexpected rounded corners in Qt Frameless Widget
I use Qt and Windows API to create a window with a custom title bar, and I want this window to have some of the effects of a Windows window (maximize, ...
0
votes
0
answers
45
views
Font rendering issue in c++ applcation on WSL with Qt6
I'm developing a C++ application using Qt6 on WSL, using Ubuntu 22.04. This application prints braille characters to the screen when when clicking and dragging in the canvas. The problem is the ...
-3
votes
0
answers
21
views
QT6 multi butons change parameters in loop [duplicate]
I apologize for the bad English (translator),
I am looking for a solution for a dynamic name for the buttons so that I can go through all the buttons in a cycle and then name them individually ...
-3
votes
0
answers
43
views
How to break from the Loop while listening from the Socket TCP connection in C++ QT form the different main thread [closed]
I have a main thread which starts the worker thread. This worker thread has a while(true) loop with a break statement and condition inside the loop.
This worker thread listens to the Socket connection ...
-3
votes
0
answers
27
views
Execute GUI Application From Python Web Application [closed]
I have a web application running on a Ubuntu server. Backend is Python uWSGI with Nginx proxy. I wanted to make a API call to the backend, and have the Python code execute some command with the GUI ...
0
votes
0
answers
19
views
QMenu with only one item
I have a menu that has only one item i.e. no sub menu actions
I have tried the following but of course I a get a sub item
m_grabMenu = new QMenu(tr("Grab"));
m_grabActionMenu = m_menuBar-...
3
votes
0
answers
34
views
Qt Android, how can I get MotionEvent.getToolType() equivalent?
I have a whiteboard that's a component extending from QQuickItem, as it's in use in some hardware devices I need to detect when the tool being used is an eraser, a stylus or the finger.
In Android in ...
0
votes
0
answers
14
views
QRhi uniform buffer re-usage
Is it correct that dynamic uniform buffers can only be used once per frame with the QRhi rendering layer (https://doc.qt.io/qt-6/qrhiresourceupdatebatch.html#updateDynamicBuffer)?
For instance, this ...
-2
votes
0
answers
46
views
Building a C++ application into a standalone c++ application [closed]
I downloaded the telegram desktop application ( for linux ) and the archive folder only contained the actual executable. If I were to build a GUI application in c++, how would i distribute application ...
-1
votes
0
answers
33
views
can't show float/ double number in QLcd Number & label QT C++
I want to display commas on the LCD number, where the data comes from QSerialport, I have tried various methods but still can't
#include "mainscreen.h"
#include "qmessagebox.h"
#...
0
votes
1
answer
45
views
Cleaner methods for creating multi-variable animations in PyQt5 (css)?
I recently came across an example code for animating a widget using QVariantAnimation, the QVariantAnimation has a start and end point, and the calculated value is injected into the css of the button ...
0
votes
0
answers
37
views
Create a window in Qt not blocked by modal windows [closed]
I am creating an application in Qt (for Windows), which has a main window and many dialogs, which are opened in modal mode. But I also need to create windows that are not affected (blocked) by the ...
0
votes
1
answer
25
views
Assertion Failed: Compiler flags to be set for a linker in qmake file of qt, so that we won't get Uncaught Runtime error , after main() function exits
I am trying to expose a UI(built using qt) on the browser, using Emscripten. Compiled dependencies, and could able to link those to the UI, it got compiled successfully without any errors, but while ...
0
votes
0
answers
19
views
Fix warning: Slots named on_foo_bar are error prone
I am getting this warning in header files from clazy-connect-by-name literally hundreds of times in a legacy project I have been supporting for 15+ years in Qt. I recently followed an upgrade path ...
2
votes
0
answers
21
views
QML layout and padding working in Qt Design Studio but not Qt Creator with Python
I have the following QML code:
import QtQuick
import QtQuick.Window
import QtQuick.Controls
import QtQuick.Layouts
Window {
visible: true
width: 300
height: 300
title: "Padding ...