0

any ideas how to get a list of available QML types

declared in an unqualified namespace via Import

as well as declared in the current document via component

it would be most convenient to get not only a list of names but also the list format

since it is very convenient

for example, I have a practice so I get a list of pure components and find out their names by which they are indicated in the document I would like to read such a list in the document

OtObject{


default property Component peer 
onPeerChanged: delegate.push(peer)
property list<Component> delegate
/*
   feature default which does not allow to get list<Component>
   but is bypassed because on default Component one comes at a time 
   and before before deleted it is possible to put it in the list
*/

onDelegateChanged:
{
    if(complete)
    {
         ...
         let object =  Qt.createObject( parent , delegate[index], establishment )
         let component_detector = name (object)
         Qt.destroy( object )
         ...
    }

function name(object)
{
    let name =  object.toString()
    let typename = name.substring(0, name.length -15 - object["objectName"].length - (object["objectName"].length>0)*4 )
    let liter_position = typename.indexOf("_QML")
    if( liter_position !== -1 )
    { typename = typename.substring(0, liter_position ) }
    return typename
}

}

I can explain in detail in the future how this can be used

postscript

import QtQuick
compoment Royalty_Button: MouseArea{...}

data interceptor format - two lists

1: [Item, Rectungle, MouseArea, ..... Royalty_Button ]

2: [Component, Component, Component, ...., Component ]

1
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. Commented Jun 19 at 9:18

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.