Top "Qdialog" questions

A QDialog is a class from the Qt Toolkit which is the base class for dialog windows.

How to show a window in Qt and deleting it as soon as it's closed?

As a very simple example, I want to show a dialog in Qt when I press a button. The usual …

qt qdialog
How to center a QDialog in QT?

I have this example code: QDialog *dialog = new QDialog(this); QPoint dialogPos = dialog->mapToGlobal(dialog->pos()); QPoint thisPos = …

c++ qt qmainwindow qdialog
Open second window from main with pyqt5 and qt designer

I'm creating an application with two windows using pyqt5 and QtDesigner. A button on the main window "MainWindow.ui" should …

qt pyqt5 qdialog childwindow
How to use a process (QProcess) in a new thread (QThread)?

I have the following code: void Processmethod() { QDialog *ProcessMessage = new QDialog; Ui::DialogProcessMessage Dialog; Dialog.setupUi(ProcessMessage); ProcessMessage->setModal(…

c++ qt qthread qprocess qdialog
How can I change the modality of QDialog at runtime?

I have a QDialog and I read a lot about the differences of show(), exec() and open(). Unfortunately I never …

c++ qt qdialog modality
PyQt - How to check is QDialog is visible?

I have a problem. I have this code: balls = [Ball() for i in range(1, 10)] So, when I say Ball() this …

python graphics pyqt qdialog
Qt dialog how can I trigger accept() and reject() from function

I have situation that I open QDialog window from the main.cpp file and then I wait for the exec() …

c++ qt qdialog
How to fix error in my pyqt programm (first argument of unbound method must have type 'QDialog') ?

After typing 1, both as login and password, a new window should appear, but it gives an error. It used to …

python pyqt qdialog
PyQt5 - Show QDialog from a different class

My app consist of a QMainWindow with a QToolBar. My purpose is to click on a QToolBar element and open …

qt python-3.x pyqt5 qdialog
PyQt5: How to open a new Dialog with button click

import sys from PyQt5.QtCore import pyqtSlot from PyQt5.QtWidgets import QApplication, QDialog from PyQt5.uic import loadUi class LoginPage(…

python pyqt pyqt5 qpushbutton qdialog