Skip to content

FileSelector

Qt Base Class: QFileSelector

Signature: QFileSelector(self, parent: Optional[PySide6.QtCore.QObject] = None) -> None

Base classes

Name Children Inherits
ObjectMixin
prettyqt.core.object
QFileSelector
PySide6.QtCore
QFileSelector(self, parent: Optional[PySide6.QtCore.QObject] \= None) -> None

⋔ Inheritance diagram

graph TD
  1473299848208["core.FileSelector"]
  1473299815024["core.ObjectMixin"]
  140713234304496["builtins.object"]
  1473288933008["QtCore.QFileSelector"]
  1473288842240["QtCore.QObject"]
  1473291690208["Shiboken.Object"]
  1473299815024 --> 1473299848208
  140713234304496 --> 1473299815024
  1473288933008 --> 1473299848208
  1473288842240 --> 1473288933008
  1473291690208 --> 1473288842240
  140713234304496 --> 1473291690208

🛈 DocStrings

Bases: ObjectMixin, QFileSelector

Convenient way of selecting file variants.

Source code in prettyqt\core\fileselector.py
class FileSelector(core.ObjectMixin, core.QFileSelector):
    """Convenient way of selecting file variants."""

    def select_path(self, path: datatypes.PathType) -> str:
        return self.select(os.fspath(path))

    def select_url(self, url: datatypes.UrlType) -> core.Url:
        if isinstance(url, str):
            url = core.QUrl(url)
        return core.Url(self.select(url))

⌗ Property table

Qt Property Type Doc
objectName QString