Results 1 to 4 of 4

Thread: Technique to read file property details in Windows 7

  1. #1
    Join Date
    Oct 2012
    Location
    The land of pain (NY)
    Posts
    99
    Thanks
    7
    Thanked 3 Times in 2 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Windows Android

    Default Technique to read file property details in Windows 7

    Is there a way to read properties of file in Qt?

    For example, in Windows File Explorer, if you right click a file, select Properties->Details, I would like to read into my Qt app those fields. I will add that I populated some of those fields using the Windows Resource compiler. I need to read back and I am unaware if there exists a way to do it in Qt. The Windows APIs have some utility in that area, but I was hoping someone out there has done such a technique primarily in Qt - if that's even possible.

    Thanks in advance

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

    Default Re: Technique to read file property details in Windows 7

    Since this would be completely unportable, there is no point in pushing such functionality into Qt. Use native Windows API.
    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. #3
    Join Date
    Oct 2012
    Location
    The land of pain (NY)
    Posts
    99
    Thanks
    7
    Thanked 3 Times in 2 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Windows Android

    Default Re: Technique to read file property details in Windows 7

    Quote Originally Posted by wysota View Post
    Since this would be completely unportable, there is no point in pushing such functionality into Qt. Use native Windows API.
    I agree with the statement in as much as Win APIs used for read back on Windows file systems. I was hoping there was a solution that was more platform agnostic (non-specific). Otherwise, portability down the drain

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

    Default Re: Technique to read file property details in Windows 7

    You mean you want to read Windows exe file properties from platforms other than Windows? I'm sure this is possible.

    You can propobably start your search here: http://stackoverflow.com/questions/1...ion-from-linux
    Last edited by wysota; 2nd March 2013 at 08:45.
    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.


Similar Threads

  1. How to display Details of Audio File in QTreeView
    By owais_blore in forum Qt Programming
    Replies: 2
    Last Post: 26th November 2012, 06:30
  2. Exposing a Qt container property to QtScript, READ and WRITE
    By SingleMalt in forum Qt Programming
    Replies: 6
    Last Post: 12th May 2011, 07:31
  3. Replies: 1
    Last Post: 11th November 2009, 17:28
  4. Updating File attributes and it's summary details
    By senthilsp in forum Qt Programming
    Replies: 1
    Last Post: 11th November 2009, 13:31
  5. Level of Details QwtData Technique?
    By baray98 in forum Qwt
    Replies: 1
    Last Post: 4th September 2009, 07:51

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.