Skip to content

Instantly share code, notes, and snippets.

@arifsetiawan
Created June 19, 2012 08:16
Show Gist options
  • Save arifsetiawan/2952963 to your computer and use it in GitHub Desktop.
Save arifsetiawan/2952963 to your computer and use it in GitHub Desktop.
startqml
BaseWidget::BaseWidget(QWidget *parent) :
QWidget(parent)
{
QVBoxLayout * l = new QVBoxLayout(this);
l->setContentsMargins(0, 0, 0, 0);
qmlRegisterType<SPageStatus>("AegisLabs", 1, 0, "PageStatus");
QmlApplicationViewer * viewer = new QmlApplicationViewer(this);
viewer->setMainQmlFile(QLatin1String("qml/LemesBuilder/main.qml"));
l->setGeometry(parent->geometry());
l->addWidget(viewer);
setLayout(l);
setGeometry(parent->geometry());
//arControl = new QAxWidget(viewer);
//arControl->setControl(CLSID_AR_CONTROL);
//qDebug() << "Camera available" << arControl->dynamicCall("getNumberOfCamsAvailable()");
//arControl->dynamicCall("activateCamera(int)",0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment