0
나는 OS 프로그래밍을 돛새치 비교적 새로운 오전과 사용자가 제공 한 옵션에 따라 새 페이지를 열기위한 silicaFlickable를 사용하는 동안 : output of multiple screensPagestack.push() 문제
여러 개의 화면 출력과는 찾을 수 없습니다 오전 참조 Qt의 문서화에 도움이되는 내용. 내 코드는 다음과 같습니다
ApplicationWindow
{
id: mainPage
SilicaFlickable{
anchors.fill: parent
PullDownMenu {
id:pullDownMenu
MenuItem{
id: decimalTo
text: qsTr("Decimal")
onClicked: pageStack.push(Qt.resolvedUrl("./pages/Decimal.qml"))
}
MenuItem{
id:binaryTo
text: qsTr("Binary")
onClicked: pageStack.push(Qt.resolvedUrl("./pages/Binary.qml"))
}
}
/*cover: Qt.resolvedUrl("cover/CoverPage.qml")
allowedOrientations: defaultAllowedOrientations*/
Column{
anchors.fill: parent
anchors.margins: Theme.paddingLarge
spacing: Theme.paddingLarge
PageHeader{
title: "Number system convertor"
}
Label
{
width: parent.width
anchors.leftMargin: Theme.paddingLarge
anchors.rightMargin: Theme.paddingLarge
horizontalAlignment: Text.AlignHCenter
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
textFormat: Text.RichText
text: "Please select the input number system from the flickable menu. Pull down to see the options."
}
}
}
}
소수 또는 우리가 새 프로젝트를 만들 때 생성 얻을 현재 단지 기본 firstpage.qml 및 secondpage.qml 있습니다 열립니다 진 페이지를 참조하십시오. 도움이 될 것입니다. 추신 : 오랜 시간이 지난 후 코딩을 다시 시작하고 이것이 첫 번째 앱입니다.