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. Scrollable pages on iPhone - Qt C++

Scrollable pages on iPhone - Qt C++

Scheduled Pinned Locked Moved Solved Mobile and Embedded
3 Posts 2 Posters 705 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.
  • R Offline
    R Offline
    reezeus
    wrote on last edited by
    #1

    Hello

    I've built a small app for iOS using Qt and C++. The app works and provide the information needed.
    However the design is 1) very simple and 2) not taking advantage of what a "mobile view" should be. Mainly, I don't know how to do to have scrollable pages. So everytime I need to add a new type of info, I have to create a new tab (I'm using a QStackedWidget) because all the data I want to display doesn't fit on one page. Every single window is a subclassed QWidget.
    Can you please give some insights on how to scroll vertically a QWidget window (or maybe should I use another container?) on an iPhone?

    Thanks in advance

    reez

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You are likely looking for QScrollArea.

      However if you're on mobile and depending on your needs, you might want to consider using QtQuick.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • R Offline
        R Offline
        reezeus
        wrote on last edited by
        #3

        Thanks a lot SGaist,
        Implemented and works great now. Took me some time to find QScroller::grabGesture for one finger scroll, but all fine now :).

        reez

        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