을 만들의 디자인 내용과 함께 qt 디자이너 및 그 변환 모든 창이 파일 명령을 사용하여 pyuic5 예입니다.ui-o example.py 에서 얻을 수 있 Ui_Form 클래스고에서 호출 내 프로그램입니다. 그래서 모든 것은 작동하지만 이제 우리는 변화는 우리의 디자인 그리스 파일이 있습니다. 나의 질문가와 함께 작동하는 방법이스 파일이 변경하지 않고 이 개념이다. 이 있습 방법은 다음과 같은 pyuic5(을 얻을 수 Ui_Form 클래스)을 변환하는 프로그램입니다..에서 사용 pyqt5.
이것은 예의 오래된 응용 프로그램:
from main_screen import Ui_Form as Ui_main_screen
class MainScreen(QWidget, Ui_main_screen):
teachButton = False
manageButton = False
utilitiesButton = False
adminButton = False
helpButton = False
systemButton = False
inspectionButton = False
modelSelected = None
def __init__(self):
super(MainScreen, self).__init__()
#QWidget.__init__(self)
self.setupUi(self)
self.trans = QTranslator(self)
self.toLanguage()
self.product()
self.Menu() .....
당신이 볼 수있는,내가 가져온 Ui_Form 로 MainScreen 클래스입니다. 지금 제가 하고 싶와 같은 파일을 프로그램입니다..
import QtQuick 2.7
Item {
width:904
height:678
Image {
id: background
source: "images/background.png"
x: 0
y: 1
opacity: 1
}
Image {
id: logo
source: "images/logo.png"
x: 691
y: 34
opacity: 1
}
Image {
id: teach
source: "images/teach.png"
x: 717
y: 154
opacity: 1
}
Image {
id: administration
source: "images/administration.png"
x: 711
y: 410
opacity: 0.49803921568627
}
Image {
id: system
source: "images/system.png"
x: 708
y: 468
opacity: 0.49803921568627
}
Image {
id: utilities
source: "images/utilities.png"
x: 711
y: 353
opacity: 0.49803921568627
}
Image {
id: help
source: "images/help.png"
x: 712
y: 524
opacity: 0.49803921568627
}
Image {
id: teachinf_wizard
source: "images/teachinf_wizard.png"
x: 740
y: 196
opacity: 1
}
Image {
id: inspection
source: "images/inspection.png"
x: 713
y: 295
opacity: 0.49803921568627
}
Image {
id: manage
source: "images/manage.png"
x: 714
y: 239
opacity: 1
}
}
그래서 어떻게 뭔가를 얻기 위해 다음과 같 Ui_Form 클래스 파일을 프로그램입니다..