Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Module « PySide6.QtGui »

Classe « QFont »

Informations générales

Héritage

builtins.object
    Object
        QFont

Définition

class QFont(Object):

Description [extrait de QFont.__doc__]

QFont(self) -> None
QFont(self, families: Sequence[str], pointSize: int = -1, weight: int = -1, italic: bool = False) -> None
QFont(self, family: str, pointSize: int = -1, weight: int = -1, italic: bool = False) -> None
QFont(self, font: Union[PySide6.QtGui.QFont, str, Sequence[str]]) -> None
QFont(self, font: Union[PySide6.QtGui.QFont, str, Sequence[str]], pd: PySide6.QtGui.QPaintDevice) -> None

Constructeur(s)

Signature du constructeur Description
__new__(*args, **kwargs) Create and return a new object. See help(type) for accurate signature. [extrait de __new__.__doc__]

Liste des attributs statiques

Nom de l'attribut Valeur
AbsoluteSpacingPySide6.QtGui.QFont.SpacingType.AbsoluteSpacing
AllLowercasePySide6.QtGui.QFont.Capitalization.AllLowercase
AllUppercasePySide6.QtGui.QFont.Capitalization.AllUppercase
AnyStretchPySide6.QtGui.QFont.Stretch.AnyStretch
AnyStylePySide6.QtGui.QFont.StyleHint.AnyStyle
BlackPySide6.QtGui.QFont.Weight.Black
BoldPySide6.QtGui.QFont.Weight.Bold
CapitalizePySide6.QtGui.QFont.Capitalization.Capitalize
CondensedPySide6.QtGui.QFont.Stretch.Condensed
CourierPySide6.QtGui.QFont.StyleHint.Courier
CursivePySide6.QtGui.QFont.StyleHint.Cursive
DecorativePySide6.QtGui.QFont.StyleHint.Decorative
DemiBoldPySide6.QtGui.QFont.Weight.DemiBold
ExpandedPySide6.QtGui.QFont.Stretch.Expanded
ExtraBoldPySide6.QtGui.QFont.Weight.ExtraBold
ExtraCondensedPySide6.QtGui.QFont.Stretch.ExtraCondensed
ExtraExpandedPySide6.QtGui.QFont.Stretch.ExtraExpanded
ExtraLightPySide6.QtGui.QFont.Weight.ExtraLight
FantasyPySide6.QtGui.QFont.StyleHint.Fantasy
ForceOutlinePySide6.QtGui.QFont.StyleStrategy.ForceOutline
HelveticaPySide6.QtGui.QFont.StyleHint.Helvetica
LightPySide6.QtGui.QFont.Weight.Light
MediumPySide6.QtGui.QFont.Weight.Medium
MixedCasePySide6.QtGui.QFont.Capitalization.MixedCase
MonospacePySide6.QtGui.QFont.StyleHint.Monospace
NoAntialiasPySide6.QtGui.QFont.StyleStrategy.NoAntialias
NoFontMergingPySide6.QtGui.QFont.StyleStrategy.NoFontMerging
NormalPySide6.QtGui.QFont.Weight.Normal
NoSubpixelAntialiasPySide6.QtGui.QFont.StyleStrategy.NoSubpixelAntialias
OldEnglishPySide6.QtGui.QFont.StyleHint.OldEnglish
PercentageSpacingPySide6.QtGui.QFont.SpacingType.PercentageSpacing
PreferAntialiasPySide6.QtGui.QFont.StyleStrategy.PreferAntialias
PreferBitmapPySide6.QtGui.QFont.StyleStrategy.PreferBitmap
PreferDefaultPySide6.QtGui.QFont.StyleStrategy.PreferDefault
PreferDefaultHintingPySide6.QtGui.QFont.HintingPreference.PreferDefaultHinting
PreferDevicePySide6.QtGui.QFont.StyleStrategy.PreferDevice
PreferFullHintingPySide6.QtGui.QFont.HintingPreference.PreferFullHinting
PreferMatchPySide6.QtGui.QFont.StyleStrategy.PreferMatch
PreferNoHintingPySide6.QtGui.QFont.HintingPreference.PreferNoHinting
PreferNoShapingPySide6.QtGui.QFont.StyleStrategy.PreferNoShaping
PreferOutlinePySide6.QtGui.QFont.StyleStrategy.PreferOutline
PreferQualityPySide6.QtGui.QFont.StyleStrategy.PreferQuality
PreferVerticalHintingPySide6.QtGui.QFont.HintingPreference.PreferVerticalHinting
SansSerifPySide6.QtGui.QFont.StyleHint.SansSerif
SemiCondensedPySide6.QtGui.QFont.Stretch.SemiCondensed
SemiExpandedPySide6.QtGui.QFont.Stretch.SemiExpanded
SerifPySide6.QtGui.QFont.StyleHint.Serif
SmallCapsPySide6.QtGui.QFont.Capitalization.SmallCaps
StyleItalicPySide6.QtGui.QFont.Style.StyleItalic
StyleNormalPySide6.QtGui.QFont.Style.StyleNormal
StyleObliquePySide6.QtGui.QFont.Style.StyleOblique
SystemPySide6.QtGui.QFont.StyleHint.System
ThinPySide6.QtGui.QFont.Weight.Thin
TimesPySide6.QtGui.QFont.StyleHint.Times
TypeWriterPySide6.QtGui.QFont.StyleHint.TypeWriter
UltraCondensedPySide6.QtGui.QFont.Stretch.UltraCondensed
UltraExpandedPySide6.QtGui.QFont.Stretch.UltraExpanded
UnstretchedPySide6.QtGui.QFont.Stretch.Unstretched

