Category "qt"

Qt allow dock widget to overlay

How could I allow a dock widget to be over other widgets? I would like to get a result like the tool bar of a IDE such as VSC or PyCharm. The bar can be resized

QByteArray from hex literal unicode characters

I see how a QByteArray to convert to and from Ascii character I see how to convert a QString to utf-8 using QString::toUtf8() However, I do not see how to initi

Build specific modules in Qt6 (i.e. QtMqtt)

For a project which uses MQTT, I always had to compile the QtMqtt module from source, because it wasn't included in the prebuilt windows release and couldn't be

symbol lookup error after updating Qt package

I recently updated all Qt packages from Pacman(Arch Linux). After updating I am getting system lookup errors after executing any python code. python: symbol

WebEngineView getting text input focus

How can I detect focus on the text field (input) on the webpage displayed using QML WebEngineView? I need this information to display/hide the virtual keyboard.

Setting background on Qtableview using a function

IU have a Qt window with a button and a QTableView which loads some data from a pandas dataframe using the QAbstractTableModel. I would like to set the backgrou

how to compile and then create lib file QtpropertBrowser

how to compile and then create lib file QtpropertBrowser. I want to add this library on my project. this library https://github.com/airpaio/QtPropertyBrowser .

How to translate standard buttons in Qt?

I have a problem with translate standard buttons in QMessageBox. If I check the language, the buttons are translated very well, but if I don't check the languag

Can we use multiple stack in Qt's Undo Framework (Command Pattern )

I am having a QgraphicsView which contains multiple QGraphicsItem. I have some features like zoom-in, zoom-out, Hide - Unhide selected item, Undo-Redo. To imple

How do I connect a splash screen with main window. I created both separately

Here's the code for the splash screen. import QtQuick 2.15 import QtQuick.Window 2.15 import QtQuick.Controls 2.15 import QtGraphicalEffects 1.15 import "compon

Qt: Qt 6.1.1 Failed to create vertex shader: Error 0x80070057

Guys! I'm a new user of qt and I faced a problem with qml. This issue has already been discussed in this article, but for python. I write in C ++/Qt 6.1.1, QtCr

Squish Date Time Scroll Bar Test

How can I scroll till specific object visible in Squish Tests (QT application)? The scroll bar has date (Month, Day and Year) to pick. Please provide any sugges

QToolbar.children() lists children in order of addition/insertion, not appearance

The QToolBar method insertWidget(QAction, QWidget) does correctly insert the widget at the intended place, but QToolBar.children() (actually QObject.children())

How to disable default console logs from AudioEngine QML type

I have used AudioEngine qml type to play some audio files in infinite loop and changing the pitch of audio based on some values using SoundInstance. Every time

Displaying only the right part of an image in QML - sourceClipRect

I'm trying to display only the right part of an image in QML by using the sourceClipRect property Here is a snippet of the code Image { id : _image anc

error when starting spyder on ubuntu 22.04

I have just upgrade my ubuntu. I have this error on spyder: Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland a

error when starting spyder on ubuntu 22.04

I have just upgrade my ubuntu. I have this error on spyder: Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland a

QImage 16 bit grayscale with QQuickPaintedItem

I have unsigned 16 bit image data that I displayed by subclassing QQuickPaintedItem in Qt 5.12.3. I used QImage with Format_RGB32 and scaled the data from [0, 1

QImage 16 bit grayscale with QQuickPaintedItem

I have unsigned 16 bit image data that I displayed by subclassing QQuickPaintedItem in Qt 5.12.3. I used QImage with Format_RGB32 and scaled the data from [0, 1

How to run a member function in QtConcurrent in QT6

i try to run a member function with QtConcurrent. I am just learning c++ and qt and i used the way i found in their official documentation: https://wiki.qt.io/Q