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. QPixmap size limit
Qt 6.11 is out! See what's new in the release blog

QPixmap size limit

Scheduled Pinned Locked Moved Solved General and Desktop
qpixmapsize
6 Posts 3 Posters 2.9k Views 1 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.
  • G Offline
    G Offline
    Gianluca86 0
    wrote on last edited by
    #1

    Hi,
    I need to use a QPixamp with a width of at least 35000, but if I read well from the documentation the QPixamp it is limited to 32768.
    Is there a way to overcome this limit?

    Thanks

    jsulmJ 1 Reply Last reply
    0
    • G Gianluca86 0

      Hi,
      I need to use a QPixamp with a width of at least 35000, but if I read well from the documentation the QPixamp it is limited to 32768.
      Is there a way to overcome this limit?

      Thanks

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Gianluca86-0 said in QPixmap size limit:

      QPixamp it is limited to 32768

      from where exactly do you have this information? Width and height are both int.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

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

        Hi
        As far as i know, there is no way to increase it.

        Can you explain what you need such large bitmap for ?
        It will take 1 GB of memory or more and be ultra heavy to do anything with.
        Maybe there is another way to archive what you want.

        1 Reply Last reply
        3
        • G Offline
          G Offline
          Gianluca86 0
          wrote on last edited by
          #4

          @mrjj: I need to create and manage images from 3000x50 mm to 400 DPi (even over 3 meters, but always at minimum height).
          I only see one image at a time on a QPainter, so I have no memory problems.
          I would like to avoid reducing the DPi or dividing the image into 2 or more QPixmaps, any suggestions?

          mrjjM 1 Reply Last reply
          0
          • G Gianluca86 0

            @mrjj: I need to create and manage images from 3000x50 mm to 400 DPi (even over 3 meters, but always at minimum height).
            I only see one image at a time on a QPainter, so I have no memory problems.
            I would like to avoid reducing the DPi or dividing the image into 2 or more QPixmaps, any suggestions?

            mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @Gianluca86-0
            Hi
            I think you will have to divide it into 2 or more to handle it.
            Not only due to the limitation in QPixmap but also due to limits from the operating system.

            G 1 Reply Last reply
            1
            • mrjjM mrjj

              @Gianluca86-0
              Hi
              I think you will have to divide it into 2 or more to handle it.
              Not only due to the limitation in QPixmap but also due to limits from the operating system.

              G Offline
              G Offline
              Gianluca86 0
              wrote on last edited by
              #6

              @mrjj Thanks for the help

              1 Reply Last reply
              1

              • Login

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