Results 1 to 2 of 2

Thread: "Incomplete type QPrinter used in nested name specifier"

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2012
    Posts
    1
    Qt products
    Qt4
    Platforms
    MacOS X

    Default "Incomplete type QPrinter used in nested name specifier"

    Hi, I've been trying to compile/build the source for edfbrowser on Macintosh, which uses Qt4. When I 'make' the source, I get this error:

    g++ -c -pipe -O2 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -Wall -W -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I../../QtSDK/Simulator/Qt/gcc/mkspecs/default -I. -I../../QtSDK/Simulator/Qt/gcc/lib/QtCore.framework/Versions/4/Headers -I../../QtSDK/Simulator/Qt/gcc/include/QtCore -I../../QtSDK/Simulator/Qt/gcc/lib/QtGui.framework/Versions/4/Headers -I../../QtSDK/Simulator/Qt/gcc/include/QtGui -I../../QtSDK/Simulator/Qt/gcc/include -I. -Imoc -F/Users/erikmulchandani/QtSDK/Simulator/Qt/gcc/lib -o objects/viewcurve.o viewcurve.cpp

    viewcurve.cpp: In member function ‘void ViewCurve:rint_to_printer()’:
    viewcurve.cpp:762: error: variable ‘QPrinter print’ has initializer but incomplete type
    viewcurve.cpp:762: error: incomplete type ‘QPrinter’ used in nested name specifier
    viewcurve.cpp:764: error: incomplete type ‘QPrinter’ used in nested name specifier
    viewcurve.cpp:765: error: incomplete type ‘QPrinter’ used in nested name specifier
    .....
    viewcurve.cpp:887: error: incomplete type ‘QPrinter’ used in nested name specifier

    And yes, QPrinter is included in the header file.
    Perhaps someone could shed some light on this issue? All the previous solutions I've googled haven't been relevant enough.
    Last edited by timboh56; 18th July 2012 at 21:37.

Similar Threads

  1. Replies: 4
    Last Post: 8th December 2010, 13:22
  2. "Incomplete" Event class types [solved]
    By Live-Dimension in forum Qt Programming
    Replies: 2
    Last Post: 5th August 2010, 13:59
  3. "Treat wchar_t as Built-in Type" to "yes" link error
    By sungaoyong in forum Qt Programming
    Replies: 1
    Last Post: 5th June 2008, 11:45
  4. Translation QFileDialog standart buttons ("Open"/"Save"/"Cancel")
    By victor.yacovlev in forum Qt Programming
    Replies: 4
    Last Post: 24th January 2008, 19:05
  5. Compilation error: "field 'xxx' has incomplete type"
    By fedcer in forum Qt Programming
    Replies: 4
    Last Post: 27th July 2007, 15:01

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.