PDA

View Full Version : Can't get a part of the Spin Box Delegate sample to compile



frankiefrank
27th July 2011, 13:11
I'm trying to make a custom delegate for my items.

For just having SOMETHING, I've copied the header and body of the SpinBoxDelegate.

http://doc.qt.nokia.com/4.7-snapshot/itemviews-spinboxdelegate.html

I'm getting this compilation error:



error C2248: 'QItemDelegate::operator =' : cannot access private member declared in class 'QItemDelegate' myfile.h 26

The line number points to the closing tag of my class header definition ( }; )

Can't manage to figure out what's wrong.

I can't see where the problem is.

SOLVED: in the class where I actually used the delegate I forgot to declare the member as a pointer. Jeez, that was an annoying one.