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. Sidebar icons
Qt 6.11 is out! See what's new in the release blog

Sidebar icons

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 3 Posters 908 Views 2 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.
  • F Offline
    F Offline
    femust
    wrote on last edited by
    #1

    Hey,

    I have a question, is there a simple way to do a kind of association between file format and icon symbol? So for example, if the ending is *.cpp then I see one icon, and if I see end *.pcd then i can see the other icon. How could I do this? Currently, I have for all files the same icons so I have this feeling that sometimes I need to "process" in order to click the right file ...

    637ddf54-5574-49b8-92e7-bdb353863e56-image.png

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

      Hi
      Try to change the icon for that type in your OS.
      For me it uses the icon assigned to the file types in the OS.
      Both on Windows and linux.

      1 Reply Last reply
      1
      • F Offline
        F Offline
        femust
        wrote on last edited by
        #3

        @mrjj do you know how i could do this in linux ubuntu?

        JonBJ 1 Reply Last reply
        0
        • F femust

          @mrjj do you know how i could do this in linux ubuntu?

          JonBJ Online
          JonBJ Online
          JonB
          wrote on last edited by
          #4

          @femust
          You can Google around for, say, ubuntu file type icons.

          If you are using the default GNOME dm, the File Explorer is named Nautilus. I came across various:
          https://ubuntuforums.org/showthread.php?t=2227690
          https://askubuntu.com/questions/52138/how-do-i-change-the-icon-for-a-particular-file-type
          https://help.ubuntu.com/community/AddingMimeTypes

          1 Reply Last reply
          2
          • F Offline
            F Offline
            femust
            wrote on last edited by
            #5

            ok thanks!

            1 Reply Last reply
            0
            • F Offline
              F Offline
              femust
              wrote on last edited by
              #6

              @mrjj, unfortunately, it didn't work out since qt creator still takes default icons ...

              mrjjM 1 Reply Last reply
              0
              • F femust

                @mrjj, unfortunately, it didn't work out since qt creator still takes default icons ...

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

                @femust
                what platform ?
                (and windows manager if linux)

                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