View Single Post
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#17
Originally Posted by marmistrz View Post
OK. I'm starting to work it out. showStatusBar should be true, and only showFullScreen() in C++.
Is there any way I set the width of the buttons to be resized as the screen rotates? With Column only I set
Code:
width: parent.width
But with PageStackWindow the width is set well only after clicking the button pointing to the SelectionDialog. And
Code:
screen.width
is always 800 even after rotation (then it should be 480)

I finally worked it out with
Code:
    property int screenwidth: (screen.currentOrientation == Screen.Landscape) ? screen.displayWidth : screen.displayHeight
But I've got another problem. I want to divide the program into multiple files but
Files are:
main.qml - the main one, only PageStackWindow
mainView.qml - Page used by main.qml

And I'm getting
Code:
Can't find variable: mainView
I tried importing
Code:
import "."
import "mainView.qml"
import "mainView.qml" as mainView
But nothing works.
thanx in advance
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here