java.lang.Object
io.qt.QtObject
io.qt.core.QStandardPaths
- All Implemented Interfaces:
QtObjectInterface
Methods for accessing standard paths
Java wrapper for Qt class QStandardPaths
- Since:
- This class was introduced in Qt 5.0.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enumQStandardPaths::LocateOption
static final class
QFlags
type for enumQStandardPaths.LocateOption
static enum
Java wrapper for Qt enumQStandardPaths::StandardLocation
-
Field Summary
Modifier and TypeFieldDescriptionstatic final QMetaObject
This variable stores the meta-object for the class. -
Method Summary
Modifier and TypeMethodDescriptionstatic String
static void
enableTestMode
(boolean testMode) static String
findExecutable
(String executableName) Overloaded function forfindExecutable(java.lang.String, java.util.Collection)
withpaths = new java.util.ArrayList<String>()
.static String
findExecutable
(String executableName, Collection<String> paths) static boolean
SeeQStandardPaths::
isTestModeEnabled() static String
locate
(QStandardPaths.StandardLocation type, String fileName) Overloaded function forlocate(io.qt.core.QStandardPaths.StandardLocation, java.lang.String, io.qt.core.QStandardPaths.LocateOptions)
withoptions = new io.qt.core.QStandardPaths.LocateOptions(0)
.static String
locate
(QStandardPaths.StandardLocation type, String fileName, QStandardPaths.LocateOption ... options) static String
locate
(QStandardPaths.StandardLocation type, String fileName, QStandardPaths.LocateOptions options) static QStringList
locateAll
(QStandardPaths.StandardLocation type, String fileName) Overloaded function forlocateAll(io.qt.core.QStandardPaths.StandardLocation, java.lang.String, io.qt.core.QStandardPaths.LocateOptions)
withoptions = new io.qt.core.QStandardPaths.LocateOptions(0)
.static QStringList
locateAll
(QStandardPaths.StandardLocation type, String fileName, QStandardPaths.LocateOption ... options) static QStringList
locateAll
(QStandardPaths.StandardLocation type, String fileName, QStandardPaths.LocateOptions options) static void
setTestModeEnabled
(boolean testMode) static QStringList
static String
Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Field Details
-
staticMetaObject
This variable stores the meta-object for the class.
-
-
Method Details
-
displayName
- Parameters:
type
-- Returns:
-
enableTestMode
public static void enableTestMode(boolean testMode) - Parameters:
testMode
-
-
findExecutable
- Parameters:
executableName
-paths
-- Returns:
-
isTestModeEnabled
public static boolean isTestModeEnabled()See
QStandardPaths::
isTestModeEnabled() - Returns:
-
locate
public static String locate(QStandardPaths.StandardLocation type, String fileName, QStandardPaths.LocateOptions options) - Parameters:
type
-fileName
-options
-- Returns:
-
locateAll
public static QStringList locateAll(QStandardPaths.StandardLocation type, String fileName, QStandardPaths.LocateOptions options) See
QStandardPaths::
locateAll(QStandardPaths::StandardLocation, QString, QStandardPaths::LocateOptions) - Parameters:
type
-fileName
-options
-- Returns:
-
setTestModeEnabled
public static void setTestModeEnabled(boolean testMode) - Parameters:
testMode
-
-
standardLocations
- Parameters:
type
-- Returns:
-
writableLocation
- Parameters:
type
-- Returns:
-
findExecutable
Overloaded function for
findExecutable(java.lang.String, java.util.Collection)
withpaths = new java.util.ArrayList<String>()
. -
locate
Overloaded function for
locate(io.qt.core.QStandardPaths.StandardLocation, java.lang.String, io.qt.core.QStandardPaths.LocateOptions)
withoptions = new io.qt.core.QStandardPaths.LocateOptions(0)
. -
locate
public static String locate(QStandardPaths.StandardLocation type, String fileName, QStandardPaths.LocateOption ... options) -
locateAll
Overloaded function for
locateAll(io.qt.core.QStandardPaths.StandardLocation, java.lang.String, io.qt.core.QStandardPaths.LocateOptions)
withoptions = new io.qt.core.QStandardPaths.LocateOptions(0)
. -
locateAll
public static QStringList locateAll(QStandardPaths.StandardLocation type, String fileName, QStandardPaths.LocateOption ... options)
-