Unsolved Swipe View Problem
-
I used swipe view control in the qml . I found that when I slide a page . the ui will carlton between two pages .
-
@Mr-.Wu What is carlton? Anyways, it would help if you gave self-contained example code which we could test.
-
Hi,
Can you post a code example?
Check out this code sample which demonstrates the basic use of a SwipeView. It uses the V-Play SDK, but the concept also applies to standard Qt SwipeViews.
Best,
Lorenz -
@Lorenz @Eeli-K There have only one qml file . Like this :
import QtQuick 2.7
import QtQuick.Controls 2.0
import QtQuick.Layouts 1.0ApplicationWindow {
visible: true
width: 240
height: 240
title: qsTr("Hello World")
flags: Qt.FramelessWindowHintSwipeView { id: swipeView anchors.fill: parent currentIndex: 0 Page { Rectangle { color: "red" anchors.fill: parent } } Page { Rectangle { color: "yellow" anchors.fill: parent } } Page { Rectangle { color: "blue" anchors.fill: parent } } Page { Label { text: qsTr("Second page") anchors.centerIn: parent } } } /* footer: TabBar { id: tabBar currentIndex: swipeView.currentIndex TabButton { text: qsTr("First") } TabButton { text: qsTr("Second") } } */
}
when I running on pc . it's ok . but when i running at arm device . the ui will carlton between two pages .
-
-
@Lorenz @Eeli-K i have uploaded test video
-
@Mr-.Wu I can't see the result or video, maybe because of an ad blocker, I can't read Chinese. But your code is good. It's very basic and should work IMO. What kind of arm device do you use?
-
@Eeli-K said in Swipe View Problem:
Can you tell me a network shared space . I upload the test video .Our arm device is : arm v7 . our device has no gpu.
-
@Mr-.Wu Don't bother with the video just for me, it's enough to know that you have some kind of an embedded device. In that case, can you give specifications for it? It probably has some kind of a touch screen, what kind? I don't think I can help, but maybe someone else can. And, by the way, we would have saved time and work if you had given all these details right away in your first post, so please try to be more verbose in the future, it's easier for everyone. (In this case the really important pieces were the description of the problem, the example code, that it works on a normal desktop, and specifications of your device where it doesn't work.)
-
@Eeli-K Our Tp specifications is capacitive screen . the drive ic is FT6x36 . the tp size is 240 * 240