diff --git a/src/plugins/python/images/qtforpython_neon.png b/src/plugins/python/images/qtforpython_neon.png new file mode 100644 index 00000000000..71a7299c391 Binary files /dev/null and b/src/plugins/python/images/qtforpython_neon.png differ diff --git a/src/plugins/python/pyside.cpp b/src/plugins/python/pyside.cpp index b2483c7cac6..d6ce264ccb4 100644 --- a/src/plugins/python/pyside.cpp +++ b/src/plugins/python/pyside.cpp @@ -128,20 +128,40 @@ void PySideInstaller::installPyside(const FilePath &python, } else { QDialog dialog; dialog.setWindowTitle(Tr::tr("Select PySide Version")); - dialog.setLayout(new QVBoxLayout()); - dialog.layout()->addWidget(new QLabel(Tr::tr("Select which PySide version to install:"))); + + // Logo for the corner in the QDialog + QPixmap logo(":/python/images/qtforpython_neon.png"); + QLabel *logoLabel = new QLabel(); + logoLabel->setPixmap(logo); + + QVBoxLayout *dialogLayout = new QVBoxLayout(); + QHBoxLayout *hlayout = new QHBoxLayout(); + hlayout->addWidget(logoLabel); + hlayout->addWidget(new QLabel("" + Tr::tr("Installing PySide") + "")); + dialogLayout->addLayout(hlayout); + + QLabel *installDescription = new QLabel(Tr::tr("You can install PySide " + "from PyPi (Community OSS version) or from your Qt " + "installation location, if you are using the Qt " + "Installer and have a commercial license.")); + installDescription->setWordWrap(true); + dialogLayout->addWidget(installDescription); + + dialogLayout->addWidget(new QLabel(Tr::tr("Select which version to install:"))); QComboBox *pySideSelector = new QComboBox(); - pySideSelector->addItem(Tr::tr("Latest PySide from the Python Package Index")); + pySideSelector->addItem(Tr::tr("Latest PySide from the PyPI")); for (const Utils::FilePath &version : std::as_const(availablePySides)) { const FilePath dir = version.parentDir(); const QString text = Tr::tr("PySide %1 Wheel (%2)").arg(dir.fileName(), dir.toUserOutput()); pySideSelector->addItem(text, version.toVariant()); } - dialog.layout()->addWidget(pySideSelector); + dialogLayout->addWidget(pySideSelector); QDialogButtonBox box; box.setStandardButtons(QDialogButtonBox::Ok | QDialogButtonBox::Cancel); - dialog.layout()->addWidget(&box); + dialogLayout->addWidget(&box); + + dialog.setLayout(dialogLayout); connect(&box, &QDialogButtonBox::accepted, &dialog, &QDialog::accept); connect(&box, &QDialogButtonBox::rejected, &dialog, &QDialog::reject); diff --git a/src/plugins/python/python.qrc b/src/plugins/python/python.qrc index 1a6da2a242b..6b0fe17637a 100644 --- a/src/plugins/python/python.qrc +++ b/src/plugins/python/python.qrc @@ -2,5 +2,6 @@ images/settingscategory_python.png images/settingscategory_python@2x.png + images/qtforpython_neon.png