[SailfishDevel] Cover Page Strangeness
christopher.lamb at thurweb.ch
christopher.lamb at thurweb.ch
Tue Jun 18 16:03:03 UTC 2013
Hi Matt
thanks for the suggestion.
I should have said that this particular app is pure QML.
The main.cpp is posted at the bottom of this mail.
The project started life as a Harmattan project, is pure QML (apart
from one c++ property).
At the moment I am gradually introducing the Silica Look and Feel, but
the main.cpp and pro files still look more Harmattany than Silicay.
Chris
#include <QtGui/QApplication>
#include <QtDeclarative>
#include "qmlapplicationviewer.h"
Q_DECL_EXPORT int main(int argc, char *argv[])
{
#if defined(Q_OS_SYMBIAN)
int platformId = 0;
#elif defined(Q_WS_MAEMO_5)
int platformId = 1;
#elif defined(Q_WS_MAEMO_6)
int platformId = 2;
#elif defined(QT_WS_SIMULATOR)
int platformId = 3;
#elif defined(QT_SIMULATOR)
int platformId = 4;
#elif defined(Q_OS_MAC64)
int platformId = 5;
#elif defined(Q_WS_MEEGO)
int platformId = 6;
#else
// desktop probably
int platformId = 99;
#endif
QScopedPointer<QApplication> app(createApplication(argc, argv));
QmlApplicationViewer viewer;
viewer.rootContext()->setContextProperty("platform", platformId);
viewer.setOrientation(QmlApplicationViewer::ScreenOrientationAuto);
viewer.setMainQmlFile(QLatin1String("qml/landedsettings21/main.qml"));
viewer.showExpanded();
return app->exec();
}
Zitat von "Matt Austin" <mail at mattaustin.me.uk>:
> Hi Chris,
>
> On 18 June 2013 15:34, <christopher.lamb at thurweb.ch> wrote:
>> I press on this, return to the app, then drag back to the home
>> screen, this time I get a default cover page! (see attachment 2)
>
> I had the same issue, and realised that it only happened when I was
> using "setViewport(QGLWidget())" on my QDeclarativeView.
>
> I removed this line, and the app/cover seemed to work as expected.
> Maybe you're using QGLWidget too?
>
>
> Regards,
>
> --
> Matt
> mail at mattaustin.me.uk
>
More information about the Devel
mailing list