Results 1 to 2 of 2

Thread: convert to QPixmap

  1. #1
    Join Date
    Mar 2009
    Location
    Gansu,China
    Posts
    188
    Qt products
    Qt4
    Platforms
    Windows

    Default convert to QPixmap

    I draw a polygon in the QPaintEvent() of QLabel,
    How to convert it to the Qpixmap of the QLabel?
    Thk u.

  2. #2
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 452 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: convert to QPixmap

    You could use
    Qt Code:
    1. void QWidget::render(....)
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. Convert QPixmap to QByteArray ?
    By probine in forum Qt Programming
    Replies: 5
    Last Post: 13th March 2014, 08:23
  2. need to convert Raw Image Data direct to QPixmap
    By syclopse in forum Qt Programming
    Replies: 6
    Last Post: 18th July 2011, 13:57
  3. How can we convert video stream to QPixmap?
    By learning_qt in forum Qt Programming
    Replies: 1
    Last Post: 9th September 2008, 23:44
  4. Replies: 4
    Last Post: 28th August 2008, 13:13
  5. Replies: 5
    Last Post: 9th April 2007, 14: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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.