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. How on every row of QListView show different file or folder?
Forum Updated to NodeBB v4.3 + New Features

How on every row of QListView show different file or folder?

Scheduled Pinned Locked Moved Unsolved General and Desktop
qlistviewpyqt5qt5
2 Posts 2 Posters 1.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.
  • sajjadS Offline
    sajjadS Offline
    sajjad
    wrote on last edited by
    #1

    Hi
    I am new to pyqt5, i am building a file search app in python that use pyqt5.
    How can i show on every row of QListView different file or folder with different path. If you can give also c++ example i appreciate that.
    Thanks for your Help.

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome
      not directly an answer, but have you looked at the example ?
      http://doc.qt.io/qt-5/qtwidgets-dialogs-findfiles-example.html

      there is also QFileSystemModel
      http://doc.qt.io/qt-5/qfilesystemmodel.html#details
      to be used with views.

      also, just to be sure u saw it
      http://doc.qt.io/qt-5/model-view-programming.html

      Good intro on how it fits together.

      1 Reply Last reply
      1

      • Login

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