PDA

View Full Version : QListBox overload



nleverin
20th December 2007, 04:23
Hi,

im porting some code from Rogue Wave to Qt3.

now the rogue wave list box starts its index at 1, where qlistbox indexes starts its index at 0.

I was just looking for some advice from a more experience qt developer, whether the best option would be to create a new overloaded qt3 designer widget that makes qlistbox index at 1 also.

Is this the best solution for my problem, and is it quite easy to implement?

thanks in advance,

nlev.

MarkoSan
20th December 2007, 05:39
Why don't you simply "transform" the index from Rouge to Qt? The indx of Rogue decremented by 1 is QListBox index ...

nleverin
20th December 2007, 21:49
There is about 100 different implementation of listbox in the code im porting and yes this i what i have been doing so far, but if i can change qlistbox then i can straight port the code.