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

Qml in qt widgets

$
0
0
Hello guys, im trying to display qml object on std qt widget. I found some tips on the net but still app doesn’t work. ///< ----         my code     this->vbox_main=new QVBoxLayout();       //layout generation     this->viewQML = new QQuickView();     this->containerQML = QWidget::createWindowContainer(this->viewQML, this);     this->containerQML->adjustSize();     this->containerQML->setFocusPolicy(Qt::TabFocus);     this->viewQML->setSource(QUrl("UpdateAnim.qml"));     this->vbox_main->addWidget(this->containerQML,1,Qt::AlignHCenter);         this->label_status=new QLabel(this);     this->label_status->setText("Status");     this->vbox_main->addWidget(this->label_status,1,Qt::AlignHCenter);       this->setLayout(this->vbox_main);     this->setMinimumSize(400,200); ///< ----        the end of my code Does anybody know what im doing wrong ? Best regards Thomas [edit: Added missing coding tags @ SGaist]

Viewing all articles
Browse latest Browse all 4972

Trending Articles