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. Very large scrollable area
Qt 6.11 is out! See what's new in the release blog

Very large scrollable area

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 2 Posters 1.2k Views 3 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.
  • P Offline
    P Offline
    protocolmagic
    wrote on last edited by
    #1

    I'm implementing a timeline view which is zoomable. When zoomed in fully the scrollable area becomes much larger than the maximum window size, so I need to implement this myself. I have the rendering code done, but need to know what a classes I should use to construct this. (I have a GTK implementation that I'm moving to QT).

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

      Hi and welcome to Qt forum

      You mean what class for the scrolling part?

      This will do just that
      http://doc.qt.io/qt-5/qscrollarea.html#details

      1 Reply Last reply
      2
      • P Offline
        P Offline
        protocolmagic
        wrote on last edited by
        #3

        My experience with GTK at least was that the scrollable area was limited to 65k pixels in size, and I need something much larger, so I had to implement my own scrollable area / repaint code. Can QT handle unlimited size here? I need something on the order of 64 bits, thus all position and size variables should be 64 bit.

        Simon

        1 Reply Last reply
        0
        • mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi
          The pos is ints
          The max i could place a button on was 999999999 inside the scroll area.

          I assume you mean the scroll area control would be say 1920x1080 and the virtual area like
          100.000x100.000 ?

          1 Reply Last reply
          0
          • P Offline
            P Offline
            protocolmagic
            wrote on last edited by
            #5

            Yes - the scroll area could be 1920x1080 and the virtual area could be 100,000,000,000 x 100. (100 billion pixels across, larger than an int 32). This is why I believe I need a custom widget to do this, or a manual implementation.

            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