Details
-
Bug
-
Resolution: Fixed
-
P4: Low
-
6.7.0
-
None
-
Windows10
Python 3.10
pip install pyside6
PySide6==6.7.0
PySide6_Addons==6.7.0
PySide6_Essentials==6.7.0
shiboken6==6.7.0
-
-
cbdc4518c (dev), d0eb73170 (6.7), ac0965990 (tqtc/lts-6.5)
Description
https://doc.qt.io/qtforpython-6/tutorials/basictutorial/qrcfiles.html#the-qrc-file
causes the error.
pyside6-rcc icons.qrc -o rc_icons.py RCC Parse Error: 'icons.qrc' Line: 1 Column: 2 [Expected '?', '!', or '[a-zA-Z]', but got '/'.] 'C:\Users\Paro\Documents\qr_generator\env\Lib\site-packages\PySide6\rcc -g python icons.qrc -o rc_icons.py' returned 1
Actual code
</ui>
<!DOCTYPE RCC><RCC version="1.0">
<qresource>
<file>icons/play.png</file>
<file>icons/pause.png</file>
<file>icons/stop.png</file>
<file>icons/previous.png</file>
<file>icons/forward.png</file>
</qresource>
</RCC>
The following code fixes the error.
<!DOCTYPE RCC>
<RCC version="1.0">
<qresource>
<file>icons/play.png</file>
<file>icons/pause.png</file>
<file>icons/stop.png</file>
<file>icons/previous.png</file>
<file>icons/forward.png</file>
</qresource>
</RCC>
Attachments
For Gerrit Dashboard: PYSIDE-2700 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
557360,2 | Documentation/QRC tutorial: Fix error in .qrc file snippet | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
557446,2 | Documentation/QRC tutorial: Fix error in .qrc file snippet | 6.7 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
557592,2 | Documentation/QRC tutorial: Fix error in .qrc file snippet | tqtc/lts-6.5 | pyside/tqtc-pyside-setup | Status: MERGED | +2 | 0 |