qwizard

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

QWizard: Change height/dimensions of title field

白昼怎懂夜的黑 提交于 2021-01-28 12:26:59
问题 I'm currently trying to implement a simple "First steps" Wizard for a Python/Qt application I'm working on. This is really easy to do with Designer, but as usual the devil lies in the details. My problem is that the 'Title' field is way too big for me (~50% of the available screen estate). Here is a screenshot, and there the *.ui-file. I've already had a look at all the QWizard/QWizardPage properties and couldn't find anything that referred to the size/styling of the 'Title' field. Is there

QWizard: Change height/dimensions of title field

杀马特。学长 韩版系。学妹 提交于 2021-01-28 12:18:56
问题 I'm currently trying to implement a simple "First steps" Wizard for a Python/Qt application I'm working on. This is really easy to do with Designer, but as usual the devil lies in the details. My problem is that the 'Title' field is way too big for me (~50% of the available screen estate). Here is a screenshot, and there the *.ui-file. I've already had a look at all the QWizard/QWizardPage properties and couldn't find anything that referred to the size/styling of the 'Title' field. Is there

How to remove the horizontal line in a QWizard with a stylesheet?

≡放荡痞女 提交于 2020-01-14 18:56:37
问题 I am working on stylesheet of a QWizard and I would like to remove the horizontal line just above the push button. I've already posted a minimal example here, the question was solved by scopchanov from the minimal example, but I have some lines of code in my project that avoids the solution to work, so I post another question here. Here is my code ( the complete buildable example can be downloaded from the gist here ): licensewizard.h #include <QWizard> class LicenseWizard : public QWizard {

How to remove the horizontal line in a QWizard with a stylesheet?

旧巷老猫 提交于 2020-01-14 18:55:12
问题 I am working on stylesheet of a QWizard and I would like to remove the horizontal line just above the push button. I've already posted a minimal example here, the question was solved by scopchanov from the minimal example, but I have some lines of code in my project that avoids the solution to work, so I post another question here. Here is my code ( the complete buildable example can be downloaded from the gist here ): licensewizard.h #include <QWizard> class LicenseWizard : public QWizard {

How to remove the horizontal line in a QWizard?

可紊 提交于 2019-12-24 06:11:27
问题 I am working on stylesheet of a QWizard and I would like to remove the horizontal line just above the push buttons: I have tried to recursively browse all the widgets and set their border to none, but no widget seems to have this border. Here is my code ( the complete buildable example can be found here ): licensewizard.h #ifndef LICENSEWIZARD_H #define LICENSEWIZARD_H #include <QWizard> class LicenseWizard : public QWizard { Q_OBJECT public: enum { Page_Welcome }; LicenseWizard(QWidget

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