Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Getting the list of methods of QmlDesigner::ModelNode from Qt Creator plugin
QtWS25 Last Chance

Getting the list of methods of QmlDesigner::ModelNode from Qt Creator plugin

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
2 Posts 2 Posters 348 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.
  • D Offline
    D Offline
    dzimiwine
    wrote on last edited by dzimiwine
    #1

    Hi,
    I am creating a QtCreator plugin for QmlDesigner which needs to get the list of methods (and signals) of selected objects. I am looking at the ModelNode and NodeMetaInfo classes but I don't see any way to get the list of methods (method name, return value, parameters). Could you help me out on this one?
    Thanks

    1 Reply Last reply
    0
    • T Offline
      T Offline
      Thomas Hartmann
      wrote on last edited by
      #2

      Hi,

      Unfortunately, NodeMetaInfo does not support enumerating methods. The code model does support this, though.
      You could add the functionality to NodeMetaInfo by extending the MemberProcessor and implementing processSlot() similar to how processSignal() is implemented.
      How to handle function parameters you can lookup in qmljseditor.cpp for the implementation of CodeModelInspector.

      1 Reply Last reply
      1

      • Login

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