Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Making desktop app with 2 sections "swipeable" on mobile app

Making desktop app with 2 sections "swipeable" on mobile app

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 158 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.
  • O Offline
    O Offline
    oin-oin
    wrote on last edited by
    #1

    Greetings,

    I want to create a small application similar to an adding machine which ideally will run on a desktop as well as on a mobile device.

    On the desktop, it looks similar to the ascii art rendering below:

    +----------------+---------------+
    |                |       123.45  |
    |                +---------------+
    |                | mc  m+  mr  / |
    |    120.23 +    |               |
    |      3.22 =    |  1  2  3    * |
    |    123.45      |  4  5  6    - |
    |                |  7  8  9    + |
    |                | +/- 0  .    = |
    |                |               |
    +----------------+---------------+
    
    

    On the left hand side (LHS) is the "paper tape" with a scrollbar, and on the right hand side (RHS) are the calculator's buttons.

    For a mobile device, I would like to have the paper tape "swipeable", by that I mean that either a swipe left or right toggles from the paper tape view to the calculator button view.

    For the desktop version, I see a MainWindow with 2 widget containers, one for the LHS, and another for the RHS.

    Since this will be my first time ever mobile app (and qt), what is the right approach to make the LHS and RHS "swipeable" ?

    I should add that I've basically coded the desktop version all in C++...

    Pl45m4P 1 Reply Last reply
    0
    • O oin-oin

      Greetings,

      I want to create a small application similar to an adding machine which ideally will run on a desktop as well as on a mobile device.

      On the desktop, it looks similar to the ascii art rendering below:

      +----------------+---------------+
      |                |       123.45  |
      |                +---------------+
      |                | mc  m+  mr  / |
      |    120.23 +    |               |
      |      3.22 =    |  1  2  3    * |
      |    123.45      |  4  5  6    - |
      |                |  7  8  9    + |
      |                | +/- 0  .    = |
      |                |               |
      +----------------+---------------+
      
      

      On the left hand side (LHS) is the "paper tape" with a scrollbar, and on the right hand side (RHS) are the calculator's buttons.

      For a mobile device, I would like to have the paper tape "swipeable", by that I mean that either a swipe left or right toggles from the paper tape view to the calculator button view.

      For the desktop version, I see a MainWindow with 2 widget containers, one for the LHS, and another for the RHS.

      Since this will be my first time ever mobile app (and qt), what is the right approach to make the LHS and RHS "swipeable" ?

      I should add that I've basically coded the desktop version all in C++...

      Pl45m4P Offline
      Pl45m4P Offline
      Pl45m4
      wrote on last edited by
      #2

      @oin-oin

      This might help

      • https://doc.qt.io/qt-6/gestures-overview.html
      • https://doc.qt.io/qt-6/qswipegesture.html#details

      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      O 1 Reply Last reply
      1
      • Pl45m4P Pl45m4

        @oin-oin

        This might help

        • https://doc.qt.io/qt-6/gestures-overview.html
        • https://doc.qt.io/qt-6/qswipegesture.html#details
        O Offline
        O Offline
        oin-oin
        wrote on last edited by
        #3

        @Pl45m4 OK, thanks for the pointers !

        1 Reply Last reply
        0
        • O oin-oin has marked this topic as solved on

        • Login

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