Results 1 to 4 of 4

Thread: How to open a destination folder in Windows Explorer?

  1. #1
    Join Date
    Sep 2011
    Posts
    24
    Qt products
    Qt4
    Platforms
    Windows

    Default How to open a destination folder in Windows Explorer?

    Hi,

    I want to open a destination folder in Windows explorer from Qt. Does anyone how to do this in code?

    Thanks,
    Indika...

  2. #2
    Join Date
    Feb 2011
    Location
    Romania
    Posts
    53
    Thanks
    1
    Thanked 11 Times in 9 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to open a destination folder in Windows Explorer?

    QProcess::startDetached("explorer yourPath")

  3. #3
    Join Date
    Sep 2009
    Location
    Wroclaw, Poland
    Posts
    1,394
    Thanked 342 Times in 324 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: How to open a destination folder in Windows Explorer?

    Qt Code:
    1. QDesktopServices::openUrl( QUrl::fromLocalFile(path) );
    To copy to clipboard, switch view to plain text mode 

  4. #4
    Join Date
    Sep 2011
    Posts
    24
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to open a destination folder in Windows Explorer?

    Thanks for the replies.

    Indika...

Similar Threads

  1. Create windows explorer with QListView QTreeView
    By dima in forum Qt Programming
    Replies: 3
    Last Post: 13th January 2012, 10:12
  2. Multiplateform open folder in explorer
    By bunjee in forum Qt Programming
    Replies: 3
    Last Post: 10th January 2011, 08:27
  3. Best way to create Windows Explorer type UI
    By scarleton in forum Newbie
    Replies: 8
    Last Post: 22nd August 2010, 19:30
  4. Replies: 1
    Last Post: 15th August 2009, 11:23
  5. windows explorer
    By denis in forum Newbie
    Replies: 1
    Last Post: 25th January 2006, 05:59

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.