Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Error in qtextformat.h while changing component in other file
Forum Updated to NodeBB v4.3 + New Features

Error in qtextformat.h while changing component in other file

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 816 Views 1 Watching
  • 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 Offline
    P Offline
    praveen0991kr
    wrote on 7 Jul 2014, 05:37 last edited by
    #1

    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
    0
    • W Offline
      W Offline
      wilcroft
      wrote on 6 Mar 2015, 00:25 last edited by
      #2

      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
      0
      • H Offline
        H Offline
        hitbuyi
        wrote on 14 May 2024, 15:53 last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved