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. How to load leveled qml file into main qml?
Forum Updated to NodeBB v4.3 + New Features

How to load leveled qml file into main qml?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 2 Posters 732 Views 2 Watching
  • 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.
  • N Offline
    N Offline
    NTMS
    wrote on last edited by
    #1

    Hi, maybe my question is bit awkward. But I need to load leveled qml into main.qml as shown below picture. But its not loading. Any help please?

    • Main.qml
    • MainPageBG.qml
    • mainui Folder
      • HeaderWidget.qml
      • MapWidget.qml

    0_1521036762022_qmlLoader.jpg

    Folder View:
    0_1521036809254_FolderView.jpg

    raven-worxR 1 Reply Last reply
    0
    • N NTMS

      Hi, maybe my question is bit awkward. But I need to load leveled qml into main.qml as shown below picture. But its not loading. Any help please?

      • Main.qml
      • MainPageBG.qml
      • mainui Folder
        • HeaderWidget.qml
        • MapWidget.qml

      0_1521036762022_qmlLoader.jpg

      Folder View:
      0_1521036809254_FolderView.jpg

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by raven-worx
      #2

      @NTMS
      did i understand you correctly that you want to show the MapWidget component as overlay on top of all the other elements?
      Since you are using ApplicationWindow already you can use the attached properties ApplicationWindow.contentItem or Overlay.overlay as the parent of the item

      Also note that in your code the Loader item is stacked behind MainPageBG element

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      0
      • N Offline
        N Offline
        NTMS
        wrote on last edited by
        #3

        @raven-worx thanks. my loader item is not stacked behind any other element. And its working.

        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