Results 1 to 8 of 8

Thread: QApplication::desktop() incomplete type

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QApplication::desktop() incomplete type

    Quote Originally Posted by codebehind View Post
    why I could compile this code with qt3 and with qt4 i couldn't?
    Because Qt4 sources are organised differently. Now the compiler must read QDesktopWidget code only when you really use it.

    Quote Originally Posted by codebehind View Post
    i've looked in qapplication.h and there is no forward declaration.
    Check again. Look near QT_MODULE macro.

  2. #2
    Join Date
    Apr 2007
    Posts
    76
    Thanks
    6
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QApplication::desktop() incomplete type

    Check again. Look near QT_MODULE macro.
    sorry. i was thinking about qt3 - qapplication.h

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QApplication::desktop() incomplete type

    Quote Originally Posted by codebehind View Post
    i was thinking about qt3 - qapplication.h
    In that case everything is OK. That's the difference between Qt3 and Qt4 --- Qt4 uses forward declaration.

Similar Threads

  1. Compile 4.4.0
    By LordQt in forum Installation and Deployment
    Replies: 18
    Last Post: 29th May 2008, 13:43
  2. Template classes and abstraction of type
    By Raistlin in forum General Programming
    Replies: 15
    Last Post: 1st April 2008, 10:18
  3. Make error with Qt Jambi 4.3.2_01
    By pamalite in forum Installation and Deployment
    Replies: 0
    Last Post: 22nd November 2007, 12:05
  4. dummy question(Error)
    By Masih in forum Qt Programming
    Replies: 12
    Last Post: 19th July 2007, 23:38
  5. Replies: 3
    Last Post: 4th August 2006, 12:05

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
  •  
Qt is a trademark of The Qt Company.