Chris, as you did suggest, I created a project with this main.qml :
import QtQuick 2.0
Rectangle {
width: 100
height: 100
color: "red"
}
import QtQuick 2.0
Rectangle {
width: 100
height: 100
color: "red"
}
To copy to clipboard, switch view to plain text mode
and this is the main.cpp:
#include <QtGui/QGuiApplication>
#include "qtquick2applicationviewer.h"
int main(int argc, char *argv[])
{
QGuiApplication app(argc, argv);
QtQuick2ApplicationViewer viewer;
viewer.
setSource(QUrl("qrc:/qml/DeploymentProjectTest/main.qml"));
viewer.showExpanded();
return app.exec();
}
#include <QtGui/QGuiApplication>
#include "qtquick2applicationviewer.h"
int main(int argc, char *argv[])
{
QGuiApplication app(argc, argv);
QtQuick2ApplicationViewer viewer;
viewer.setSource(QUrl("qrc:/qml/DeploymentProjectTest/main.qml"));
viewer.showExpanded();
return app.exec();
}
To copy to clipboard, switch view to plain text mode
And these are the results:
Windows 8 Pro:
windows_8_DPT_screenshot.png
Windows XP:
windows_xp_DPT_screenshot.jpg
Bookmarks