Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. swipeview

    Log in to post
    • All categories
    • M

      Unsolved access to swipeview children from outside of it
      QML and Qt Quick • qml swipeview rectangle • • MABahar

      2
      0
      Votes
      2
      Posts
      155
      Views

      dheerendra

      Modify the Repeater as

      Repeater{ id : rep1 Page { property alias myrect : pgrect

      Access each element inside the repeater using rep1.itemAt(index).

    • jeanmilost

      Unsolved How to stop the tab order to be propagated through SwipeView pages?
      QML and Qt Quick • tab key tab switching tab order swipeview • • jeanmilost

      1
      0
      Votes
      1
      Posts
      122
      Views

      No one has replied

    • jeanmilost

      Unsolved Sometimes page animation is not running when currentIndex is changed on a SwipeView
      QML and Qt Quick • swipeview currentindex animation • • jeanmilost

      1
      0
      Votes
      1
      Posts
      177
      Views

      No one has replied

    • Rcc21

      Solved SwipeView with dynamic "interactive" breaks "currentIndex" binding
      QML and Qt Quick • qml qml binding swipeview • • Rcc21

      4
      2
      Votes
      4
      Posts
      1076
      Views

      Rcc21

      I'm linking the StackOverflow question and the Qt Bug

      This is the workaround suggested:

      onCurrentIndexChanged: { if (currentIndex === 0) { Qt.callLater(function() { interactive = false }) } else { Qt.callLater(function() { interactive = true }) } }
    • B

      Unsolved SwipeView reaching the end of the list
      QML and Qt Quick • swipeview • • Blutimauge

      2
      0
      Votes
      2
      Posts
      499
      Views

      J.Hilk

      Hi @Blutimauge
      and welcome.

      I think SwipeView may be the wrong component for your use case.
      I would suggest looking into Flickable or the derived forms ListView/GridView.

      They handle end bouncing and continuous flow much better, as in it's build in. IIRC

    • G

      Unsolved SwipeView gets confused when opening a new Window
      QML and Qt Quick • swipeview • • GregVR

      2
      0
      Votes
      2
      Posts
      216
      Views

      G

      Just to sit and answer my own question (but also trying to contribute to the forum's knowledge!)...

      I figured out that if I set interactive: false in the SwipeView, then everything works correctly-- it's just that you can't use your mouse to swipe left and right, which, could be argued, wouldn't be correct behavior in a windows/pointer desktop approach anyway.

      I'm guessing that there is something odd that happens in SwipeView when another window is opened. We are planning on targeting a touchscreen/fullscreen version eventually, in which case setting interactive: true and switching the Window creation to Popups would be the right thing to do anyway.

      I'm leaving as unsolved for now, just because I'm curious if anyone has any other ideas.

    • P

      Unsolved Drawer as child inside a SwipeView
      QML and Qt Quick • swipeview drawer freeze • • podkiva

      1
      0
      Votes
      1
      Posts
      679
      Views

      No one has replied

    • P

      Solved QML SwipeView is covering entire window
      QML and Qt Quick • qtquick control swipeview qtquick2 qml • • pra7

      4
      0
      Votes
      4
      Posts
      3239
      Views

      Yashpal

      @pra7 said in QML SwipeView is covering entire window:

      w

      That's cool. This solution you came up with is perfect.

    • Steve Fallows

      Unsolved How do I share object between pages of a SwipeView?
      QML and Qt Quick • swipeview scope • • Steve Fallows

      6
      0
      Votes
      6
      Posts
      2538
      Views

      Julien B

      @Steve-Fallows,

      Just to clarify is receptorPath_textField also an id?

      in that case your code

      CTPanel { id: ct_panel Component.onCompleted: { ct_panel.setUp() // Complete set up of the C++ object console.log("CT Panel component completed.") } receptorPath: receptorPath_textField.text }

      should work wherever it is placed (in the same qml file).

      if receptorPath_textFieldis is a grouped property from CalibrationPageForm and the id of the page is page

      Have tou tried?

      CalibrationPageForm { id: page receptorPath_textField.text: settings.receptorPath } CTPanel { id: ct_panel Component.onCompleted: { ct_panel.setUp() // Complete set up of the C++ object console.log("CT Panel component completed.") } receptorPath: page.receptorPath_textField.text }
    • Phoenox

      Solved Disabling swipe for QWebEngineView
      QML and Qt Quick • swipeview swipe qml qt quick webengineview • • Phoenox

      2
      0
      Votes
      2
      Posts
      1967
      Views

      jpnurmi

      First a note that SwipeView and its base type Container have gained some new members in Qt Quick Controls 2.1 in the upcoming Qt 5.8. These will help with your tasks:

      SwipeView::interactive Container::incrementCurrentIndex() Container::decrementCurrentIndex()

      For the time being, you could add the following binding as a temporary workaround until you will be able to use the new public interactive property:

      Binding { property: "interactive" target: swipeView.contentItem value: swipeView.currentIndex !== indexOfWebEngineView }
    • lollypolly

      Solved SwipeView shows neighbor pages even if they are not current page
      QML and Qt Quick • quick controls swipeview • • lollypolly

      3
      0
      Votes
      3
      Posts
      1491
      Views

      lollypolly

      @jpnurmi, thanks a lot, already found this property. But had limit in 300 seconds to reply. Seems like u are guru of QML :)