Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. resolvedUrl is unexpectedly prefixed
Forum Updated to NodeBB v4.3 + New Features

resolvedUrl is unexpectedly prefixed

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 315 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jozef Mlich
    wrote on last edited by Jozef Mlich
    #1

    Hi,

    I am confused by behaviour of Qt.resolvedUrl function.
    I have added following code to two places in my source code (the same application). In first case it prints expected value. Second time is 'usr' added into the path.

    Component.onCompleted: {
        console.log(Qt.resolvedUrl("/"));
    }
    

    When I add it here, the produced output is expected:
    https://github.com/nemomobile-ux/glacier-settings/blob/0529b434afb54cb0c136ee1e5515fb5ea33d795d/src/qml/glacier-settings.qml#L201

    qml: file://
    

    Here it produces unexpected output:
    https://github.com/nemomobile-ux/glacier-settings/blob/0529b434afb54cb0c136ee1e5515fb5ea33d795d/src/plugins/about/about.qml#L200

    qml: file://usr/
    

    I was checking if there is some context settings, but code goes to deep for me. Have anyone seen this kind behaviour. What is causing it? How can I fix it?

    By the way the issue occurs inside of plugin.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved