Search Results

Search found 4 results on 1 pages for 'jhollanti'.

Page 1/1 | 1 

  • Qt inheriting from QGraphicsEllipseItem

    - by JHollanti
    I was trying to inherit from QGraphicsEllipseItem 'cause i wanted to add some functionality to it. However i was faced with this error, which probably has something to do with the compiler/precompiler or moc? error: 'staticMetaObject' is not a member of 'QGraphicsEllipseItem' And here's the class code: class MyEllipseItem : public QGraphicsEllipseItem { Q_OBJECT public: MyEllipseItem (const QRectF & outline) : QGraphicsEllipseItem(outline) { } };

    Read the article

  • C++ class pointer

    - by JHollanti
    I know that you can get a reference to a static method like this: typedef void (*pointer)(); pointer p = &MyClass::MyMethod; But is there a way to get a reference to the class itself?

    Read the article

1