Hi,
I post threads times in the forum one day and all my problems are got solved by
ur help.
thanks.

Can I direct draw my screen
On windows,I can pass a NULL pointer to GetDC api to get the
screen device context and operate on it.

Is there any way I can do this in QT?
I try QApplication::desktop()->screen(),but It seems that all paintdevice can only
be drew with QPainter in paintEvent.

So I faild the code:

Qt Code:
  1. QPainter pd(QApplication::desktop()->screen());
  2. pd.drawLine(0,0,500,500);
To copy to clipboard, switch view to plain text mode 

any suggestion please?

Thanks.