Results 1 to 3 of 3

Thread: launch Qt app on right-click

  1. #1
    Join Date
    Jan 2006
    Posts
    73
    Thanks
    16
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default launch Qt app on right-click

    Hello,
    I need to be able to right-click an image, accessed through the Finder on the Mac and Windows Explorer on windows, to launch an app that would process the image (qt is just perfect to do all that processing), that would add a check to the image to mean that the image was processed, and that would add to the menu (the one generated by the right-click) details about the processing.

    Is Qt a good tool to do that?

    Thank you

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: launch Qt app on right-click

    Qt itself won't help you here. You have to interact with the system settings to integrate your application with the file manager. The approach varies between platforms.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. The following user says thank you to wysota for this useful post:

    jcr (1st March 2009)

  4. #3
    Join Date
    Mar 2006
    Posts
    140
    Thanks
    8
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: launch Qt app on right-click

    It will be platform specific, so you need to write wrappers for each system you're supporting it on.

    Under Windows, you need to write what's known as a "Shell Extension". It's a separate library which is compiled as a COM compliant dll which is 'registered'. You could do it the painful way through C++ using ATL to simplify things, or the best way I've found is with a third party product called EZShellExtensions.NET from http://www.ssware.com/ezshell/ezshell.htm
    This framework simplifies the process of creating the extension, but if you just want to write your own, then search for Context menu shell extensions

    I think the EZShellExtensions.NET framework is really good, at the very least, it's worth getting the trial just to see the generic API they've produced as inspiration for you own.

    I hope this helps.

    Steve York

Similar Threads

  1. Double Click Capturing
    By ToddAtWSU in forum Qt Programming
    Replies: 2
    Last Post: 8th January 2011, 14:12
  2. Right click list - some advice ?
    By aurelius in forum Qt Programming
    Replies: 5
    Last Post: 27th January 2009, 07:04
  3. Replies: 2
    Last Post: 11th January 2009, 23:24
  4. QGraphicsScene Click / Double Click
    By philentropist in forum Qt Programming
    Replies: 1
    Last Post: 9th February 2007, 04:32
  5. Replies: 5
    Last Post: 12th January 2006, 15:40

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.