Liste des opérateurs

Signature de l'opérateur Description
__eq__(self, value) Return self==value. [extrait de __eq__.__doc__]
__ge__(self, value) Return self>=value. [extrait de __ge__.__doc__]
__gt__(self, value) Return self>value. [extrait de __gt__.__doc__]
__le__(self, value) Return self<=value. [extrait de __le__.__doc__]
__lshift__(self, arg__1: PySide6.QtCore.QDataStream) -> PySide6.QtCore.QDataStream __lshift__(self, arg__1: PySide6.QtCore.QDataStream) -> PySide6.QtCore.QDataStream [extrait de __lshift__.__doc__]
__lt__(self, value) Return self<value. [extrait de __lt__.__doc__]
__ne__(self, value) Return self!=value. [extrait de __ne__.__doc__]
__rlshift__(self, value) Return value<<self. [extrait de __rlshift__.__doc__]
__rrshift__(self, value) Return value>>self. [extrait de __rrshift__.__doc__]
__rshift__(self, arg__1: PySide6.QtCore.QDataStream) -> PySide6.QtCore.QDataStream __rshift__(self, arg__1: PySide6.QtCore.QDataStream) -> PySide6.QtCore.QDataStream [extrait de __rshift__.__doc__]

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes dépréciées
Signature de la méthodeDescription
__copy__() -> None __copy__() -> None [extrait de __copy__.__doc__]
__repr__(self) Return repr(self). [extrait de __repr__.__doc__]
bold(self) -> bool bold(self) -> bool [extrait de bold.__doc__]
cacheStatistics() -> None cacheStatistics() -> None [extrait de cacheStatistics.__doc__]
Capitalization
capitalization(self) -> PySide6.QtGui.QFont.Capitalization capitalization(self) -> PySide6.QtGui.QFont.Capitalization [extrait de capitalization.__doc__]
cleanup() -> None cleanup() -> None [extrait de cleanup.__doc__]
defaultFamily(self) -> str defaultFamily(self) -> str [extrait de defaultFamily.__doc__]
exactMatch(self) -> bool exactMatch(self) -> bool [extrait de exactMatch.__doc__]
families(self) -> List[str] families(self) -> List[str] [extrait de families.__doc__]
family(self) -> str family(self) -> str [extrait de family.__doc__]
fixedPitch(self) -> bool fixedPitch(self) -> bool [extrait de fixedPitch.__doc__]
fromString(self, arg__1: str) -> bool fromString(self, arg__1: str) -> bool [extrait de fromString.__doc__]
HintingPreference
hintingPreference(self) -> PySide6.QtGui.QFont.HintingPreference hintingPreference(self) -> PySide6.QtGui.QFont.HintingPreference [extrait de hintingPreference.__doc__]
initialize() -> None initialize() -> None [extrait de initialize.__doc__]
insertSubstitution(arg__1: str, arg__2: str) -> None insertSubstitution(arg__1: str, arg__2: str) -> None [extrait de insertSubstitution.__doc__]
insertSubstitutions(arg__1: str, arg__2: Sequence[str]) -> None insertSubstitutions(arg__1: str, arg__2: Sequence[str]) -> None [extrait de insertSubstitutions.__doc__]
isCopyOf(self, arg__1: Union[PySide6.QtGui.QFont, str, Sequence[str]]) -> bool isCopyOf(self, arg__1: Union[PySide6.QtGui.QFont, str, Sequence[str]]) -> bool [extrait de isCopyOf.__doc__]
italic(self) -> bool italic(self) -> bool [extrait de italic.__doc__]
kerning(self) -> bool kerning(self) -> bool [extrait de kerning.__doc__]
key(self) -> str key(self) -> str [extrait de key.__doc__]
legacyWeight(self) -> int legacyWeight(self) -> int [extrait de legacyWeight.__doc__]
letterSpacing(self) -> float letterSpacing(self) -> float [extrait de letterSpacing.__doc__]
letterSpacingType(self) -> PySide6.QtGui.QFont.SpacingType letterSpacingType(self) -> PySide6.QtGui.QFont.SpacingType [extrait de letterSpacingType.__doc__]
overline(self) -> bool overline(self) -> bool [extrait de overline.__doc__]
pixelSize(self) -> int pixelSize(self) -> int [extrait de pixelSize.__doc__]
pointSize(self) -> int pointSize(self) -> int [extrait de pointSize.__doc__]
pointSizeF(self) -> float pointSizeF(self) -> float [extrait de pointSizeF.__doc__]
removeSubstitutions(arg__1: str) -> None removeSubstitutions(arg__1: str) -> None [extrait de removeSubstitutions.__doc__]
resolve(self, arg__1: Union[PySide6.QtGui.QFont, str, Sequence[str]]) -> PySide6.QtGui.QFont resolve(self, arg__1: Union[PySide6.QtGui.QFont, str, Sequence[str]]) -> PySide6.QtGui.QFont [extrait de resolve.__doc__]
resolveMask(self) -> int resolveMask(self) -> int [extrait de resolveMask.__doc__]
setBold(self, arg__1: bool) -> None setBold(self, arg__1: bool) -> None [extrait de setBold.__doc__]
setCapitalization(self, arg__1: PySide6.QtGui.QFont.Capitalization) -> None setCapitalization(self, arg__1: PySide6.QtGui.QFont.Capitalization) -> None [extrait de setCapitalization.__doc__]
setFamilies(self, arg__1: Sequence[str]) -> None setFamilies(self, arg__1: Sequence[str]) -> None [extrait de setFamilies.__doc__]
setFamily(self, arg__1: str) -> None setFamily(self, arg__1: str) -> None [extrait de setFamily.__doc__]
setFixedPitch(self, arg__1: bool) -> None setFixedPitch(self, arg__1: bool) -> None [extrait de setFixedPitch.__doc__]
setHintingPreference(self, hintingPreference: PySide6.QtGui.QFont.HintingPreference) -> None setHintingPreference(self, hintingPreference: PySide6.QtGui.QFont.HintingPreference) -> None [extrait de setHintingPreference.__doc__]
setItalic(self, b: bool) -> None setItalic(self, b: bool) -> None [extrait de setItalic.__doc__]
setKerning(self, arg__1: bool) -> None setKerning(self, arg__1: bool) -> None [extrait de setKerning.__doc__]
setLegacyWeight(self, legacyWeight: int) -> None setLegacyWeight(self, legacyWeight: int) -> None [extrait de setLegacyWeight.__doc__]
setLetterSpacing(self, type: PySide6.QtGui.QFont.SpacingType, spacing: float) -> None setLetterSpacing(self, type: PySide6.QtGui.QFont.SpacingType, spacing: float) -> None [extrait de setLetterSpacing.__doc__]
setOverline(self, arg__1: bool) -> None setOverline(self, arg__1: bool) -> None [extrait de setOverline.__doc__]
setPixelSize(self, arg__1: int) -> None setPixelSize(self, arg__1: int) -> None [extrait de setPixelSize.__doc__]
setPointSize(self, arg__1: int) -> None setPointSize(self, arg__1: int) -> None [extrait de setPointSize.__doc__]
setPointSizeF(self, arg__1: float) -> None setPointSizeF(self, arg__1: float) -> None [extrait de setPointSizeF.__doc__]
setResolveMask(self, mask: int) -> None setResolveMask(self, mask: int) -> None [extrait de setResolveMask.__doc__]
setStretch(self, arg__1: int) -> None setStretch(self, arg__1: int) -> None [extrait de setStretch.__doc__]
setStrikeOut(self, arg__1: bool) -> None setStrikeOut(self, arg__1: bool) -> None [extrait de setStrikeOut.__doc__]
setStyle(self, style: PySide6.QtGui.QFont.Style) -> None setStyle(self, style: PySide6.QtGui.QFont.Style) -> None [extrait de setStyle.__doc__]
setStyleHint(self, arg__1: PySide6.QtGui.QFont.StyleHint, strategy: PySide6.QtGui.QFont.StyleStrategy = PySide6.QtGui.QFont.StyleStrategy.PreferDefault) -> None setStyleHint(self, arg__1: PySide6.QtGui.QFont.StyleHint, strategy: PySide6.QtGui.QFont.StyleStrategy = PySide6.QtGui.QFont.StyleStrategy.PreferDefault) -> None [extrait de setStyleHint.__doc__]
setStyleName(self, arg__1: str) -> None setStyleName(self, arg__1: str) -> None [extrait de setStyleName.__doc__]
setStyleStrategy(self, s: PySide6.QtGui.QFont.StyleStrategy) -> None setStyleStrategy(self, s: PySide6.QtGui.QFont.StyleStrategy) -> None [extrait de setStyleStrategy.__doc__]
setUnderline(self, arg__1: bool) -> None setUnderline(self, arg__1: bool) -> None [extrait de setUnderline.__doc__]
setWeight(self, weight: PySide6.QtGui.QFont.Weight) -> None setWeight(self, weight: PySide6.QtGui.QFont.Weight) -> None [extrait de setWeight.__doc__]
setWordSpacing(self, spacing: float) -> None setWordSpacing(self, spacing: float) -> None [extrait de setWordSpacing.__doc__]
SpacingType
Stretch
stretch(self) -> int stretch(self) -> int [extrait de stretch.__doc__]
strikeOut(self) -> bool strikeOut(self) -> bool [extrait de strikeOut.__doc__]
Style
style(self) -> PySide6.QtGui.QFont.Style style(self) -> PySide6.QtGui.QFont.Style [extrait de style.__doc__]
StyleHint
styleHint(self) -> PySide6.QtGui.QFont.StyleHint styleHint(self) -> PySide6.QtGui.QFont.StyleHint [extrait de styleHint.__doc__]
styleName(self) -> str styleName(self) -> str [extrait de styleName.__doc__]
StyleStrategy
styleStrategy(self) -> PySide6.QtGui.QFont.StyleStrategy styleStrategy(self) -> PySide6.QtGui.QFont.StyleStrategy [extrait de styleStrategy.__doc__]
substitute(arg__1: str) -> str substitute(arg__1: str) -> str [extrait de substitute.__doc__]
substitutes(arg__1: str) -> List[str] substitutes(arg__1: str) -> List[str] [extrait de substitutes.__doc__]
substitutions() -> List[str] substitutions() -> List[str] [extrait de substitutions.__doc__]
swap(self, other: Union[PySide6.QtGui.QFont, str, Sequence[str]]) -> None swap(self, other: Union[PySide6.QtGui.QFont, str, Sequence[str]]) -> None [extrait de swap.__doc__]
toString(self) -> str toString(self) -> str [extrait de toString.__doc__]
underline(self) -> bool underline(self) -> bool [extrait de underline.__doc__]
Weight
weight(self) -> PySide6.QtGui.QFont.Weight weight(self) -> PySide6.QtGui.QFont.Weight [extrait de weight.__doc__]
wordSpacing(self) -> float wordSpacing(self) -> float [extrait de wordSpacing.__doc__]

Méthodes héritées de la classe Object

__delattr__, __getattribute__, __init_subclass__, __setattr__, __subclasshook__

Méthodes héritées de la classe object

__dir__, __format__, __hash__, __reduce__, __reduce_ex__, __sizeof__, __str__