Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QML swipeview setting length of swipe
Forum Updated to NodeBB v4.3 + New Features

QML swipeview setting length of swipe

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 225 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Clueless
    wrote on last edited by
    #1

    How can I lengthen the distance a user must swipe? I have a 10" screen and 1/4" swipe will transition to the next screen.

    I have seen the setStartDragDistance, but that seems to be for QApplication

    main.cpp
    uses QGuiApplication
    then I load my initial QML

    QQmlApplicationEngine engine;
    engine.load(QUrl(QStringLiteral("qrc:/qml/main.qml")));
    

    Then I have an Item with SwipeView and then all my calls to Loader

    Item {
    id: mainMenu
    
    SwipeView {
        id           : swipeView
        anchors.fill : parent
        currentIndex : 0
    
         Loader { id : cameraScreen   ; active : false; asynchronous : true;  source : "qrc:/qml/CameraForm.qml"}
        Loader { id : climateScreen  ; active : false; asynchronous : true;  source : "qrc:/qml/ClimateForm.qml"}
    ...
    

    So, not sure if I should use a different implementation as the screens load and transition just fine, but would like the user to swipe a longer distance.

    Thanks!

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved