Results 1 to 6 of 6

Thread: Filling QPixmap from an unsigned short array? QPixmap size limitations?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Filling QPixmap from an unsigned short array? QPixmap size limitations?

    Quote Originally Posted by hickscorp View Post
    2) Also, i have read somewhere that a QPixmap is limited in size to 2000x2000 pixels... Is it true? If yes, is there a workaround for this, knowing i'm using the QPixmap in a QGraphicsView linked to a QGraphicsScene?
    Yes, it happened to me. But the limitation is not strictly 2000x2000. On some computers was smaller.

    The workaround depends on what you are doing. I was drawing a very long raster on a widget ( sometimes 5-6000 pixels ). I solved it by splitting this one pixmap into an array of pixmaps, each 500 pixels wide ( could have been bigger, but just to be sure ). The, I painted all the pixmaps in the array next to each other, to obtain the same efect as if there was only one pixmap.

  2. The following user says thank you to marcel for this useful post:

    hickscorp (9th April 2007)

Similar Threads

  1. failing to achieve desired size of a BitField structure
    By nass in forum General Programming
    Replies: 8
    Last Post: 13th February 2007, 13:29
  2. unable to save QCStrings properly in a buffer
    By nass in forum Qt Programming
    Replies: 13
    Last Post: 15th November 2006, 20:49
  3. Tiff in unsigned short
    By spawnwj in forum Qt Programming
    Replies: 14
    Last Post: 26th July 2006, 07:41
  4. How to create QPixmap from unsigned character array?
    By rashidbutt in forum Qt Programming
    Replies: 4
    Last Post: 16th May 2006, 18:25

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.