Hello,

In exposing my C++ objects to javascript, I have properties of types QSizeF, QColor and other Qt types:
Qt Code:
  1. class Control : public QGraphicsWidget{
  2. Q_OBJECT
  3. Q_PROPERTY (QSizeF size READ getSize WRITE setSize )
  4. Q_PROPERTY (QColor bgColor READ getBgColor WRITE setBgColor)
  5. ...
  6. }
To copy to clipboard, switch view to plain text mode 

These properties are converted to Variant in javascript, so this code won't work :
Qt Code:
  1. myControl = new Control();
  2. myControl.size.height = 40;
To copy to clipboard, switch view to plain text mode 

What do I have to do to access these properties in javascript? Do I have to set a default prototype for QSizeF and others, or do I have to create my own Size,Color, classes?

Thank you,