NativeFileChooser.filename

string filename() const

Gets the first selected filename.

Convenience method equivalent to filename(0).

string filename(int index) const

Gets a selected filename by index.

Parameters

indexIndex of the file (0 to count-1)

Returns

The filename, or null if index is out of range