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. How to select a file?
Forum Updated to NodeBB v4.3 + New Features

How to select a file?

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 2 Posters 517 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.
  • Q Offline
    Q Offline
    qwe3
    wrote on last edited by
    #1

    Hi,

    I open folder using QDesktopServices::openUrl(QUrl::fromLocalFile()). Now I would like to select a file on it. What means select for me? The same active when I once click left mouse button on file. So highlight, no execute.

    jsulmJ 1 Reply Last reply
    0
    • Q qwe3

      Hi,

      I open folder using QDesktopServices::openUrl(QUrl::fromLocalFile()). Now I would like to select a file on it. What means select for me? The same active when I once click left mouse button on file. So highlight, no execute.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @qwe3 https://doc.qt.io/qt-5/qfiledialog.html

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2
      • Q Offline
        Q Offline
        qwe3
        wrote on last edited by
        #3

        @jsulm Thank you for answer, but I need something other than QDialog. I prefer open like windows explorer.

        jsulmJ 1 Reply Last reply
        0
        • Q qwe3

          @jsulm Thank you for answer, but I need something other than QDialog. I prefer open like windows explorer.

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @qwe3 I don't understand your use case.Can you explain exactly what you want to do?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • Q Offline
            Q Offline
            qwe3
            wrote on last edited by
            #5

            @jsulm I find solution. But not for linux for example:

            https://stackoverflow.com/questions/9137692/qdesktopservicesopenurl-with-selecting-specified-file-in-explorer

            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