Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Embedding one QML into another QML not working in Embedded Qt

Embedding one QML into another QML not working in Embedded Qt

Scheduled Pinned Locked Moved Solved Mobile and Embedded
embedded qteglfsopengl es2.0
5 Posts 3 Posters 1.6k 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.
  • S Offline
    S Offline
    Saisyam
    wrote on last edited by
    #1

    For example, I created a Rectangle QML file and want to use it in main QML. No errors are thrown or even app didn't crashed but the embedded QML is not rendered. My platform is custom Linux with EGLFS plugin on Qt Embedded 5.4

    ? 1 Reply Last reply
    0
    • S Saisyam

      For example, I created a Rectangle QML file and want to use it in main QML. No errors are thrown or even app didn't crashed but the embedded QML is not rendered. My platform is custom Linux with EGLFS plugin on Qt Embedded 5.4

      ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      @Saisyam Hi! Please show us your main.cpp and main.qml.

      1 Reply Last reply
      0
      • Z Offline
        Z Offline
        Zakaria
        wrote on last edited by
        #3

        hi,
        you can use Loader

        Rectangle {
            id : r1;
            anchors.fill: parent;
            Loader {
                   id :  l1;
                   anchors.fill : parent;
                   source : "page2.qml";
             }
        }
        

        this works for me on windows android linux

        1 Reply Last reply
        0
        • S Offline
          S Offline
          Saisyam
          wrote on last edited by
          #4

          Thanks for the reply. Apologies for responding so late. I will try and get back to you.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            Saisyam
            wrote on last edited by
            #5

            It is working fine. Thanks for the help

            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