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. How to generate dynamic desktop icons on Windows and Mac OS X
QtWS25 Last Chance

How to generate dynamic desktop icons on Windows and Mac OS X

Scheduled Pinned Locked Moved Unsolved General and Desktop
previewquicklookmac os xwindows
8 Posts 3 Posters 3.8k Views
  • 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.
  • A Offline
    A Offline
    AndyBrice
    wrote on 13 Apr 2016, 09:10 last edited by
    #1

    If you save an image (e.g. a PNG file) to your Windows or Mac desktop the document icon is a dynamically generated thumbnail of the image. I want to programmatically generate thumbnails for my own application documents.

    I understand that this requires a 'Quicklook plugin' on Mac OS X. I'm not sure about Windows.

    I found some documentation about QWinThumbnailToolBar, but that only seems to set the toolbar icon thumbnail, not the desktop icon.

    Does anyone know of example code to do this on Windows and/or Mac? I'm sure I am not the first person to do this in Qt.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 13 Apr 2016, 10:35 last edited by mrjj
      #2

      Hi

      "generate thumbnails for my own application documents"

      On windows, I think such function is handled by a Shell extension.
      a Windows Shell preview handle.

      https://code.msdn.microsoft.com/windowsapps/CppShellExtThumbnailHandler-32399b35

      maybe u can find info in
      http://www.qtcentre.org/threads/32104-howto-making-a-windows-shell-extension-with-qt-open-source-edition

      A 1 Reply Last reply 13 Apr 2016, 13:32
      1
      • M mrjj
        13 Apr 2016, 10:35

        Hi

        "generate thumbnails for my own application documents"

        On windows, I think such function is handled by a Shell extension.
        a Windows Shell preview handle.

        https://code.msdn.microsoft.com/windowsapps/CppShellExtThumbnailHandler-32399b35

        maybe u can find info in
        http://www.qtcentre.org/threads/32104-howto-making-a-windows-shell-extension-with-qt-open-source-edition

        A Offline
        A Offline
        AndyBrice
        wrote on 13 Apr 2016, 13:32 last edited by
        #3

        @mrjj Thanks. I will take a look. Hopefully someone else can point me in the right direction for Mac OS X.

        1 Reply Last reply
        1
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 13 Apr 2016, 21:47 last edited by
          #4

          Hi,

          For OS X, it's a QuickLook plugin. More information here

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          A 1 Reply Last reply 13 Apr 2016, 21:56
          1
          • S SGaist
            13 Apr 2016, 21:47

            Hi,

            For OS X, it's a QuickLook plugin. More information here

            A Offline
            A Offline
            AndyBrice
            wrote on 13 Apr 2016, 21:56 last edited by
            #5

            @SGaist Thanks. It looks like a lot of work, especially given that I don't haven't objective-C experience!

            I was rather hoping that someone would have a working example that I could adapt.

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 30 Apr 2016, 23:14 last edited by
              #6

              Not necessarily.

              What is the format of your file ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              A 1 Reply Last reply 12 Jul 2016, 21:22
              0
              • S SGaist
                30 Apr 2016, 23:14

                Not necessarily.

                What is the format of your file ?

                A Offline
                A Offline
                AndyBrice
                wrote on 12 Jul 2016, 21:22 last edited by
                #7

                @SGaist Sorry for the very belated reply. The file format is XML.

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 12 Jul 2016, 22:00 last edited by
                  #8

                  Something like SVG ?

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  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