Questions tagged [qinputdialog]
24 questions
3
votes
1 answer
QInputDialog: OK and CANCEL Buttons: Removing button images for OK and Cancel
In QInputDialog how do I get rid of the icons in the OK and Cancel buttons?
Notice the the icons for cancel and ok. I looked through the properties button couldn't figure out how to remove them.

Ankur Shah
- 125
- 12
2
votes
1 answer
How to center QMessageBox and QInputDialog on the screen?
I have this function to center an object in the middle of the screen.
I want to center a QMainWindow, QInputDialog and a QMessageBox.
This is my MessageBox:
def _Warning(self,_type):
infoBox = QtWidgets.QMessageBox()
…

Alexis
- 117
- 2
- 7
2
votes
1 answer
QInputDialog & Threading ( worker, show dialog, wait for input, continue)
I have a question about a QInputDialog. I have spent the last 3 days on Google and thought it is time to ask here, since I cannot find any answer;
My application has a main thread (also known as the GUI-thread in Qt).
This GUI-thread creates a…

JaredNinja
- 79
- 10
1
vote
1 answer
How to return value of PyQt5 QInputDialog as input to a function
I am trying to make a simple gui for an AI assistant using PyQt5. In the gui I created a QPlainTextEdit to show the output of my Main program and created an QInputDialog to take user input. The output is working fine.
For the input I tried two…

Lily Johnson
- 11
- 2
1
vote
1 answer
Qt.FramelessWindowHint not working on QInputDialog
I'm learning PySide6 and I'm trying to create a frameless QInputDialog.
When I set:
from PySide6.QtCore import Qt
from PySide6.QtWidgets import QApplication, QInputDialog, QMainWindow
app = QApplication()
input_dialog =…

Filippo Boido
- 1,136
- 7
- 11
1
vote
1 answer
How to change the default text and the function of OK and Cancel button in QInputDialog
I use this line in my code to pop up the QInputDialog and take input from the user.
But I want to change the button on this pop-up dialogue
def add(self):
text, ok = QInputDialog.getText(self, " ", "Enter Value")
if text == "" or…

ABHINAV MEHTA
- 53
- 1
- 6
1
vote
1 answer
How to set background inactive and grey while i put a password to a QInputDialog in QT?
How to set background inactive and grey while i put a password to a QInputDialog in QT?
I have an qmainwindow app and i would like to do this. Thanks your help! :)
bool ok;
QString sPassword = QInputDialog::getText(this, "Enter Password",…

Kaguro
- 67
- 9
1
vote
1 answer
How to use QCompleter with an InputDialog?
I am writing a Python Application where the user can enter a String in an QInputDialog. How can i use the QCompleter to make Inputs easier?
I've already been searching on different websites and read the doc from…

timowin
- 27
- 5
1
vote
1 answer
PyQt5 - resize (limit maximum size) input dialog
I read this: How to resize QInputDialog, PyQt but it didnt work for me, as it seems to be about PyQt4
This is my code snipplet:
def ImportURL(self): #URL dialog aufrufen
InputDialog = QtWidgets.QInputDialog(self)
…

Flying Thunder
- 890
- 2
- 11
- 37
1
vote
1 answer
How can I detect the change of value in a QInputDialog?
I want to print the value when changing the value of the dialog called by the getInt method of QInputDialog.
I run the below code, but it is not working:
import sys
from PyQt5.QtCore import Slot
from PyQt5.QtWidgets import QApplication,…

LowQualityDelivery
- 129
- 7
1
vote
1 answer
PyQt Prevent QInputDialog from closing on ESC/Enter cross click
I created QInputDialog and configured event filter in it, but I don't know how to prevent it from closing on ESC or ENTER button click in eventFilter(self, widget, event) method.
self.inDialog = QInputDialog(self)
#some config...
…

TomKo1
- 214
- 2
- 14
1
vote
1 answer
How to add a QInputDialog in pyqt5 and get its value
from PyQt5 import QtCore, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(400, 300)
self.centralwidget = QtWidgets.QWidget(MainWindow)
…

Sally
- 87
- 2
- 10
1
vote
1 answer
How set options for a QInputDialog
I am trying to set some options for my QInputDialog. But if I call getText these settings have no effect.
How do I change the appearance of the window that pops up from getText?
import sys
from PyQt5 import QtWidgets, QtCore
class…

Jonas
- 1,838
- 4
- 19
- 35
1
vote
1 answer
Stylesheet a QInputDialog
Is it possible to style a QinputDialog?
I have the following code:
void calibratemotors::on_pushButton_shuttopen_manualent_clicked()
{
bool ok;
double shutopen_manenter = QInputDialog::getDouble(this, "getDouble",
…

sci-guy
- 2,394
- 4
- 25
- 46
0
votes
0 answers
QInputDialog QLocale
A customer of Latvia inputs text in QInputDialog using apostrophe as escape, which he claims is the common method for inputting text there. So apostrophe, followed by "a" should give "ā".
According to him, it works in all system dialogs, but not in…

charlie
- 68
- 2
- 8