qwizardpage

How to properly initialize a QWizard page?

落花浮王杯 提交于 2021-02-05 10:49:49
问题 I am having problems with sending data from one QWizard page to the next. I'm using a variable my_name of QWizard object as a container. My approach is: whenever I change text of QLineEdit on Page1 , the variable my_name of my QWizard object changes. And whenever I click Next button on Page1 , Page2 is initialized using the method QWizard.initializePage(2) . But the QLabel object on Page2 is not update based on the my_name variable of QWizard object. Even though I have initialized the Page2

PyQT trouble passing filenames across QWizardPage

巧了我就是萌 提交于 2019-12-11 23:38:31
问题 I am trying to have the user upload a file to the application on one QWizardPage, and then be able to re-use that same file path on another QWizardPage. However, from my code class ExecutePage(QtWidgets.QWizardPage): def __init__(self,*args,**kwargs): super().__init__() def initializePage(self): self.setTitle("Choose file to execute") self.setSubTitle("Please choose a file to execute") self.myTextBox = QtWidgets.QTextEdit(self) self.myTextBox.setGeometry(QtCore.QRect(100, 0, 350, 50)) self

How to load a Qt Designer file (.ui) in a QWizardPage using PySide2

旧时模样 提交于 2019-12-11 05:14:12
问题 I want to design my QWizardPages in Qt Designer and I want to load them into my Python program with PySide2. Previously I have been using PyQt5 without any problems but making the switch to PySide2 seems harder then expected. The problem I am facing is that when I am adding a QWizardPage to my QWizard , the page is indeed added to the Wizard, but also an other (empty) page is added. I'm not able to find what I'm doing wrong so I was wondering if someone can have a look. I have tried to add