내가 (directDrawingPainterPath 유형의 QPainterPath의 클래스 멤버)이 작업을 수행하려합니다 (외부 해결되지 않은) : 그러나QT4, QPainterPath의 직접 할당이 작동하지
directDrawingPainterPath = QPainterPath(point);
은 Visual Studio에서 프로그램을 컴파일하는 날를 가져옵니다 다음과 같은 오류 :
1>ScribbleWidget.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class QPainterPath & _cdecl QPainterPath::operator=(class QPainterPath &&)" ([email protected]@[email protected][email protected]@Z) referenced in function "protected: virtual void __cdecl ScribbleWidget::mousePressEvent(class QMouseEvent *)" ([email protected]@@[email protected]@@Z)
내가 이런 식으로 재 작성 :
QPainterPath tmp(point);
directDrawingPainterPath = tmp;
그런 다음 작동합니다. 이것은 또한 다른 과제에 대해 발생합니다
이 작동합니다
QString tmp = att.value().toString();
name = tmp;
이되지 않습니다
name = att.value().toString();
누구든지 문제가 될 수있는 것을 아는 사람?
업데이트
난 그냥 해결책을 발견 : 문제는 내가 VS2010와 프로젝트를 컴파일하는 동안, VS2008로 컴파일 된 QT에 연결을 시도이었다. 또한 VS2010가 모든 일을하게 컴파일 것 QT를 사용
...
또한 VS2010가 모든 일을하게 컴파일 것 QT를 사용
... 솔루션을 지금 (업데이트 참조). 어쨌든 도움을 주셔서 감사합니다. –