Closed jgrichard closed 2 years ago
When typing something in the combobox with PopupCompletion mode, the popup falls back to the default theme and not the material theme.
Code to reproduce:
import sys from PySide6 import QtWidgets, QtCore, QtGui from qt_material import apply_stylesheet class Combobox(QtWidgets.QComboBox): def __init__(self): super(Combobox, self).__init__() apply_stylesheet(self, 'dark_cyan.xml') self.setEditable(True) self.completer().setCompletionMode(QtWidgets.QCompleter.CompletionMode.PopupCompletion) self.addItems(['TEST 1','TEST 2','TEST 3']) if __name__ == '__main__': app = QtWidgets.QApplication() combobox = Combobox() combobox.show() app.exec() sys.exit()
Issue was setting apply_stylesheet on the QComboBox's self and not on the app variable.
QComboBox
self
app
When typing something in the combobox with PopupCompletion mode, the popup falls back to the default theme and not the material theme.
Code to reproduce: