Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-20306

QtCreator add new QML resource file (while file already exists)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • None
    • Qt Creator 4.6.0
    • Linux Mint 18.3 Sylvia, Cinnamon 64-bit

      Qt Creator 4.6.0

      Based on Qt 5.10.1 (GCC 5.3.1 20160406 (Red Hat 5.3.1-6), 64 bit)

      Built on Mar 27 2018 15:11:48
      From revision 3ac2aa7bb5

    Description

      Open QtQuick project in Qt Creator. Add a resource file from resource menu, Add new.

      Type in a file path of a file which already exists on disc.

      Qt creator accepts the file but the "file" added to resources contains the error message produces by error in opening the file.

      <RCC>
          <qresource prefix="/">
              <file>main.qml</file>
              <file>SpeedoMeter.qml&#xd;/Error in " Util.fileName('/home/jrs/work/ui/qml_ui/SpeedoMeter.qml&#xd;', 'qml')": SyntaxError: Expected token `)'</file>
          </qresource>
      </RCC> 

      Expected result would be to either to add the existing file, report an error or ignore the file (I wouldn't want to see the original file to be cleared because of an accident).

       

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            jrs jrs S
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes