如何访问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 (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...