Results 1 to 6 of 6

Thread: How to overlay icons for a dir/file using Qt ?

  1. #1
    Join Date
    Sep 2011
    Location
    Bangalore
    Posts
    254
    Thanks
    92
    Thanked 16 Times in 16 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default How to overlay icons for a dir/file using Qt ?

    How can I achieve svn like folder/file overlays ?
    I want to change the icons of the overlays as the corresponding directory/file(s) are modified. I'm watching the directory using inotify, so any change in the file(s)/sub-directorie(s) of the watch directory shall give me a signal and based on the signal I need to update the relevant icon to the views in the directory.

    Thank you.

    Update:
    Something like in the pic shown below -
    overlay icons.jpg
    Last edited by rawfool; 21st March 2014 at 12:55.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How to overlay icons for a dir/file using Qt ?

    Well, how do you currently achieve the base visualization?

    QListView and a model?

    Cheers,
    _

  3. #3
    Join Date
    Sep 2011
    Location
    Bangalore
    Posts
    254
    Thanks
    92
    Thanked 16 Times in 16 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Re: How to overlay icons for a dir/file using Qt ?

    I'm not having any widgets, I'm into the window given by the corresponding OS(target might be any Linux distro).
    I'm watching a directory using inotify and I'm getting signals about any activity in the watch directory. So, in a given window manager for any OS, is there any way I can overlay icons in the watch directory like svn does ?
    Thank you.

  4. #4
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How to overlay icons for a dir/file using Qt ?

    That depends on the target program, i.e. how it plugin architecture looks like (if it has one) and what those plugins can do.

    Cheers,
    _

  5. #5
    Join Date
    Sep 2011
    Location
    Bangalore
    Posts
    254
    Thanks
    92
    Thanked 16 Times in 16 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Re: How to overlay icons for a dir/file using Qt ?

    Since there are no Qt APIs as such, I learnt that, I need to use the corresponding file manager specific APIs.
    So I'm starting to try with GNOME's nautilus file manager. I understood that I need to use nautilus_file_info_add_emblem() and other APIs in nautilus-file-info. But I'm unable to find how & which lib should I add in my Qt project to access nautilus file manager APIs ?

    Link: nautilus-file-info

    Kindly help me. Thank you.
    Last edited by rawfool; 2nd April 2014 at 13:16.

  6. #6
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How to overlay icons for a dir/file using Qt ?

    You'll have to ask on a GNOME forum. There is likely a Nautilus plugin library

    Cheers,
    _

Similar Threads

  1. Video and OSD Overlay
    By akhilesh_s in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 12th September 2012, 13:46
  2. QGLWidget with overlay
    By pandora-qt in forum Qt Programming
    Replies: 0
    Last Post: 29th February 2008, 10:44
  3. Pixmap Overlay
    By ToddAtWSU in forum Qt Programming
    Replies: 5
    Last Post: 22nd June 2006, 20:19
  4. Overlay
    By ToddAtWSU in forum Qt Programming
    Replies: 21
    Last Post: 24th May 2006, 13:15

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.