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

QPixmap load big images

Scheduled Pinned Locked Moved General and Desktop
qpixmaploadbig imagesmax size
5 Posts 2 Posters 3.4k Views 2 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.
  • D Offline
    D Offline
    david83390
    wrote on last edited by
    #1

    Hi everyone,

    I tried to load big images (.PNG) without success, after reading the QT documentation, I found that the QPixmap can't load the big images because QPixmap use the X-Server and my images can't be displayed by the server. Consequently, I have a blank screen in my QGraphicsScene.
    I'm on 32bit system and I want stay on a 32bit system (on the platform windows).
    So, I would like to know if it's possible to display a big image within the QGraphicsScene and if it's not possible, how to know (or calculate) the good size of each image, to display it on the QGraphicsScene.
    I can't split the original image in different images.

    Thanks in advance.

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      Stackoverflow says 32767x32767 is the max.

      1 Reply Last reply
      0
      • D Offline
        D Offline
        david83390
        wrote on last edited by
        #3

        Yes I saw that but in practice it's false. And I would like to know how to determine the size for resizing my image.

        1 Reply Last reply
        0
        • ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #4

          Sorry if this question is stupid, but do your images even fit in your computer's RAM and in your graphics card's RAM?

          1 Reply Last reply
          0
          • D Offline
            D Offline
            david83390
            wrote on last edited by david83390
            #5

            No and that's the point, I want to resize my image with the optimized size to display it.
            The size could be the size maximum that I can load depending on the memory available.
            And so my question is precisely, how to calculate this optimized size for resizing my image depending on the memory available, to display my image even if it is too large (in a QPixmap added within a QGraphicsScene through a QGraphicsPixmapItem)?

            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