Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Adding "User information" to a QMetaProperty

Adding "User information" to a QMetaProperty

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.1k 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.
  • A Offline
    A Offline
    Asperamanca
    wrote on last edited by
    #1

    Is there any way to add "user information" to a QMetaProperty? That is, information which isn't relevant for the Qt property system itself, but which is nevertheless stored with the properties's meta information and accessible by code.

    In my case, I need a version information for each property (e.g. "exists since version 2.1")

    1 Reply Last reply
    0
    • G Offline
      G Offline
      guziemic
      wrote on last edited by
      #2

      Maybe a good solution for you will be "Q_CLASSINFO":http://doc.qt.digia.com/4.8-snapshot/qobject.html#Q_CLASSINFO

      I did not saw any possibility, to add some extra information to single property. But I also do not dig deeply into documentation.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Asperamanca
        wrote on last edited by
        #3

        Thanks, I wasn't aware of this. It's not exactly what I'm looking for, but I might find a way to make it work 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