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. QStandardPaths does not have Videos
Forum Updated to NodeBB v4.3 + New Features

QStandardPaths does not have Videos

Scheduled Pinned Locked Moved Solved General and Desktop
8 Posts 4 Posters 481 Views
  • 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.
  • JoeCFDJ Offline
    JoeCFDJ Offline
    JoeCFD
    wrote on last edited by
    #1

    On Linux QStandardPaths::MoviesLocation gives dir Movies instead of Video. Why?

    1 Reply Last reply
    0
    • Pradeep P NP Offline
      Pradeep P NP Offline
      Pradeep P N
      wrote on last edited by Pradeep P N
      #2

      Hallo @JoeCFD

      Can you please tell me on which platform did you try it ?

      The path on Ubuntu 18.04 LTS which i tried with Qt 5.13 is as below

      "/home/pradeep/Videos"
      11189053-8466-4681-8b02-b04ad33915c6-image.png
      Just one line code to print i tried.

          qDebug() << QStandardPaths::writableLocation(QStandardPaths::MoviesLocation) << endl;
      

      All the best,.

      Pradeep Nimbalkar.
      Upvote the answer(s) that helped you to solve the issue...
      Keep code clean.

      1 Reply Last reply
      5
      • B Offline
        B Offline
        Bonnie
        wrote on last edited by
        #3

        QStandardPaths primarily reads user dirs from xdg-user-dirs

        1 Reply Last reply
        4
        • JoeCFDJ Offline
          JoeCFDJ Offline
          JoeCFD
          wrote on last edited by
          #4

          Thank you for your reply. On the same platform, but Qt 5.9.5 is used.

          Pradeep P NP JonBJ 2 Replies Last reply
          0
          • JoeCFDJ JoeCFD

            Thank you for your reply. On the same platform, but Qt 5.9.5 is used.

            Pradeep P NP Offline
            Pradeep P NP Offline
            Pradeep P N
            wrote on last edited by
            #5

            Hi @JoeCFD

            The path dose not change with Qt Version.
            In case if u still have issue, can you run the sample code which i have posted and provide the output ?

            All the best.

            Pradeep Nimbalkar.
            Upvote the answer(s) that helped you to solve the issue...
            Keep code clean.

            1 Reply Last reply
            1
            • JoeCFDJ JoeCFD

              Thank you for your reply. On the same platform, but Qt 5.9.5 is used.

              JonBJ Online
              JonBJ Online
              JonB
              wrote on last edited by JonB
              #6

              @JoeCFD
              As per @Bonnie's response, from a terminal in your desktop environment type:

              xdg-user-dir VIDEOS
              

              Mine gives me /home/jon/Videos.

              1 Reply Last reply
              0
              • JoeCFDJ Offline
                JoeCFDJ Offline
                JoeCFD
                wrote on last edited by
                #7

                Could be the problem of 5.9.5. movies.png

                1 Reply Last reply
                0
                • JoeCFDJ Offline
                  JoeCFDJ Offline
                  JoeCFD
                  wrote on last edited by JoeCFD
                  #8

                  Ok. you call the different function. Just noticed it. Yours works. Thanks.

                  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