Error in qtextformat.h while changing component in other file



  • Hello All,

    I have facing  diffrent kind of problem i never faced previously ,
    i am changing some componet in like image and name of lable and got error like 
    

    @
    In file included from /usr/include/qt4/QtGui/qtextcursor.h:47:0,
    from /usr/include/qt4/QtGui/qlineedit.h:46,
    from /usr/include/qt4/QtGui/QLineEdit:1,
    from ui/ui_caliberationsettng_1.h:21,
    from caliberationsettng_1.cpp:2:
    /usr/include/qt4/QtGui/qtextformat.h:762:25: error: macro "border" requires 8 arguments, but only 1 given
    /usr/include/qt4/QtGui/qtextformat.h:762:18: error: 'border' declared as an 'inline' field
    /usr/include/qt4/QtGui/qtextformat.h:762:18: error: expected ';' at end of member declaration
    /usr/include/qt4/QtGui/qtextformat.h:763:5: error: expected unqualified-id before '{' token

    @

    while i am not interfaring with qtextformat.h and make any changes in the same file which i specified.

    While in qtextformat i have not even used;

    Pls let me know is I am doing some silly mistake ..

    Regards

    Praveen



  • I had this error, and came across this post while looking for a solution. Eventually, I managed to trace the root to an incompatibility between Qt and ncurses and/or terminfo (term.h) on linux. I believe they contain #define macros which clash with the Qt declarations, and this is where it manifests.
    If you're getting these errors, check your #includes for "curses.h" or "term.h", and exclude them from the Qt build.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.