[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: About removing pyrcc in PyQt6
From: "Zhao Lee" <redstone-cold () 163 ! com>
Date: 2022-02-06 2:13:12
Message-ID: 9739f9e.394.17eccce7fac.Coremail.redstone-cold () 163 ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
[Attachment #4 (text/plain)]
If users set icons by selecting from qrc resource file in Qt Designer, then the .py \
file generated by pyuic would contain such code
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(":/icons/icon1.png"), QtGui.QIcon.Mode.Normal, \
QtGui.QIcon.State.Off)
But there is no pyrcc in PyQt6 to convert the qrc file to .py file to work together \
with the generated UI .py file, this somewhat hampered the convenience of Qt \
Designer, so I¡¯d suggest another consideration on removing pyrcc in PyQt6. If the \
pyrcc supporting work is not complex, would you mind getting it back(perhaps for \
convenience and back compatibility) ?
[Attachment #5 (text/html)]
<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div \
style="margin:0;"><br></div><div style="margin:0;"><div class="cl-preview-section" \
style="box-sizing: border-box; color: rgba(0, 0, 0, 0.75); font-family: Lato, \
"Helvetica Neue", Helvetica, sans-serif; font-size: 18px; \
font-variant-ligatures: common-ligatures; background-color: rgb(243, 243, 243);"><p \
style="box-sizing: border-box; margin: 0px 0px 1.2em;">If users set icons by \
selecting from qrc resource file in Qt Designer, then the .py file generated by pyuic \
would contain such code</p><pre style="box-sizing: border-box; font-family: \
"Roboto Mono", "Lucida Sans Typewriter", "Lucida \
Console", monaco, Courrier, monospace; font-size: 0.85em; margin-top: 1.2em; \
margin-bottom: 1.2em;"><code style="box-sizing: border-box; font-family: "Roboto \
Mono", "Lucida Sans Typewriter", "Lucida Console", monaco, \
Courrier, monospace; font-size: inherit; background-color: rgba(0, 0, 0, 0.05); \
border-radius: 3px; padding: 0.5em; display: block; text-size-adjust: none; \
overflow-x: auto; white-space: pre;">icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(":/icons/icon1.png"), QtGui.QIcon.Mode.Normal, \
QtGui.QIcon.State.Off) </code></pre></div><div class="cl-preview-section" \
style="box-sizing: border-box; color: rgba(0, 0, 0, 0.75); font-family: Lato, \
"Helvetica Neue", Helvetica, sans-serif; font-size: 18px; \
font-variant-ligatures: common-ligatures; background-color: rgb(243, 243, 243);"><p \
style="box-sizing: border-box; margin: 1.2em 0px;">But there is no pyrcc in PyQt6 to \
convert the qrc file to .py file to work together with the generated UI .py file, \
this somewhat hampered the convenience of Qt Designer, so I¡¯d suggest another \
consideration on removing pyrcc in PyQt6. If the pyrcc supporting work is not \
complex, would you mind getting it back(perhaps for convenience and back \
compatibility) ?</p></div></div><div style="margin:0;"><br></div><div \
style="margin:0;"><img \
src="cid:25efff8b$1$17eccce7fab$Coremail$redstone-cold$163.com" orgwidth="1142" \
orgheight="720" data-image="1" style="width: 849px; height: \
535px;"></div></div><br><br><span \
title="neteasefooter"><p> </p></span><br><br><span \
title="neteasefooter"><p> </p></span>
["image.png" (image/png)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic