PyQt graphical layout

PyQt install third-party libraries

 

pip install PyQt5

 

 

Installation Qt Designer (Qt's layout tool)

 

pip install PyQt5-tools

 

 

PyChram Qt tool set

 

 

Configuring Qt Designer (Qt's layout tool)

Program fill a position of designer.exe just installed PyQt5-tools library

 

Configuration UIC (ui file transfer py file)

 

Parameters (ui file must be placed in the project, also generated under the project py file)

-m PyQt5.uic.pyuic $ProjectFileDir$\$FileName$ -o $ProjectFileDir$\$FileNameWithoutExtension$.py

 

Instructions

Be open Qt Designer interface layout

 

 

Qt Designer interface

 

After the completion of the layout document generated ui, ui transformed with PyUIC the document file py

 

Guess you like

Origin www.cnblogs.com/luocodes/p/11808147.html