5yutan5 / PyQtDarkTheme

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

Segmentation Fault when using example in README #238

Open DoubleF3lix opened 1 year ago

DoubleF3lix commented 1 year ago

I'm running Raspbian Buster, and I have PySide2 installed.

import sys

from PySide6.QtWidgets import QApplication, QMainWindow, QPushButton

import qdarktheme

app = QApplication(sys.argv)
# Apply the complete dark theme to your Qt App.
qdarktheme.setup_theme()

main_win = QMainWindow()
push_button = QPushButton("PyQtDarkTheme!!")
main_win.setCentralWidget(push_button)

main_win.show()

app.exec()

I executed this code line by line, but I crash with a Segmentation Fault when I get to the qdarktheme.setup_theme() line. Any ideas?