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. QComboBox > QListView

QComboBox > QListView

Scheduled Pinned Locked Moved General and Desktop
5 Posts 4 Posters 3.9k 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.
  • R Offline
    R Offline
    Robert Brei
    wrote on last edited by
    #1

    Hi. I am new to -QT- Qt and i have a Question:

    I'll put the subfolderfiles from the parentfolder, who is shown in the QComboBox, in a QListView..
    The Box show the right path but i can't find any way to get the subfolder to the ListView...

    can sombody help me?

    sorry for my english..

    1 Reply Last reply
    0
    • C Offline
      C Offline
      cincirin
      wrote on last edited by
      #2

      Maybe "QDir::entryList":http://doc.qt.nokia.com/4.7/qdir.html#entryList-2 is what you are looking for ?

      1 Reply Last reply
      0
      • A Offline
        A Offline
        andre
        wrote on last edited by
        #3

        Really, I have no idea what you want to achieve. What are "subfolderfiles"? Are those entries in the file list that represent subfolders of the current folder? Or is that something else? And what is it exactly that you want do with that?

        1 Reply Last reply
        0
        • G Offline
          G Offline
          goetz
          wrote on last edited by
          #4

          I don't get exactly what you need, but it sounds like "this thread":http://developer.qt.nokia.com/forums/viewthread/9783/ could be of use for you too.

          http://www.catb.org/~esr/faqs/smart-questions.html

          1 Reply Last reply
          0
          • R Offline
            R Offline
            Robert Brei
            wrote on last edited by
            #5

            I've solved so...

            @
            QDir dir;
            dir.setPath (ListDir);

            for (int i=0;i<dir.entryList(QStringList("")).count();i++){
            QString fileName = dir.entryList(QStringList("
            ")).at(i);
            ui->listWidget->addItem(fileName);
            }
            @

            thanks...

            [EDIT: code formatting, please wrap in @-tags, Volker]

            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