Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [RESOLVED]Is there QListBox class in Qt library?
QtWS25 Last Chance

[RESOLVED]Is there QListBox class in Qt library?

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 3.7k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cyao
    wrote on last edited by
    #1

    I'm trying to find some widget to display a list of items as simple as MFC CListBox in Qt GUI library, and I found some examples of using QListBox in the internet, but this class does not exist in my Qt installation. QListView, which is just likes MFC CListView, is not what I need. Any one can tell me how to display a list box using Qt? Thanks!

    1 Reply Last reply
    0
    • M Offline
      M Offline
      MuldeR
      wrote on last edited by
      #2

      QListWidget
      http://doc.qt.digia.com/qt/qlistwidget.html

      But using a QListView with a suitable model is the more elegant solution most of the time :-)

      My OpenSource software at: http://muldersoft.com/

      Qt v4.8.6 MSVC 2013, static/shared: http://goo.gl/BXqhrS

      Go visit the coop: http://youtu.be/Jay...

      1 Reply Last reply
      0
      • C Offline
        C Offline
        cyao
        wrote on last edited by
        #3

        Thanks MuldR! It works. One more question: How to mark this post as "Resolved"? :-)

        1 Reply Last reply
        0
        • D Offline
          D Offline
          DerManu
          wrote on last edited by
          #4

          [quote author="cyao" date="1353621421"]Thanks MuldR! It works. One more question: How to mark this post as "Resolved"? :-)[/quote]
          Edit the first posting and change the thread title accordingly.

          1 Reply Last reply
          0
          • C Offline
            C Offline
            cyao
            wrote on last edited by
            #5

            Done. Thanks DerManu!

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved