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. Retrieve QML code at runtime?
Qt 6.11 is out! See what's new in the release blog

Retrieve QML code at runtime?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 297 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
    jhayar
    wrote on last edited by
    #1

    let say I have below SampleItem.qml

    import QtQuick 2.15
    Item{
         property var item1
         Component.onCompleted:{
             console.log('i am other item') 
        }
    
    }
    

    Any way i can retrieve the full QML code without knowing its file or without using QFile

    in Javascript we can get element html code using innerHTML/ outerHTML is there an equivalent for QML for this ?

    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