Results 1 to 16 of 16

Thread: Pixmap in translucent QLabel overlay, distorts screen

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,329
    Thanks
    317
    Thanked 871 Times in 858 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Pixmap in translucent QLabel overlay, distorts screen

    The observation that your distorted image is diagonal makes me think that you have an "off-by-one" error when writing pixels into the pixmap. That is, the length of the line that you think is correct is actually shorter, so your image is being wrapped around the borders of the pixmap and gets successively offset with each line. So the error is likely in the initial determination of the size of the pixmap to be painted vs. the size of the label into which you are placing it. The wrapping effect is likely a mismatch between the size of the pixmap and the size of the label.
    Last edited by d_stranz; 4th November 2016 at 16:21.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. Overlay 2 images in QLabel
    By 2lights in forum Qt Programming
    Replies: 1
    Last Post: 6th August 2013, 21:36
  2. Painting an overlay on a QLabel->QImage
    By papillon in forum Qt Programming
    Replies: 7
    Last Post: 10th July 2012, 09:28
  3. Pixmap updating QLabel
    By Matt in forum Newbie
    Replies: 11
    Last Post: 17th August 2010, 21:11
  4. empty pixmap as a QLabel
    By tommy in forum Qt Programming
    Replies: 16
    Last Post: 11th December 2007, 21:15
  5. Pixmap Overlay
    By ToddAtWSU in forum Qt Programming
    Replies: 5
    Last Post: 22nd June 2006, 20:19

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.