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. Can you please suggest some examples for QlistView control in QT..
Forum Updated to NodeBB v4.3 + New Features

Can you please suggest some examples for QlistView control in QT..

Scheduled Pinned Locked Moved General and Desktop
7 Posts 4 Posters 19.8k Views 1 Watching
  • 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.
  • M Offline
    M Offline
    M_31
    wrote on last edited by
    #1

    I am new to QT.
    Can you please suggest some best eample for QListView & QlistviewItem as well.

    1 Reply Last reply
    0
    • Z Offline
      Z Offline
      ZapB
      wrote on last edited by
      #2

      What do you want to know? QListView is used with the Model/View architecture so you may want to look at QAbstractListModel.

      QListWidgetItem's are used with QListWidget which is a convenience sub-class of QListView for use when you only have a few items to show and writing a model is too much hassle.

      ps It's Qt not QT. ;-)

      Nokia Certified Qt Specialist
      Interested in hearing about Qt related work

      1 Reply Last reply
      0
      • D Offline
        D Offline
        dialingo
        wrote on last edited by
        #3

        There is a "very good introduction":http://doc.qt.nokia.com/4.7/modelview.html to model/view. It comes with several example sources. It also lists at the end known other examples of model/view technology - including QListView

        1 Reply Last reply
        0
        • M Offline
          M Offline
          M_31
          wrote on last edited by
          #4

          Thanks dialingo...

          1 Reply Last reply
          0
          • M Offline
            M Offline
            M_31
            wrote on last edited by
            #5

            Dialingo...as you mentioned the site here..

            http://doc.qt.nokia.com/main-snapshot/modelview.html

            i am not able to find the sample source code..

            plz help me out on this...

            1 Reply Last reply
            0
            • L Offline
              L Offline
              loladiro
              wrote on last edited by
              #6

              It's part of Qt itself. There should a folder called "examples" in your Qt dir.

              1 Reply Last reply
              0
              • M Offline
                M Offline
                M_31
                wrote on last edited by
                #7

                Sry ...i misunderstood...now i got it..

                Thanks for your help..

                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