Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Desktop Path
Forum Updated to NodeBB v4.3 + New Features

Desktop Path

Scheduled Pinned Locked Moved General and Desktop
7 Posts 5 Posters 9.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    viveksrivastava
    wrote on last edited by
    #1

    How to find Desktop path

    1 Reply Last reply
    0
    • C Offline
      C Offline
      cincirin
      wrote on last edited by
      #2

      @
      QDesktopServices::displayName(QDesktopServices::DesktopLocation)
      @

      1 Reply Last reply
      0
      • V Offline
        V Offline
        viveksrivastava
        wrote on last edited by
        #3

        an empty QString return

        1 Reply Last reply
        0
        • M Offline
          M Offline
          MuldeR
          wrote on last edited by
          #4

          I think you need:
          @QDesktopServices::storageLocation()@

          If that one returns an empty string for 'QDesktopServices::DesktopLocation', then it means that Qt couldn't determine the Desktop path.

          My OpenSource software at: http://muldersoft.com/

          Qt v4.8.6 MSVC 2013, static/shared: http://goo.gl/BXqhrS

          Go visit the coop: http://youtu.be/Jay...

          1 Reply Last reply
          0
          • V Offline
            V Offline
            viveksrivastava
            wrote on last edited by
            #5

            Thanks,MuldeR Now its work

            1 Reply Last reply
            0
            • B Offline
              B Offline
              bonbinker
              wrote on last edited by
              #6

              QStandardPaths::displayName( QStandardPaths::DesktopLocation );

              人生有多少年华
              人生有多少缅怀
              人生有多少不后悔
              我们沉沦,沉沦在茫茫的暮色
              沉沦在烦琐的人生

              1 Reply Last reply
              0
              • M Offline
                M Offline
                melky
                wrote on last edited by
                #7

                QStandardPaths::writableLocation(QStandardPaths::DesktopLocation)

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved