【问题标题】:Qt Installer with background picture带背景图片的Qt安装程序
【发布时间】:2021-07-21 20:39:57
【问题描述】:

我正在使用Qt Installer Framework 为我的应用程序详细说明安装程序。

我想在背景上显示一张图片,所以我设置了https://doc.qt.io/qtinstallerframework/ifw-globalconfig.html 上所示的Background 标签并将WizardStyle 设置为Mac,它看起来如下所示:

这里是config.xml

<?xml version="1.0" encoding="UTF-8"?>
<Installer>
    <Name>Stylesheet Example</Name>
    <Version>1.0.0</Version>
    <Title>Stylesheet Example</Title>
    <Publisher>Qt-Project</Publisher>
    <StartMenuDir>Qt IFW Examples</StartMenuDir>
    <TargetDir>@HomeDir@/IfwExamples/stylesheet</TargetDir>
    <WizardStyle>Mac</WizardStyle>
    <StyleSheet>style.qss</StyleSheet>
    <!-- <TitleColor>#FFFFFF</TitleColor> -->
    <WizardShowPageList>false</WizardShowPageList>
    <Background>background1.png</Background>
</Installer>

如何使半透明(白色)部分完全透明?

【问题讨论】:

    标签: javascript c++ xml qt qt-installer


    【解决方案1】:

    在您的 style.qss 文件中添加以下行:

    QFrame, QLabel, QToolTip {
        border: 0px;
        background-color: transparent;
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-07-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-11-17
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多