try to create a delegate in the heap, i.e. using new operator.
so, code should like this
Qt Code:
m_pList->setItemDelegate (new SpinBoxDelegate);To copy to clipboard, switch view to plain text mode
try to create a delegate in the heap, i.e. using new operator.
so, code should like this
Qt Code:
m_pList->setItemDelegate (new SpinBoxDelegate);To copy to clipboard, switch view to plain text mode
montylee (1st October 2008)
wow!!! it worked...
my problem is now resolved.
thanks a lot to both of you!
I have one more query:
I am not sure why the delegate goes out of scope...is it because the List widget variable is not local?
My GNU/Linux Blog:
http://funwithlinux.blogspot.com
because, QListWidget has global scope in a class and the delegate local scope in ctor of the class.
Last edited by spirit; 1st October 2008 at 12:30. Reason: updated contents
thanks for the clarification![]()
My GNU/Linux Blog:
http://funwithlinux.blogspot.com
Bookmarks