LoginSignup
13
32

More than 5 years have passed since last update.

[Python]Qt Designer簡単に使い方。

Posted at

こんばんは。。
pythonを使ってGUIを作る必要がありました。
いろんなGUIライブラリーありますよね?
私はその中でpyQtを選択して開発して簡単におわりました。

Qt Designer

Qt Designerの経路はここを参考してください。

Main Window 選択。

Main Window選択してボタンとラベルを簡単に仮面に

qtqt01.JPG

Ctrl + RでPreview

qtqt02.JPG

じゃあSaveしましょう。

qtqt03.JPG

uicフォルダーにコピーしましょう。

qtqt04.JPG

cmdで経路移動。

python -m PyQt5.uic.pyuic -x main_window.ui -o main_window.py

qtqt05.JPG

uiからpy登場。。

python main_window.py 

qtqt06.JPG

終わりに

今回はあんまり詳しくないのですが、
早くしやすいので、やってみてください。
実際に使ってみるととても開発速度も速かったしよかったです。

13
32
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
13
32