Unresolved symbol: QTreeWidgetItem::itemFromIndex(QModelIndex const&) const
Thiago Macieira
thiago at kde.org
Wed Apr 12 00:53:42 CEST 2006
David Faure wrote:
>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 "
>
>QTreeWidget::itemFromIndex is a protected method in a public class,
That tipped me off:
525308 rodda // Only feeling a touch guilty about this
525308 rodda // Need QTreeWidget::itemFromIndex
525308 rodda #define protected public
525308 rodda #include <QTreeWidget>
I have removed the #define protected public. This means that you get a
compilation error in all platforms instead.
The fix has to be something else.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
thiago.macieira (AT) trolltech.com Trolltech AS
GPG: 0x6EF45358 | Sandakerveien 116,
E067 918B B660 DBD1 105C | NO-0402
966C 33F5 F005 6EF4 5358 | Oslo, Norway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20060412/3e3c6828/attachment.pgp
More information about the Kde-buildsystem
mailing list