Hi, I am testing my mobile game application with a Symbian phone. It works fine whenever I use the emulator but when I tried remote device access I am having problems with the orientation. It should be like this:
and this is what I got:
only half the screen is occupied, I believe the phone sees the app as 360x640..
also tried to remove the landscape lock orientation on the .cpp file, I only got half of the screen filled and the orientation is in portrait. here's my .cpp file:
By the way, I set the base resolution of my QML objects to 640x360; here's the main.qml code:Code:#include <QtGui/QApplication> #include "qmlapplicationviewer.h" int main(int argc, char *argv[]) { QApplication app(argc, argv); QmlApplicationViewer viewer; //this is what I use to lock orientation: //viewer.setOrientation(QmlApplicationViewer::ScreenOrientationLockLandscape); viewer.setMainQmlFile(QLatin1String("qml/whacko/main.qml")); viewer.showExpanded(); return app.exec(); }
How can I make the landscape orientation go full screen on a phone? Thanks in advance!Code:import QtQuick 1.1 import com.nokia.symbian 1.1 import QtMobility.feedback 1.1 import QtMultimediaKit 1.1 Window { id: window width: 640 height: 360 //generalVariables PageStack { id: pageStack anchors.fill: parent } Component.onCompleted: { pageStack.push(Qt.resolvedUrl("mainScreenView.qml")) } }
--------------------------------------------------
SOLUTION:
I was previously using a pagestack on the original project. I made a new project with harmattan compatibility so I can have access to the orientation lock function. When the pagestack was still active, the result was the same. But when I removed the pagestack (on the new project) and used the back-end QML as the main page, I was able to get a full screen view of the application






