Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

Create Qt Quick Controls fully programmatically?

$
0
0
Great, works. Thanks! TestObject:: TestObject(QQuickItem *parent) : QQuickItem (parent) {    this->setFlag(ItemHasContents, true); }   QSGNode * TestObject::updatePaintNode(QSGNode *node, UpdatePaintNodeData *) {      QSGSimpleRectNode *pNode = static_cast<QSGSimpleRectNode *>(node);    if (! pNode) {       pNode = new QSGSimpleRectNode();       pNode->setColor(Qt::red);    }    pNode->setRect(boundingRect());    return pNode; }

Viewing all articles
Browse latest Browse all 4972

Trending Articles