Results 1 to 3 of 3

Thread: QListBox overload

  1. #1
    Join Date
    Jun 2007
    Posts
    21
    Thanks
    25
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default QListBox overload

    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.

  2. #2
    Join Date
    Jan 2006
    Location
    Ljubljana
    Posts
    687
    Thanks
    111
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: QListBox overload

    Why don't you simply "transform" the index from Rouge to Qt? The indx of Rogue decremented by 1 is QListBox index ...
    Qt 5.3 Opensource & Creator 3.1.2

  3. The following user says thank you to MarkoSan for this useful post:

    nleverin (15th January 2008)

  4. #3
    Join Date
    Jun 2007
    Posts
    21
    Thanks
    25
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Re: QListBox overload

    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.

Similar Threads

  1. myclass::operator==() overload problem.
    By Nyphel in forum Qt Programming
    Replies: 4
    Last Post: 11th October 2007, 22:29
  2. QListBox with QListBoxItems cyclic List
    By codebehind in forum Newbie
    Replies: 3
    Last Post: 24th June 2007, 19:47
  3. Replies: 1
    Last Post: 21st March 2007, 14:13
  4. Display an image in QListBox
    By vishesh in forum Newbie
    Replies: 1
    Last Post: 3rd February 2007, 18:01
  5. Reg - Font setting QListBox
    By lawrence in forum Newbie
    Replies: 1
    Last Post: 23rd December 2006, 20:07

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.