Questions tagged [qinputdialog]

24 questions
0
votes
1 answer

Starting a QInputDialog from inside another thread and storing the inputted value into a variable

I have a function that is ran using the Worker method. Inside this function, there can be a condition that then requires the user to input a string and that string will be used in the function. I am able to get the QInputDialog to show up, but it…
0
votes
1 answer

How to close a QInputDialog with after a defined amount of time

I'm currently working on an application that run in the background and sometime create an input dialog for the user to answer. If the user doesn't interact, I'd like to close the dialog after 30 seconds. I made a QThread that act like a timer and…
LC297
  • 3
  • 4
0
votes
0 answers

How to move QInputDialog to centre of it's parent

I want my QInputDialog input move to the centre like in this VS code window But i can't move it properly like in the above picture, Here is my code import sys from PyQt6 import QtWidgets, QtGui, QtCore from PyQt6.QtWidgets import…
ABHIJITH EA
  • 308
  • 4
  • 13
0
votes
1 answer

How to set maximum length for QInputDialog Text

is it possible to restrict the length in a QInputDialog::getText? For example, I want to restrict the length from the user input to 10 characters directly in the InputDialog. Unfortunately, there isn't a function like…
Bamp
  • 25
  • 5
0
votes
1 answer

Is it possible to use QInputDialog with nested list or something like that?

All examples or documentation on PyQt5 QInputDialog I found, used simple classic lists limited to only one item per "row" (like in my code example ("Red","Blue" or "Green")). I am searching for a good way to build a more detailed multidimensional…
Kris
  • 27
  • 1
  • 6
0
votes
1 answer

qInputDialog make visible Unity taskbar and titlebar in fullscreen application

I'm trying to ask for a password the user in order to access a particular section, my application is fullscreen. The problem is that when the qInputDialog appears also the unity taskbar and the application titlebar appears. I want to avoid this and…
rok
  • 2,574
  • 3
  • 23
  • 44
0
votes
1 answer

Python/Pyqt5- Store selected dropdown option in variable

I am trying to run different if statements based off of whether the user selects "Basic" or "Advanced". Here is my code so far. I'll be using the advanced/basic options so I may do something like the following and store it in a function and then…
aking76
  • 67
  • 1
  • 10
0
votes
1 answer

How to restrict the content of QInputDialog::getText

I want to input Hex number with QInputDialog, and there is only getInt, getDouble, getItem and getString. Only the getSring can take in char like "a,b,c,d,e,f". However, is there someway to restrict getString only take 0~9||"a-f"
noodles guo
  • 459
  • 4
  • 11
-1
votes
1 answer

Is there a way to create an Input dialog in pyqt5 that does not close after clicking ok button

Is there any way I can create an Input Dialog with a comboBox that does not close after clicking the ok button. I tried using QInputDialog.setOption(QInputDialog[NoButtons, on=True]) That didn't work. I tried using a second window but couldn't…
1
2