Yes i am running it with QtCreater and no, i am not running another program in QtCreator. The problem would be probably that i’ve got a QMainWindow and i am trying to create a WindowedContainer with a QQuickView as it’s view and the QMainWindow as it’s parent? Is there any way to still make it work or is there another way to use a QtQuick 2.0 application inside a QMainWindow?
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
QQuickView *view = new QQuickView();
view->setSource(QUrl("testqml.qml"));
QWidget *container = QWidget::createWindowContainer(view, this);
container->show();
}
↧