I have a QWizard and set of QWizardPages built with Designer. The pages have been promoted but that is not particularly relevant. In my page constructors:
#include <QFileDialog>
#include "importfilepage.h"
#include "ui_importfilepage.h"
ImportFilePage
::ImportFilePage(QWidget *parent
) : QWizardPage(parent),
m_ui(new Ui::ImportFilePage)
{
m_ui->setupUi(this);
// Cannot be set in Designer?
setPixmap
(QWizard
::LogoPixmap,
QPixmap(":/wizard/logo1.png"));
// Fields
registerField("fileName*", m_ui->fileNameEdit);
}
...
#include <QFileDialog>
#include "importfilepage.h"
#include "ui_importfilepage.h"
ImportFilePage::ImportFilePage(QWidget *parent) :
QWizardPage(parent),
m_ui(new Ui::ImportFilePage)
{
m_ui->setupUi(this);
// Cannot be set in Designer?
setPixmap(QWizard::LogoPixmap, QPixmap(":/wizard/logo1.png"));
// Fields
registerField("fileName*", m_ui->fileNameEdit);
}
...
To copy to clipboard, switch view to plain text mode
Does that help?
AFAICT there are some convenience things missing from the Designer, like setting pixmaps, but this doesn't stop you finishing the UI in code.
Bookmarks