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
Forum Updated to NodeBB v4.3 + New Features

QPixmap size limit

Scheduled Pinned Locked Moved Solved General and Desktop
qpixmapsize
6 Posts 3 Posters 1.7k 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 18 Jun 2019, 06:27 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

    J 1 Reply Last reply 18 Jun 2019, 06:37
    0
    • G Gianluca86 0
      18 Jun 2019, 06:27

      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

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 18 Jun 2019, 06:37 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
      • M Offline
        M Offline
        mrjj
        Lifetime Qt Champion
        wrote on 18 Jun 2019, 06:37 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 18 Jun 2019, 06:59 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?

          M 1 Reply Last reply 18 Jun 2019, 07:07
          0
          • G Gianluca86 0
            18 Jun 2019, 06:59

            @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?

            M Offline
            M Offline
            mrjj
            Lifetime Qt Champion
            wrote on 18 Jun 2019, 07:07 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 18 Jun 2019, 07:27
            1
            • M mrjj
              18 Jun 2019, 07:07

              @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 18 Jun 2019, 07:27 last edited by
              #6

              @mrjj Thanks for the help

              1 Reply Last reply
              1

              1/6

              18 Jun 2019, 06:27

              • Login

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