Questions tagged [qwizard]

This tag should be used for questions about the QWizard class of the Qt library. This class is also present in the PyQt bindings for Qt.

QWizard is a class in the Qt C++ library to provide a simple framework for creating GUI wizards.

48 questions
1
vote
0 answers

return to a previously visited page in a QWizard using PySide2 (Qt)

I am doing a non linear wizard in python with QWizard using PySide2 (Qt). In some instances, I want to return to previously visited pages of the wizard. However I get the following error: QWizard::next: Page 0 already met QWizard::next does not…
Chappie
  • 11
  • 1
1
vote
1 answer

How to disable the back button for all pages of QWizard?

I want to disable all back buttons from my application. I found a solution only for the first and last page, but I can't disable it for all the pages. self.setOption(QWizard.NoBackButtonOnStartPage) self.setOption(QWizard.NoBackButtonOnLastPage) …
Alin
  • 25
  • 2
1
vote
1 answer

How can I unregister fields in python Qwizard?

I have an app using PyQt5 and Qwizard (I can't post the real app because I'm not allowed to) and this is the structure. I would like that the line edit in page 1 is a mandatory field unless the checkbox is checked. I tried registering the line edit…
Udi
  • 67
  • 8
1
vote
1 answer

How to use CustomButton to change QWizard page in Qt?

I have a QWizard with 2 custom buttons (on top of the Back\Next buttons). I wish that a click on my custom button will change to another QWizardPage. How do I do that? Thanks
RanH
  • 740
  • 1
  • 11
  • 31
1
vote
1 answer

How to run a QThread from QWizardPage and access field()

I need some advice to access the field(QString name) variable in QWizardPage from a QThread. I'm building some kind of an installer and I want to do the installing work in a separate Thread. My purpose: When reached the commit/install page, I want…
Tiger69
  • 11
  • 2
1
vote
1 answer

Connect QWizard.NextButton to custom method only on the first page

I have a three pages wizard. First page is BasicSettings(), second page is InstallPackages() and the last page is Summary(). I want the Next button on the first page to first execute a method named execute_venv_create() and then call the next page.…
Joey
  • 1,436
  • 2
  • 19
  • 33
1
vote
1 answer

Arguments passed to venv.create() have no effect when creating a virtual environment

I'm working on a PyQt5 wizard to create Python virtual environments. Creating the environment works. The arguments (for example, with or without pip, ...) are passed from a QCheckBox() to the create() function of the venv module that comes with…
Joey
  • 1,436
  • 2
  • 19
  • 33
1
vote
1 answer

How to put some validation on Qwizard finish button slot and get confirmation before qwizard finishing?

I try to put some validations on user inputs and display a summery of entered information and get confirm from user if all thing is right. I think i need to modify the slot of QWizard FinishButton but i cannot find the main slot. I try this way but…
YouRos
  • 23
  • 6
1
vote
2 answers

pyqt wizard registerfield as string and not integer

I am trying to create a Wizard using PyQt5 and I'm trying to make it so that the input entered by the user on one page influences what the user will see on the next page. However, when I try and do so, I only see the index value as opposed to the…
kashmoney
  • 412
  • 1
  • 5
  • 17
1
vote
1 answer

Disable enterkey for next button pyqt5 QWizard

I am making a Wizard in QWizard I have QLineEdit and QPushButton # Enter token self.enter_token_box = QLineEdit() # Enter token button self.btn = QPushButton('OK') # connect button to function, checks the…
johnashu
  • 2,167
  • 4
  • 19
  • 44
1
vote
1 answer

PySide2 QWizard non linear pages

I am trying to change my code from PyQt5 to PySide2. Most of the my scripts I simply have to change imports from PyQt5 to PySide2 and it works the same. However I tried to rework the licensewizard example in the Qt documentation from PyQt5 to…
1
vote
1 answer

PyQt obtaining collection of all registered fields in QWizard

I am working on a simple QWizard that displays some radio buttons on its pages. The buttons on a given page are all part of the same QButtonGroup. The page is registered as a custom field in itself, based on the selection in the button group: class…
Mad Physicist
  • 107,652
  • 25
  • 181
  • 264
1
vote
1 answer

PyQt: Get the id of a specific QWizard page

I order to design a non-linear wizard with pyqt4 I reimplemented the nextId() function from a PyQt4.QtGui.QWizardPage. self.page1.nextId = self.nextId_page1 def nextId_page1(self): if radio_button.isChecked(): return 2 return…
jonie83
  • 1,136
  • 2
  • 17
  • 28
0
votes
0 answers

QWizard with custom widgets

I implemented a small widget to allow users to select a file and show the path in a QLineEdit: class FileWidget(QWidget): fileChanged = pyqtSignal(str) filename = "" def __init__(self): super().__init__() …
Shelling
  • 429
  • 6
  • 13
0
votes
0 answers

QWizard/QWizardPage not displaying Logo

I want to use add an Logo to the QWizardPage, however nothing is displayed. I'm using PySide6. from PySide6.QtCore import Qt from PySide6.QtWidgets import (QVBoxLayout, QApplication, QWizardPage, QWizard) from PySide6.QtGui import (QIcon, QPixmap,…
agentsmith
  • 1,226
  • 1
  • 14
  • 27