Utils

Classes

  • EnvVar

  • TextWrap

  • QStyleSheet

  • Modifiers

  • Alignment

  • Routes

  • staticproperty

  • classproperty

  • QueryDict

  • EnumDirectValueMeta

  • CheckNone

QStyleSheet

argument
type
value example

qss

str

/path/to/style.ext

str

:prefix/path/to/style.ext

str

/path/to/file.json

dict

{"color": "white", "background-color": "black"}

str

QWidget { background-color: white;}

vars

dict

{"themeColor": "blue"}

usage example

Widget(
    qss=QStyleSheet(
            qss  = {"background-color": "--themeColor"},
            vars = {"themeColor": "blue"}
        )
)

Routes

StackedWidget(
    children=Routes(
        "/",
        "/home": QWidget(),
        "/login": QWidget(),
        ...
    )
)

Last updated

Was this helpful?