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. Directory Image Browser with Separators Help
Forum Updated to NodeBB v4.3 + New Features

Directory Image Browser with Separators Help

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 270 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.
  • N Offline
    N Offline
    Numerator
    wrote on last edited by SGaist
    #1

    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]

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

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

      1 Reply Last reply
      0
      • N Offline
        N Offline
        Numerator
        wrote on last edited by
        #3

        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.

        mrjjM 1 Reply Last reply
        0
        • N Numerator

          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.

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by mrjj
          #4

          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

          1 Reply Last reply
          1
          • N Offline
            N Offline
            Numerator
            wrote on last edited by Numerator
            #5

            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.

            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