Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. swipeview setcurrentindex not changing the view

swipeview setcurrentindex not changing the view

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 324 Views
  • 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.
  • G Offline
    G Offline
    Gibbz
    wrote on last edited by
    #1

    I have a swipe view which I can sometimes change with swipe_view.currentIndex = 1. But using the same code from a button inside the swipe_view does not work.
    I am guessing this is because the button steals focus, and then prevents the swipe_view from changing index?
    How can I remove the focus so that the code works correctly?

    J.HilkJ 1 Reply Last reply
    0
    • G Gibbz

      I have a swipe view which I can sometimes change with swipe_view.currentIndex = 1. But using the same code from a button inside the swipe_view does not work.
      I am guessing this is because the button steals focus, and then prevents the swipe_view from changing index?
      How can I remove the focus so that the code works correctly?

      J.HilkJ Offline
      J.HilkJ Offline
      J.Hilk
      Moderators
      wrote on last edited by
      #2

      @Gibbz can you show the code of your swipe view, that is not working?


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      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