Category "qt"

How to open a second QMainWindow from my first/original MainWindow?

I am creating a desktop app with Qt6 and C++ and I have my original MainWindow class. Using Qt Creator I generated ui,h,cpp for a new SummaryClass (QMainWindow)

The window i made with qt designer doesn't show up

I made this window using qt designer i did not add the code that downloads the songs yet but when I run it the window doest show up from PyQt5 import QtCore, Qt

QSqlDatabase is opened but QSqlQuery does not execute and shows error database not opened

I am working on a project. I am trying to run this query but it fails and gives the error. Here is the code: QSqlQuery* printQry = new QSqlQuery(); if

How to specify dependencies in qt_add_qml_module (CMake for Qt 6.2)

When using qt_add_qml_module to specify a QML module, how do you handle Qt modules that it depends on (e.g. QtMultimedia)? If I have class Synthesizer that exte

Qt - Add item from a second window to ListWidget in MainWindow

I have a QDialog where I can enter a Text and add it to a ListWidget inside the MainWindow after I clicked OK. Therefore I created a Method in the MainWindow cl

Qt - TableView with categories

I am looking to replicate the look of the TableView presented in this picture using Qt. The one in the picture looks to be created with Windows Forms. The mai

QT QML + C++ MVVM

As far as I know in QT QML is not possible to instantiate a C++ class in QML Component, unless it is a QQuickItem. I would not like to put all ViewModels on Vie

How to find out the screen number from qml code?

I need to find out whether the popup is visible on the screen. In Qt, I would call qApp->desktop()->screenNumber(this) within the widget class function. T

Speed differences between QStandardItemModel and QAbstractTableModel?

Can anyone explain the following: I have 2 scripts for loading a pandas dataframe in a tableview which has a filter field. The one with the standard model loads

Remove row from the model

There is a client (company). The client has contacts. You can link any number of contacts to a specific client. Let's say you open the client you need. Then you

QWebEngineView SOCKS5 proxy with authorization

Is there any way to make QWebEngineView work with SOCKS5 with authorization? I tried connecting QWebEnginePage::proxyAuthenticationRequired signal to my slot, b

QProcess does not signal stdout ready

When I launch xfreerdp process out of shell, it prints INFO messages to stdout and WARN/ERROR messages to stderr, as expected (this is just the default /log-lev

QProcess does not work if the path in argument list has a whitespace

I want to execute following command using QProcess, that works in cmd already if executed: C:\\myApplication\\tools\\dcmodify.exe -v -ie -gin -nb -ma (0010,0010

Qt for android: project error cannot run target compiler

I compile for the first time "toutchinteraction.pro" from Qt for android examples. I installed sdk manager from android studio, all my android setup are well co

Dynamic height of tableviewcolumn according to text length

hello I have the following problem I am working with qt quick control 1.4 because the tableview of 2.15 does not adapt correctly as I would like; the table over

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, *