Created
June 19, 2012 08:16
-
-
Save arifsetiawan/2952963 to your computer and use it in GitHub Desktop.
startqml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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