Results 1 to 1 of 1

Thread: Can't get a part of the Spin Box Delegate sample to compile

  1. #1
    Join Date
    Dec 2010
    Location
    Israel
    Posts
    90
    Thanks
    59
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Can't get a part of the Spin Box Delegate sample to compile

    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...xdelegate.html

    I'm getting this compilation error:

    Qt Code:
    1. error C2248: 'QItemDelegate::operator =' : cannot access private member declared in class 'QItemDelegate' myfile.h 26
    To copy to clipboard, switch view to plain text mode 
    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.
    Last edited by frankiefrank; 27th July 2011 at 13:32.

Similar Threads

  1. Replies: 4
    Last Post: 18th November 2010, 13:00
  2. Replies: 4
    Last Post: 22nd September 2010, 22:34
  3. Replies: 6
    Last Post: 5th October 2009, 01:17
  4. QT Creator Spin Box for hex values
    By JJ31069 in forum Newbie
    Replies: 6
    Last Post: 30th April 2009, 14:06
  5. QTableView & spin
    By fpujol in forum Qt Programming
    Replies: 1
    Last Post: 18th January 2007, 23:51

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.