chooseFile

chooseFile(objectOrName, filename)

This function invisibly invokes the platform's native "choose file" dialog. The objectOrName must always be the application's "SWT" object (":SWT") or "SquishJavaFX" object (":SquishJavaFX"). The filename is a string (that may include a path) which specifies the filename chosen using the dialog.

Note: This function is only available when testing SWT or JavaFX applications.

chooseFile(objectOrName, array of filenames)

Multiple filenames can be set with array of filenames.

chooseFile(":SWT", ["file1", "file2"]);
chooseFile(":SWT", ["file1", "file2"]);
chooseFile(":SWT", ["file1", "file2"])
chooseFile(":SWT", ["file1", "file2"])
chooseFile(":SWT", [list "file1" "file2"])

© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners.
The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.
Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.

Search Results