Skip to main content

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.

qt
18 votes
1 answer
11k views

Is it possible to make only one item selectable in QTableWidget?

Is it possible to make only one cell (or item) selectable at a time in a QTableWidget, rather than the default of allowing multiple?
-3 votes
0 answers
83 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 ...
6 votes
2 answers
2k views

It is possible to just use Qt and WebAssembly instead of HTML/CSS/JavaScript to develop a frontend web application?

I am a C++ programmer, but for some reason, I have to develop a website by myself (my own commercial project). I don't want to take a lot of time to study JavaScript and something else. Is it possible ...
9 votes
4 answers
41k views

Qt: QWidget::paintEngine: Should no longer be called

I'm trying to make an app where you can draw with your finger on a canvas. To achieve this, I'm subclassing QWidget as MFCanvas, registered the class in QML with qmlRegisterType<>(), ...
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....
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: @...
-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 ...
-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 ...
-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 ...
0 votes
0 answers
33 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
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,...
3 votes
1 answer
67 views

Calculating the exact needed height for a QTableWidget (Qt 6 update)

When calculating the height that is needed for a QTableWidget so that all rows are visible and no scroll bar is added, it's not enough to take the number of rows, multiply them by the row height and ...
9 votes
2 answers
4k views

Add Qt private headers to CMake project

How should I add Qt private headers to my CMakeLists.txt ? find_package(QT NAMES Qt6 Qt5 COMPONENTS Core Quick QuickPrivate REQUIRED) find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Core Quick ...
-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 ...
7 votes
2 answers
9k views

How to write QT system tray app without a window class, and integrate it with another process?

Here is my setup: A background process that keeps running and does it's job. A launcher which launches the aforementioned process and monitors it, relaunches it if crashed or killed. I wish to add ...

15 30 50 per page
1
2 3 4 5
5753