PDA

View Full Version : Drawing Cursor with QPixmap::grabWidget



cranberries
7th July 2015, 13:15
Hi,
I want to draw cursor of QLineEdit widget with QPixmap::grabWidget. Could you please inform about how can I handle it ?

d_stranz
8th July 2015, 04:34
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.