Unresolved symbol: QTreeWidgetItem::itemFromIndex(QModelIndex const&) const
David Faure
faure at kde.org
Wed Apr 12 00:23:41 CEST 2006
On Wednesday 12 April 2006 00:17, Maarten Th. Mulders wrote:
> Hi all,
>
> when linking kdeui with MSVC 2005 the following linker error occurs:
>
> ktreewidgetsearchline.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: class QTreeWidgetItem * __thiscall
> QTreeWidget::itemFromIndex(class QModelIndex const &)const "
> (__imp_?itemFromIndex at QTreeWidget@@QBEPAVQTreeWidgetItem@@ABVQModelIndex@@@Z)
> referenced in
> function "private: void __thiscall
> KTreeWidgetSearchLine::rowsInserted(class QModelIndex
> const&,int,int)const "
> (?rowsInserted at KTreeWidgetSearchLine@@ABEXABVQModelIndex@@HH at Z)
>
> I can't find any Qt patches related to QTreeWidgetItem or whatsoever.
QTreeWidget::itemFromIndex is a protected method in a public class, there's no reason
for this link error, except if your kdeui is linking to an older version of Qt for some reason.
Check that you don't have older Qt libs (e.g. with or without the "d" for debug)
in your $QTDIR/lib.
--
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
More information about the Kde-buildsystem
mailing list