Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Directory Image Browser with Separators Help



  • I am trying to write an image browser that has separators for the directories, but I am not having much success. I would like to list each image in the directory structure similar with a separator for each directory. What Picasa implemented is what I would like to have.

    Picasa shapshot

    Each directory would be completely listed and wrap around in the window. Any guidance on what method to achieve this would be very helpful.

    [edit: Fixed link SGaist]


  • Lifetime Qt Champion

    Hi
    Which part do you need help with ?
    A listView/widget in icon mode shows the images like that.
    alt text



  • I can create the icon view, but I am having trouble with the separators between directories. In the Picasa example, there is an icon for Textures, Textures directory name and some other clickable buttons, like the Upload button.


  • Lifetime Qt Champion

    Hi
    You could use a QFrame or QWidget as container and 2 layouts for the
    2 row
    icon + Foldername
    Buttons

    alt text

    alt text

    If you make it as a custom control with its own .h and .cpp and UI file you can use it from code
    to have many of them.

    alt text



  • Thank you. That looks like what I need to do.

    I think I need to put each directory and file list in a frame. The top-level view would just manage the directory frames.


Log in to reply