Results 1 to 2 of 2

Thread: Drawing Cursor with QPixmap::grabWidget

  1. #1
    Join Date
    Feb 2015
    Posts
    6
    Qt products
    Qt4

    Default Drawing Cursor with QPixmap::grabWidget

    Hi,
    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
    Location
    Alameda, CA, USA
    Posts
    5,243
    Thanks
    303
    Thanked 866 Times in 853 Posts
    Qt products
    Qt5
    Platforms
    Windows

    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, 14:19
  2. Replies: 1
    Last Post: 21st August 2008, 08:44
  3. problem with QPixmap::grabWidget()
    By momesana in forum Qt Programming
    Replies: 6
    Last Post: 19th October 2007, 01:57
  4. performance issue(QGV + QPixmap::grabWidget)
    By momesana in forum Qt Programming
    Replies: 4
    Last Post: 27th September 2007, 12:31
  5. QPixmap::GrabWidget
    By kemp in forum Qt Programming
    Replies: 1
    Last Post: 29th November 2006, 11:30

Tags for this Thread

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.