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

When creating a new QML-Application that contains special characters, invalid source files are generated

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • P3: Somewhat important
    • None
    • Qt Creator 2.1.0-rc1
    • Quick / QML Support
    • None
    • mac

    Description

      I am about to create my first QML-Plugin. I created a new QML-component project and entered the name "xxx-plugin". Creator uses this name in many places in the new generated project. A dash ('-') is neither allowed in C++ class names nor in QML-Types. Because of this, QtCreator created a bunch of files that do not build.

      I suggest one of the following workarounds:
      1) Replace invalid characters with X
      2) Do not accept such a project name

      Attachments

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

        Activity

          People

            portale Alessandro Portale
            axeljaeger Axel Jäger
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes