0

The children() member function of QResource is protected. It does exactly what I need. (I have a collection of files in a certain resource directory, and want to use the list to populate a combo box.) Two questions:

  1. Why is QResource::children() protected?

  2. What's the correct way to do what this function provides?

Scott Deerwester
  • 3,503
  • 4
  • 33
  • 56

1 Answers1

0

It turns out that QDir accepts qrc paths, so the equivalent of QResource::children() can be accomplished by calling QDir::entryInfoList().

Scott Deerwester
  • 3,503
  • 4
  • 33
  • 56