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. Valid property value for designer plugin

Valid property value for designer plugin

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 934 Views 1 Watching
  • 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
    allanba
    wrote on last edited by
    #1

    Hello,

    I wrote and compiled a plugin for designer but when I try to use it it simply won't do anything when I drag it into the grid. I think is because of one of my properties,

    I declare it in the header file as:
    @
    Q_PROPERTY(uchar Octet READ octet WRITE setOctet)
    @

    And the definition:
    @
    public:
    void setOctet(uchar o)
    {
    m_octet = o;
    }

    uchar octet() const
    {
    return m_octet;
    }

    private:
    uchar m_octet;
    @

    Then in the domXml method:

    @
    " <property name="Octet" >\n"
    " <uchar>0</uchar>\n"
    " </property>\n"
    @

    I haven't been able to find a list of valid types for the properties so I assume that everything should work with any kind of datatype, am I right or are there limitations?

    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