Answer the question
In order to leave comments, you need to log in
PyQt5 Small buttons. How to fix?
Made a calculator interface in Qt Designer. I converted it to Python with the command:
pyuic5 -x calc.ui -o main.py
Why are the buttons in Python so small and how to fix it?
Answer the question
In order to leave comments, you need to log in
def main_gui(args: argparse.Namespace):
QApplication.setAttribute(Qt.AA_EnableHighDpiScaling)
if __name__ == "__main__":
//перед созданием обьекта класа QApplication
QtWidgets.QApplication.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling, True)
//потом уже обьект
app = QtWidgets.QApplication(sys.argv)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question