Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-2700

RCC Parse Error occurs with the qrc in the tutorial

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4: Low
    • 6.5.6, 6.8.0, 6.7.1
    • 6.7.0
    • Documentation
    • 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
    • Windows
    • 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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kleint Friedemann Kleint
            paroet Po Po
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes