Results 1 to 7 of 7

Thread: incomplete type?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2013
    Posts
    11
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Windows Android

    Default Re: incomplete type?

    my friends,i had a similar case and found this happens when you mix different versions of Qt to compile the project
    they simply change the ui_*.h files or sometimes they empty it and thus this happens. Occured at least with me ..

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,316
    Thanks
    314
    Thanked 870 Times in 857 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: incomplete type?

    they simply change the ui_*.h files
    "They" do? Who is they? Mysterious aliens who live inside your computer and change code while you are sleeping?

    It is more likely that when you changed Qt versions you didn't re-run qmake or didn't rebuild your entire project to ensure that all of the generated files (like the ui_*.h and moc_*.cpp) were brought into sync with the new Qt version.

    you mix different versions of Qt to compile the project
    Never, ever mix different versions of the same libraries, especially Qt, when building a project. Not only are you likely to get incompatible #include files, you are almost certain to get a linker that produces a corrupt executable or a runtime that fails because it can't find the DLLs / shared libraries it needs.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

  3. #3
    Join Date
    Feb 2019
    Posts
    1
    Qt products
    PyQt3 PyQt4
    Platforms
    MacOS X

    Default Re: incomplete type?

    You can simply change the ui_*.h files

Similar Threads

  1. Replies: 1
    Last Post: 4th September 2008, 14:55
  2. QApplication::desktop() incomplete type
    By codebehind in forum Newbie
    Replies: 7
    Last Post: 21st August 2008, 19:08
  3. Compile 4.4.0
    By LordQt in forum Installation and Deployment
    Replies: 18
    Last Post: 29th May 2008, 13:43
  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.