Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    [RESOLVED]Is there QListBox class in Qt library?

    General and Desktop
    3
    5
    3446
    Loading More Posts
    • 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
      cyao last edited by

      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 Reply Quote 0
      • M
        MuldeR last edited by

        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 Reply Quote 0
        • C
          cyao last edited by

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

          1 Reply Last reply Reply Quote 0
          • D
            DerManu last edited by

            [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 Reply Quote 0
            • C
              cyao last edited by

              Done. Thanks DerManu!

              1 Reply Last reply Reply Quote 0
              • First post
                Last post