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. Custom Qt USB FileSave dialog
Forum Updated to NodeBB v4.3 + New Features

Custom Qt USB FileSave dialog

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 190 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.
  • J Offline
    J Offline
    Jim S
    wrote on last edited by
    #1

    Hi,

    I need a Qt FileSave dialog with a list of USBs attached to the system. It'll also need a mount feature so the USBs are mounted at a specified location. It must mount USBs, display and navigate only the USBs storage.

    My first approach was parsing the output of a Linux USB system command using QProcess. Then using a Linux mount command to mount the device and capture success or failure.

    Is there a more feasible way to do this using the Qt framework on Linux?

    --James S.

    C 1 Reply Last reply
    0
    • J Jim S

      Hi,

      I need a Qt FileSave dialog with a list of USBs attached to the system. It'll also need a mount feature so the USBs are mounted at a specified location. It must mount USBs, display and navigate only the USBs storage.

      My first approach was parsing the output of a Linux USB system command using QProcess. Then using a Linux mount command to mount the device and capture success or failure.

      Is there a more feasible way to do this using the Qt framework on Linux?

      --James S.

      C Offline
      C Offline
      ChrisW67
      wrote on last edited by
      #2

      Perhaps look into the Qt D-Bus module if D-Bus is available on your target platform. The org.freedesktop.UDisks2 system bus service looks of interest. Qt provides qdbus and qdbusviewer to help dig around in this world, and there is also dbus-monitor.

      I am not familiar enough with how this works to help further.

      It'll also need a mount feature so the USBs are mounted at a specified location.

      Mounted at a user-specified location or a known, fixed location (i.e. specified by the /etc/fstab file)?
      Any arbitrary USB drive or only known USB devices?
      Mounting could be done with sudo and a suitably restrictive sudoers file but you need to think about the security implications.

      1 Reply Last reply
      1

      • Login

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