error: macro "toLine" requires 2 arguments, but only 1 given      QLine toLine() const;

/include/qt/QtCore/qvariant.h:307:18: error: macro "toLine" requires 2 arguments, but only 1 given
     QLine toLine() const;
                  ^
include/qt/QtCore/qvariant.h:307:11: error: expected ‘;’ at end of member declaration
     QLine toLine() const;
           ^
include/qt/QtCore/qvariant.h:307:20: error: declaration does not declare anything [-fpermissive]
     QLine toLine() const;
                    ^

 

 

 

解決辦法:

.pro 中添加  QMAKE_CXXFLAGS += -DQT_NO_GEOM_VARIANT


 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章