如何取消nuke pyside中的字体阴影 [英] How to cancel font shadow in nuke pyside

查看:41
本文介绍了如何取消nuke pyside中的字体阴影的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 UI,它会在 nuke 中自动设置字体阴影,以及如何取消它.

I have a UI, which automatically sets font shadow in nuke, and how to cancel it.

我希望这个按钮上的字体看起来像这样,所以没有字体阴影.

I want the font on this button to look like this, so there is no font shadow.

这是我的代码,谢谢:)

This is my code,Thanks:)

# -*- coding:utf-8 -*-

from PySide import QtGui


class MyButton(QtGui.QDialog):
    def __init__(self,parent=None):
        super(MyButton, self).__init__(parent)

        v_layout = QtGui.QVBoxLayout(self)

        btn = QtGui.QPushButton("Submit")
        v_layout.addWidget(btn)

        self.setStyleSheet("""
        QPushButton{
            height: 50px;
            border: 0px solid rgba(255, 255, 255, 0);
            font-size: 18px;
            font-family: "Microsoft YaHei";
            border-radius: 4px;
            color: rgba(255, 255, 255, 255);
            background-color: #7cd1ef;
        }

        """)

if __name__ == '__main__':
    app=QtGui.QApplication([])

    mb = MyButton()
    mb.show()

    app.exec_()

推荐答案

这是 Nuke 使用的默认样式.要更改它,您需要设置不同的样式...像这样:

This is the default style that Nuke uses. To change it, you'll need to set a different style... like so:

self.setStyle(QtGui.QStyleFactory.create('Plastique'))

这篇关于如何取消nuke pyside中的字体阴影的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