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. Include Folder Path in QML
Forum Updated to NodeBB v4.3 + New Features

Include Folder Path in QML

Scheduled Pinned Locked Moved Solved QML and Qt Quick
3 Posts 2 Posters 264 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.
  • V Offline
    V Offline
    Vijaykarthikeyan
    wrote on last edited by Vijaykarthikeyan
    #1

    I want to load a qml file which is in separate folder.How to include in the current or another filedsBuffer.bmp.png

    Here,I am trying to load the file which in joystick folder

    B 1 Reply Last reply
    0
    • B Bob64

      @Vijaykarthikeyan one approach is simply to import the folder using a relative filepath from the folder in which the importing component lives:

      import "Joystick"

      V Offline
      V Offline
      Vijaykarthikeyan
      wrote on last edited by Vijaykarthikeyan
      #3

      @Bob64 I found that..

      It should be like this:

      /resources/Joystick/main.qml
      
      1 Reply Last reply
      0
      • V Vijaykarthikeyan

        I want to load a qml file which is in separate folder.How to include in the current or another filedsBuffer.bmp.png

        Here,I am trying to load the file which in joystick folder

        B Offline
        B Offline
        Bob64
        wrote on last edited by
        #2

        @Vijaykarthikeyan one approach is simply to import the folder using a relative filepath from the folder in which the importing component lives:

        import "Joystick"

        V 1 Reply Last reply
        0
        • B Bob64

          @Vijaykarthikeyan one approach is simply to import the folder using a relative filepath from the folder in which the importing component lives:

          import "Joystick"

          V Offline
          V Offline
          Vijaykarthikeyan
          wrote on last edited by Vijaykarthikeyan
          #3

          @Bob64 I found that..

          It should be like this:

          /resources/Joystick/main.qml
          
          1 Reply Last reply
          0
          • V Vijaykarthikeyan has marked this topic as solved on

          • Login

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