5yutan5 / PyQtDarkTheme

A flat dark theme for PySide and PyQt.
https://pyqtdarktheme.readthedocs.io
MIT License
545 stars 84 forks source link

Painting Error in QtWidgets.QInputDialog.getText #235

Open R0yAdar opened 1 year ago

R0yAdar commented 1 year ago

The OK button is cut-off a little bit... I am on Windows 11 with PyQt6, and it works fine without the theme... Here's a picture of the problem:

image

R0yAdar commented 1 year ago

I solved it by using:

holder = QtWidgets.QWidget()
name, valid = QtWidgets.QInputDialog.getText(holder, 'Choose Folder Name', 'Name: ')

Instead of using the listview behind it as a parent.

Just to point out, it already worked without the theme, so it may still be a problem with the library...?

Nevertheless this is an easy solution.