Results 1 to 10 of 10

Thread: ItemDelegate show text intead of number

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #10
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: ItemDelegate show text intead of number

    Quote Originally Posted by ^NyAw^ View Post
    I have been inspectiong QComboBox code but I'm not able to understand why its able to show the list of items.
    When you click it, it shows another widget which happens to be a QListView showing a model of its items.

    This is what I'm trying with no luck.
    Just set a custom model on the combobox.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  2. The following user says thank you to wysota for this useful post:

    ^NyAw^ (17th March 2015)

Similar Threads

  1. Number to Text
    By Markov in forum Newbie
    Replies: 2
    Last Post: 22nd February 2017, 09:16
  2. Replies: 4
    Last Post: 18th December 2013, 20:02
  3. Qt line number in text editor
    By Nyx in forum Qt Programming
    Replies: 6
    Last Post: 24th August 2010, 10:16
  4. qdirmodel question: show file number of a folder?
    By zl2k in forum Qt Programming
    Replies: 3
    Last Post: 7th November 2008, 07:07
  5. Replies: 4
    Last Post: 22nd August 2008, 10:08

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
  •  
Qt is a trademark of The Qt Company.