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

Loading QML from resource fail on qdeclarative-boostable application

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • Qt Creator 2.4.1
    • Qt Creator 2.4.0
    • Quick / QML Support
    • Device: N9 PR 1.1 (20.2011.40-4_PR_009)
      QtSDK: 1.1.4
      OS: MacOS 10.6.8
    • b41237f01ef626381d8519f0703e54a4551f6c36

    Description

      When I modify a simple app created with the wizard, to load the main.qml from a resource file, instead of, load from deployment file, I got a black screen.

      If I back to load the QML from deployment file, works fine.

      //default, from wizard
      viewer->setMainQmlFile(QLatin1String("qml/boostable/main.qml"));
      
      //modifyed
      viewer->setSource(QUrl("qrc:/main.qml"));
      
      

      The resource file

      <RCC>
          <qresource prefix="/">
              <file alias="main.qml">qml/boostable/main.qml</file>
          </qresource>
      </RCC>
      
      

      Attachments

        Issue Links

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

          Activity

            People

              portale Alessandro Portale
              lamas3000 Andre Gomes Lamas Otero
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes