Valid property value for designer plugin



  • 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?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.