Results 1 to 3 of 3

Thread: Value from QComboBox instead of Index

  1. #1
    Join Date
    Jun 2006
    Location
    San Diego, USA
    Posts
    95
    Thanks
    9
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Value from QComboBox instead of Index

    How to read Values from QComboBox instead of Indexes . I am able to get Indexes for QComboBox using currentIndex() function. But I want to get value of currentIndex.

    Ex: Index Value
    0 10
    1 11
    2 12

    If I select '0' I want 10 to be printed. With currentIndex() function I can print Indexes as '0', '1' etc only.

    How can I get the values for that corresponding indexes?

    Thanks
    Arun

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Value from QComboBox instead of Index


  3. #3
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Value from QComboBox instead of Index



    Edit: Wow, did it really take me two minutes to copy-paste the links?
    J-P Nurmi

Similar Threads

  1. Qtopia core 4.2.2 cross compile make error
    By smiyai18 in forum Installation and Deployment
    Replies: 2
    Last Post: 28th August 2007, 17:04

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.