Category "qt"

Build error in Qt Creator in release but not in debug

I'm working with Qt 5.15.2 in Qt Creator 6.0.2. I have a program that uses a .lib file which was built in both debug (_ITERATOR_DEBUG_LEVEL = 0) and release (_I

[C++][ QT ] is not meant to be copied. Pass it by move instead

I am a beginner in C++. And I don't understand this error. I just need you to explain me. I try to show a .sqlite database in a QTableview. The problem come fro

PySide6: How to remove spacing between buttons in QHBoxLayout?

How can I remove the spacing between buttons after fixing their size? A space is added whenever I set the button's size. I tried setSpacing but it does not work

How me get acces ui from another class?

I have a database in a separate widget class datbase.ui that I insert as tab in mainwindow.ui. I want that when initializing the connection in the class datbase

How to add functionality to widgets (PyQt5 ) in separate .py

I'm struggling to understand the general structure of how to work with PyQt. I want to have my main file class MainWindow(qtw.QMainWindow): def __init__(self, *

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