Quoted
Originally posted by Hetware
Should I simply subclass QListBoxItem somehow to turn /it/ into a wrapper class? Am I likely to brake stuff related to Qt's memory cleanup that way?
Quoted
Originally posted by e8johan
Yes, subclassing is the way to go. And, no, you will not break Qt's memory cleanup unless you do something strange.
Quoted
Originally posted by Hetware
Quoted
Originally posted by e8johan
Yes, subclassing is the way to go. And, no, you will not break Qt's memory cleanup unless you do something strange.
OK, so the obvious next step is to rearrange the list, or add to, or delete from the list. Do I also subclass QListBox in such a way that items are displayed in the order of the backing the list?
This seems like a very generic design pattern. I wonder if support for this might be part of a future Qt release. Is the sort of thing done by other Qt programmers frequently?
This post has been edited 1 times, last edit by "e8johan" (Mar 1st 2004, 7:50am)