I've done a new step - move to QT4

i try to port some old test apps and the next line of code:
Qt Code:
  1. width=QApplication::desktop()->width();
To copy to clipboard, switch view to plain text mode 
returns error while compiling
Qt Code:
  1. error: invalid use of incomplete type ‘struct QDesktopWidget’
To copy to clipboard, switch view to plain text mode 

i haven't noticed any diff between Qt3 and Qt4 docs.