I have a myqlistbox that is a subclass of QListBox, and a new qlistboxitem class which is a subclass of QListBoxItem.
class newListBoxItem : public QListBoxItem
{
.......
protected:
virtual int height (const QListBox*) const {

if (isCurrent())
return 44;
else
return 22;
}

}
when I creat a new myqlistbox , the item which is highlight item can be twice height . if you move the highlight item ,the new highlight will become twice height, and the old hightlight item will become normal height. but the new highlight item at same position. I want the new highlight move up 22 pixels becauce the old highlight give the 22 pixels.
how can i move myqlistbox item which become twice height when it was highlight.
[IMG] [/IMG][IMG]C:\Documents and Settings\cnh50285\My Documents\My Pictures\test.gif[/IMG]