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]
↧