如何解决如何访问Qt用于qtstylesheets小部件样式通过QPalette的边框颜色?
我可以通过def extractfiles(zipname,output_dir):
"""Extract files with 7z utils.
-aoa switch asks for automatic overwrite without prompting user.
"""
logging.info(f"Extracting {zipname} to {output_dir}")
pipe = Popen(["7z","x","-aoa","-bd",zipname,f"-o{output_dir}"],stderr=STDOUT,stdout=PIPE)
return(pipe.communicate())
def register_extensions():
"""Register additionnal archive formats supported by 7zip in shutil."""
shutil.register_unpack_format('rar',['.rar','.RAR'],extractfiles)
shutil.register_unpack_format('7z',['.7z','.7Z'],extractfiles)
使用Qt应用程序中使用的不同颜色来通过qtstylesheets(例如, G。类似QPalette
。但是,我没有找到用于绘制诸如background-color: palette(base)
或QGroupBox
之类的小部件的边框的颜色。
是否可以(通过QFrame
访问此颜色以用于qtstylesheets小部件样式?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。