Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Error in qtextformat.h while changing component in other file

    General and Desktop
    2
    2
    685
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      praveen0991kr last edited by

      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

      1 Reply Last reply Reply Quote 0
      • W
        wilcroft last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post