We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Versions from your environment]
[If used, please inform their versions]
Python
[Description of the issue]
[A description, output ou image of the actual result]
[A description, output ou image of the expected/proposed result]
[A piece of code to reproduce and/or fix this issue]
import qdarkstyle from PyQt5.QtGui import QFont from PyQt5.QtWidgets import QApplication, QTableWidget, QPushButton, QTableWidgetItem, QVBoxLayout, QWidget class MyWindow(QWidget): def __init__(self, app=None): super().__init__() self.setWindowTitle("sample") self.table = QTableWidget() self.button = QPushButton("click me!") self.layout_ = QVBoxLayout() self.layout_.addWidget(self.table) self.layout_.addWidget(self.button) self.setLayout(self.layout_) self.setup_table() self.setup_button() self.app = app def setup_table(self): self.table.setGeometry(50, 50, 100, 200) self.table.setRowCount(4) self.table.setColumnCount(4) for row in range(4): for col in range(4): item = QTableWidgetItem(str((row + 1) * (col + 1))) self.table.setItem(row, col, item) def setup_button(self): self.button.setGeometry(50, 270, 100, 30) self.button.clicked.connect(self.on_button_clicked) def on_button_clicked(self): font = QFont() font.setPointSize(30) self.app.setFont(font) self.app.setStyleSheet(app.styleSheet()) if __name__ == '__main__': app = QApplication([]) window = MyWindow(app) window.resize(500, 400) window.show() font = QFont() font.setPointSize(20) app.setFont(font) palette = qdarkstyle.Palette() palette.ID = 'light' app.setStyleSheet(qdarkstyle._load_stylesheet(qt_api='pyqt5', palette=palette)) app.exec_()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe Your Environment
[Versions from your environment]
[If used, please inform their versions]
Language
Python
Description / Steps to Reproduce [if necessary]
[Description of the issue]
Actual Result
[A description, output ou image of the actual result]
Expected Results / Proposed Result
[A description, output ou image of the expected/proposed result]
Relevant Code [if necessary]
[A piece of code to reproduce and/or fix this issue]
The text was updated successfully, but these errors were encountered: