Results 1 to 4 of 4

Thread: QPixmap size limitation

  1. #1
    Join Date
    Sep 2011
    Posts
    16
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default QPixmap size limitation

    Hi guys,

    I did a search and most people who encountered issues due to QPixmap size limitation seems to report the QPixmap is null or invalid. I tried to create a QPixmap on my machine (windows 7 64bit) and the QPixmap returned was of the correct size (i.e. 40000 width by 100 height). The issue I encountered was during the drawing stage where calling QPainter's drawPixmap or drawTiledPixmap would simply clip any bits of the image that is past 32000 (or around 32768) so the image gets partially drawn.

    Is this a known issue?

    Thuan

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Wiki edits
    17

    Default Re: QPixmap size limitation


  3. #3
    Join Date
    Sep 2011
    Posts
    16
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: QPixmap size limitation

    Thanks for the link. I do notice however, if I were to draw everything I intend to draw (ie QPainterPath) directly on the QPainter passed to the paint function of the QGraphicsWidget it seems to work fine. It's only if I draw the QPainterPath onto a QPixmap and then drawing the pixmap that is causing the clipping issue. Is drawing a path not using the raster-based paint engine?

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Wiki edits
    17

    Default Re: QPixmap size limitation

    Yes, possibly, but it is exercising different code paths that may be doing things slightly differently. The statement about short int limitations is a little vague "not guaranteed to be shown".

Similar Threads

  1. Maximum Size of QPixmap/QImage Windows
    By pssss in forum Qt Programming
    Replies: 5
    Last Post: 11th February 2011, 14:07
  2. QImage size limitation
    By JovianGhost in forum Qt Programming
    Replies: 3
    Last Post: 24th March 2010, 13:01
  3. Set the size of a QPixmap object
    By RogerShen in forum Qt Programming
    Replies: 2
    Last Post: 12th February 2010, 11:35
  4. QPixmap in QPushButton size problem
    By MarkoSan in forum Qt Programming
    Replies: 3
    Last Post: 22nd January 2008, 13:50
  5. Replies: 5
    Last Post: 9th April 2007, 15:26

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.