I'm using PyQt5 to create a login window. The window showed all the font at a normal size before I got a new laptop, now this laptop has a much higher resolution for the monitor. I'm struggling to get the size of the text back to normal.
The checkbox text should save Remember Server Information, but it's cropped because it's too big and so if the version in the bottom right. The other Text is also much larger than normal.
I've tried to use StyleSheets to change the font-size. I've also tried this:
if hasattr(QtCore.Qt, 'AA_EnableHighDpiScaling'):
QtWidgets.QApplication.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling, True)
if hasattr(QtCore.Qt, 'AA_UseHighDpiPixmaps'):
QtWidgets.QApplication.setAttribute(QtCore.Qt.AA_UseHighDpiPixmaps, True)
which doesn't seem to make a difference whether I have that there or not. If anyone has any words of advice to get the text to scale normally again it would be very appreciated.
EDIT:
This is also happening the in Qt Designer Tool.