Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-56262

QUrl is depending on ::GetCurrentDirectory(...)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 5.5.1
    • Core: URL Handling
    • None
    • C++, WinAPI, VS2008

    Description

      Hello,
      I have this problem:
      1) I have a .qml file in directory C:\QML\any.qml

      2) I run my C++ App with QtQuick engine

      3) In App I open any image from \\NetComp\d\images and call ::SetCurrentDirectory() to this source folder

      4) In my App a call QQmlComponent.loadUrl( Url::fromLocalFile(C:\QML\any.qml) ) and failed because this path is relative(???) and qml file is looking for in \\NetComp\d\images directory

      How can I set absolute directory for qml file?

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            yeera Jiri Holota
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes