Results 1 to 13 of 13

Thread: Projects description extensions

  1. #1
    Join Date
    Oct 2009
    Posts
    70
    Thanks
    2
    Thanked 2 Times in 2 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Projects description extensions

    Hi guys, I have another problem: I want add any description to files as you can see in picture below. How can I do it in Qt Creator ?
    Attached Images Attached Images

  2. #2
    Join Date
    Oct 2009
    Posts
    22
    Thanked 1 Time in 1 Post

    Default Re: Projects description extensions

    You need to write a shell extension, you don't necessarily need Qt but you need to implement the IQueryInfo and IPersistFile interfaces as well as IUnknown to add that functionality to explorer.

  3. #3
    Join Date
    Oct 2009
    Posts
    70
    Thanks
    2
    Thanked 2 Times in 2 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: Projects description extensions

    ...I never had use it....What it needs?

  4. #4
    Join Date
    Oct 2009
    Posts
    22
    Thanked 1 Time in 1 Post

    Default Re: Projects description extensions

    You need to create an ATL project in Visual Studio and implement the interfaces IQueryInfo, IPersistFile and IUnknown, this link may help you:

    http://www.codeproject.com/KB/shell/shellextguide3.aspx

    The examples here use MFC which is not necessary but it should get you started.

  5. #5
    Join Date
    Oct 2009
    Posts
    70
    Thanks
    2
    Thanked 2 Times in 2 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: Projects description extensions

    I used Dev-C++ when I needed to add any description to file...and it was working

  6. #6
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Projects description extensions

    Yes, to add a description that all your need to do, but if you wanted to add a popup box like the one shown in your screenshot you would have to implement the interfaces as stated. From your first question it seemed you were asking how to implement or copy such behaviour, not just change the "description" line.

  7. #7
    Join Date
    Oct 2009
    Posts
    22
    Thanked 1 Time in 1 Post

    Default Re: Projects description extensions

    Seems I over-complicated matters, I thought you were asking how to display your own custom info tips for your own files types.

  8. #8
    Join Date
    Oct 2009
    Posts
    70
    Thanks
    2
    Thanked 2 Times in 2 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: Projects description extensions

    fatjuicymole: I don't need this popup ...Just this text under file name...
    I need just add version under file name because I have versioned files...
    See this red rectangle...not that popup

  9. #9
    Join Date
    Oct 2009
    Posts
    22
    Thanked 1 Time in 1 Post

    Default Re: Projects description extensions

    I can't help you there, I use Visual Studio and MS resource files, it must be just as easy in Qt Creator though. Perhaps someone else can point you in the right direction

  10. #10
    Join Date
    Oct 2009
    Posts
    70
    Thanks
    2
    Thanked 2 Times in 2 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: Projects description extensions

    I used everything...but the easiest way was do it by Dev-C++ and little bit CodeBlocks...but here...I don't know.

  11. #11
    Join Date
    Oct 2009
    Posts
    70
    Thanks
    2
    Thanked 2 Times in 2 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: Projects description extensions

    Nothing?

  12. #12
    Join Date
    Apr 2007
    Location
    Czech republic
    Posts
    14
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Projects description extensions

    You have to use .rc file

    see attached file (rename it to rc.rc) and edit your project file

    RC_FILE = rc.rc


    honza
    Attached Files Attached Files

  13. The following user says thank you to honza for this useful post:

    Peppy (8th November 2009)

  14. #13
    Join Date
    Oct 2009
    Posts
    70
    Thanks
    2
    Thanked 2 Times in 2 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: Projects description extensions

    Thaaaaanks ! Thank you very much

Similar Threads

  1. Replies: 8
    Last Post: 28th October 2013, 01:08
  2. Some very weird compilation warnings
    By MarkoSan in forum Qt Programming
    Replies: 21
    Last Post: 23rd January 2008, 16:48

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.