본문 바로가기
Mastering GUI Programming with Python

Qt Designer

by 어린왕자1234 2022. 5. 7.

Qt Designer를 사용하면 GUI 구성 요소를 응용 프로그램으로 끌어다 놓고 코드를 전혀 작성하지 않고도 구성 할 수 있습니다. 선택적 도구이지만 prototyping에 유용하고 복잡한 GUI를 직접 코딩하는 것보다 바람직 할 수 있습니다.

 

 

 

Qt Designer Manual

 

doc.qt.io

Test out Qt Designer:

1. Designer 실행

   실행파일 위치 : python 설치 디렉토리\Library\bin\designer.exe

   예) C:\envs\win32_py37\Library\bin\designer.exe

   # 검색창에서 Designer 검색으로 검색 가능

2. MainWindow를 생성으로 프로그램 시작한다.

3. 왼쪽 창에서 기본 위젯을 base widget로 드래그한다.

4. 필요시 위젯의 크기를 조정하고 오른쪽 아래에 있는 속성 pane의 필요 속성을 변경한다.

5. 미리보기 실행 : Ctrl + R

Using Qt Designer

1.  Launch Qt Creator

2.  Select File | New File or Project

3.  Under Files and Classes, select Qt

4.  Choose Qt Designer Form

5.  Under Choose a Template Form, select Widget, then click Next

6.  Give your form a name and click Next

7.  Click Finish

 

'Mastering GUI Programming with Python' 카테고리의 다른 글

1  (0) 2022.07.28
QWidgets  (0) 2022.05.07
기본 실행  (0) 2022.05.06
Mastering GUI Programming with Python  (0) 2022.05.06