PyQt5.WebEngine 相关

  import PyQt5
    from PyQt5 import QtCore, QtGui, uic, QtWidgets
    from PyQt5.QtWidgets import QWidget
 
    if hasattr(QtCore.Qt, 'AA_EnableHighDpiScaling'):
        PyQt5.QtWidgets.QApplication.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling, True)
 
    if hasattr(QtCore.Qt, 'AA_UseHighDpiPixmaps'):
        PyQt5.QtWidgets.QApplication.setAttribute(QtCore.Qt.AA_UseHighDpiPixmaps, True)
 
    class MyWindow(PyQt5.QtWidgets.QMainWindow):
        def __init__(self):
            super(MyWindow, self).__init__()

猜你喜欢

转载自blog.csdn.net/ieeso/article/details/82181630