Results 1 to 2 of 2

Thread: how to create shortcut to a directory

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2010
    Posts
    54
    Qt products
    Qt/Embedded
    Platforms
    Symbian S60

    Default how to create shortcut to a directory

    Hi
    I need to create a shortcut for a browsed directory in linux , qt
    1) I am using the QFile::link api , but I just wanted to know what extension to the link should be given.
    like in windows , we have ".lnk" as the filename extension , what could be the prototype in linux.

    2) Whether the appropriate directory would open up when I click the shortcut link

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: how to create shortcut to a directory

    1) I am using the QFile::link api , but I just wanted to know what extension to the link should be given.
    Linux has no special requirements of symbolic link names.
    2) Whether the appropriate directory would open up when I click the shortcut link
    Unless a program makes special effort to manipulate the symbolic link itself then opening the link will open the target file/directory.

Similar Threads

  1. Application directory path on linux (shortcut)
    By MadBear in forum Qt Programming
    Replies: 2
    Last Post: 11th March 2018, 20:18
  2. Create a shortcut in the Mainmene of the OS
    By HeReSY in forum Qt Programming
    Replies: 5
    Last Post: 20th July 2010, 08:56
  3. Create shortcut, add to the dock after install on Mac
    By mourad in forum Qt Programming
    Replies: 1
    Last Post: 25th June 2008, 08:43
  4. How to create a symlink to a directory?
    By ucomesdag in forum Qt Programming
    Replies: 4
    Last Post: 21st January 2007, 19:01
  5. create file in another directory
    By raphaelf in forum Qt Programming
    Replies: 3
    Last Post: 16th February 2006, 10:04

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.