Results 1 to 2 of 2

Thread: Drawing Cursor with QPixmap::grabWidget

  1. #1
    Join Date
    Feb 2015
    Qt products

    Default Drawing Cursor with QPixmap::grabWidget

    I want to draw cursor of QLineEdit widget with QPixmap::grabWidget. Could you please inform about how can I handle it ?

  2. #2
    Join Date
    Jan 2008
    Alameda, CA, USA
    Thanked 808 Times in 797 Posts
    Qt products
    Windows Android

    Default Re: Drawing Cursor with QPixmap::grabWidget

    How is QPixmap::grabWidget() supposed to draw a cursor? It does screen captures of widgets into pixmaps, it doesn't draw anything.

    Not only that, the QPixmap::grabWidget() method is obsolete and should not be used in new code. It will eventually be eliminated from the QPixmap class. You should be using QWidget::grab() instead.

Similar Threads

  1. QPixmap::grabWidget on a scaled Phonon::VideoWidget?
    By linus in forum Qt Programming
    Replies: 0
    Last Post: 6th April 2010, 13:19
  2. Replies: 1
    Last Post: 21st August 2008, 07:44
  3. problem with QPixmap::grabWidget()
    By momesana in forum Qt Programming
    Replies: 6
    Last Post: 19th October 2007, 00:57
  4. performance issue(QGV + QPixmap::grabWidget)
    By momesana in forum Qt Programming
    Replies: 4
    Last Post: 27th September 2007, 11:31
  5. QPixmap::GrabWidget
    By kemp in forum Qt Programming
    Replies: 1
    Last Post: 29th November 2006, 10:30

Tags for this Thread


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.