: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を使用して
...今すぐ解決してください(Updateを参照)。とにかく助けてくれてありがとう。 –