Results 1 to 1 of 1

Thread: Register custom types ?!

  1. #1
    Join Date
    Apr 2009
    Posts
    206
    Thanks
    34
    Thanked 2 Times in 2 Posts

    Default Register custom types ?!

    Hello friends,

    I have a c++ class in which I create a com object as member variable.

    How can I dispatch the com object type to qml and from qml to another c++ Class?

    So my problem is
    QMetaProperty::read: Unable to handle unregistered datatype 'ComObjectPtr' for property 'MyClass::getObject'
    ComObjectPtr is a typedef:

    Qt Code:
    1. typedef MDLib::IObjectPtr ComObjectPtr;
    To copy to clipboard, switch view to plain text mode 

    Yours,

  2. The following user says thank you to codeman for this useful post:


Similar Threads

  1. Qt QDbus Sending Custom Types with QVariant
    By phil999 in forum Qt Programming
    Replies: 2
    Last Post: 30th December 2012, 18:31
  2. Using QDataWidgetMapper with custom types
    By Zanyinj in forum Qt Programming
    Replies: 2
    Last Post: 25th August 2011, 09:42
  3. QItemEditorFactory and custom enum types.
    By hickscorp in forum Qt Programming
    Replies: 4
    Last Post: 7th August 2011, 16:08
  4. Working with QDBus and custom types
    By JuBe in forum Qt Programming
    Replies: 2
    Last Post: 26th March 2009, 16:20
  5. QVariant types support for custom properties
    By Dusdan in forum Qt Tools
    Replies: 9
    Last Post: 11th January 2006, 09:55

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.