PyQt5 and QtGui module not found

前端 未结 6 673
谎友^
谎友^ 2020-12-03 11:30

Is there some reason that QtGui is packaged with PyQt5???

I am using Mark Summerfield\'s Rapid GUI programming book. Obviously this book was written with Qt4 in mind

6条回答
  •  自闭症患者
    2020-12-03 12:24

    Configure pyqt with this command:

    python[3] configure.py --qmake=[path to Qt5.x]/bin/qmake --verbose
    

    Whether a qt module builds or not depends on the configure.py's check. Take a look at the terminal output and you will find the reason why QtGui..QtWidgets was not installed correctly.

提交回复
热议问题