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. "Open file" dialog in Qt
Forum Updated to NodeBB v4.3 + New Features

"Open file" dialog in Qt

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 66.1k 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.
  • G Offline
    G Offline
    galmeida
    wrote on last edited by
    #1

    I want the application to be able to browse the file system, like windows open file dialog.Is there anything likle that already made on Qt that does that and puts the file into a QFile object?

    1 Reply Last reply
    0
    • V Offline
      V Offline
      viswesr
      wrote on last edited by
      #2

      Use QFileDialog.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        alexander
        wrote on last edited by
        #3

        @QString fileName = QFileDialog::getOpenFileName(this, tr("Open File"),
        "",
        tr("Files (.)"));@

        this static function calls the native file dialog.

        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