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 « PySide2.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)
QFont(self, family: str, pointSize: int = -1, weight: int = -1, italic: bool = False)
QFont(self, font: PySide2.QtGui.QFont)
QFont(self, font: PySide2.QtGui.QFont, pd: PySide2.QtGui.QPaintDevice)

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__]
__init__(self, /, *args, **kwargs) Initialize self. See help(type(self)) for accurate signature. [extrait de __init__.__doc__]

Liste des attributs statiques

Nom de l'attribut Valeur
AbsoluteSpacingPySide2.QtGui.QFont.SpacingType.AbsoluteSpacing
AllLowercasePySide2.QtGui.QFont.Capitalization.AllLowercase
AllUppercasePySide2.QtGui.QFont.Capitalization.AllUppercase
AnyStretchPySide2.QtGui.QFont.Stretch.AnyStretch
AnyStylePySide2.QtGui.QFont.StyleHint.AnyStyle
BlackPySide2.QtGui.QFont.Weight.Black
BoldPySide2.QtGui.QFont.Weight.Bold
CapitalizePySide2.QtGui.QFont.Capitalization.Capitalize
CondensedPySide2.QtGui.QFont.Stretch.Condensed
CourierPySide2.QtGui.QFont.StyleHint.Courier
CursivePySide2.QtGui.QFont.StyleHint.Cursive
DecorativePySide2.QtGui.QFont.StyleHint.Decorative
DemiBoldPySide2.QtGui.QFont.Weight.DemiBold
ExpandedPySide2.QtGui.QFont.Stretch.Expanded
ExtraBoldPySide2.QtGui.QFont.Weight.ExtraBold
ExtraCondensedPySide2.QtGui.QFont.Stretch.ExtraCondensed
ExtraExpandedPySide2.QtGui.QFont.Stretch.ExtraExpanded
ExtraLightPySide2.QtGui.QFont.Weight.ExtraLight
FantasyPySide2.QtGui.QFont.StyleHint.Fantasy
ForceIntegerMetricsPySide2.QtGui.QFont.StyleStrategy.ForceIntegerMetrics
ForceOutlinePySide2.QtGui.QFont.StyleStrategy.ForceOutline
HelveticaPySide2.QtGui.QFont.StyleHint.Helvetica
LightPySide2.QtGui.QFont.Weight.Light
MediumPySide2.QtGui.QFont.Weight.Medium
MixedCasePySide2.QtGui.QFont.Capitalization.MixedCase
MonospacePySide2.QtGui.QFont.StyleHint.Monospace
NoAntialiasPySide2.QtGui.QFont.StyleStrategy.NoAntialias
NoFontMergingPySide2.QtGui.QFont.StyleStrategy.NoFontMerging
NormalPySide2.QtGui.QFont.Weight.Normal
NoSubpixelAntialiasPySide2.QtGui.QFont.StyleStrategy.NoSubpixelAntialias
OldEnglishPySide2.QtGui.QFont.StyleHint.OldEnglish
OpenGLCompatiblePySide2.QtGui.QFont.StyleStrategy.OpenGLCompatible
PercentageSpacingPySide2.QtGui.QFont.SpacingType.PercentageSpacing
PreferAntialiasPySide2.QtGui.QFont.StyleStrategy.PreferAntialias
PreferBitmapPySide2.QtGui.QFont.StyleStrategy.PreferBitmap
PreferDefaultPySide2.QtGui.QFont.StyleStrategy.PreferDefault
PreferDefaultHintingPySide2.QtGui.QFont.HintingPreference.PreferDefaultHinting
PreferDevicePySide2.QtGui.QFont.StyleStrategy.PreferDevice
PreferFullHintingPySide2.QtGui.QFont.HintingPreference.PreferFullHinting
PreferMatchPySide2.QtGui.QFont.StyleStrategy.PreferMatch
PreferNoHintingPySide2.QtGui.QFont.HintingPreference.PreferNoHinting
PreferNoShapingPySide2.QtGui.QFont.StyleStrategy.PreferNoShaping
PreferOutlinePySide2.QtGui.QFont.StyleStrategy.PreferOutline
PreferQualityPySide2.QtGui.QFont.StyleStrategy.PreferQuality
PreferVerticalHintingPySide2.QtGui.QFont.HintingPreference.PreferVerticalHinting
SansSerifPySide2.QtGui.QFont.StyleHint.SansSerif
SemiCondensedPySide2.QtGui.QFont.Stretch.SemiCondensed
SemiExpandedPySide2.QtGui.QFont.Stretch.SemiExpanded
SerifPySide2.QtGui.QFont.StyleHint.Serif
SmallCapsPySide2.QtGui.QFont.Capitalization.SmallCaps
StyleItalicPySide2.QtGui.QFont.Style.StyleItalic
StyleNormalPySide2.QtGui.QFont.Style.StyleNormal
StyleObliquePySide2.QtGui.QFont.Style.StyleOblique
SystemPySide2.QtGui.QFont.StyleHint.System
ThinPySide2.QtGui.QFont.Weight.Thin
TimesPySide2.QtGui.QFont.StyleHint.Times
TypeWriterPySide2.QtGui.QFont.StyleHint.TypeWriter
UltraCondensedPySide2.QtGui.QFont.Stretch.UltraCondensed
UltraExpandedPySide2.QtGui.QFont.Stretch.UltraExpanded
UnstretchedPySide2.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: PySide2.QtCore.QDataStream) -> PySide2.QtCore.QDataStream __lshift__(self, arg__1: PySide2.QtCore.QDataStream) -> PySide2.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: PySide2.QtCore.QDataStream) -> PySide2.QtCore.QDataStream __rshift__(self, arg__1: PySide2.QtCore.QDataStream) -> PySide2.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__(self) __copy__(self) [extrait de __copy__.__doc__]
__repr__(self) Return repr(self). [extrait de __repr__.__doc__]
bold(self) -> bool bold(self) -> bool [extrait de bold.__doc__]
cacheStatistics() cacheStatistics() [extrait de cacheStatistics.__doc__]
Capitalization
capitalization(self) -> PySide2.QtGui.QFont.Capitalization capitalization(self) -> PySide2.QtGui.QFont.Capitalization [extrait de capitalization.__doc__]
cleanup() cleanup() [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) -> typing.List[str] families(self) -> typing.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) -> PySide2.QtGui.QFont.HintingPreference hintingPreference(self) -> PySide2.QtGui.QFont.HintingPreference [extrait de hintingPreference.__doc__]
initialize() initialize() [extrait de initialize.__doc__]
insertSubstitution(arg__1: str, arg__2: str) insertSubstitution(arg__1: str, arg__2: str) [extrait de insertSubstitution.__doc__]
insertSubstitutions(arg__1: str, arg__2: typing.Sequence[str]) insertSubstitutions(arg__1: str, arg__2: typing.Sequence[str]) [extrait de insertSubstitutions.__doc__]
isCopyOf(self, arg__1: PySide2.QtGui.QFont) -> bool isCopyOf(self, arg__1: PySide2.QtGui.QFont) -> 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__]
lastResortFamily(self) -> str lastResortFamily(self) -> str [extrait de lastResortFamily.__doc__]
lastResortFont(self) -> str lastResortFont(self) -> str [extrait de lastResortFont.__doc__]
letterSpacing(self) -> float letterSpacing(self) -> float [extrait de letterSpacing.__doc__]
letterSpacingType(self) -> PySide2.QtGui.QFont.SpacingType letterSpacingType(self) -> PySide2.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__]
rawMode(self) -> bool rawMode(self) -> bool [extrait de rawMode.__doc__]
rawName(self) -> str rawName(self) -> str [extrait de rawName.__doc__]
removeSubstitutions(arg__1: str) removeSubstitutions(arg__1: str) [extrait de removeSubstitutions.__doc__]
resolve resolve(self) -> int [extrait de resolve.__doc__]
setBold(self, arg__1: bool) setBold(self, arg__1: bool) [extrait de setBold.__doc__]
setCapitalization(self, arg__1: PySide2.QtGui.QFont.Capitalization) setCapitalization(self, arg__1: PySide2.QtGui.QFont.Capitalization) [extrait de setCapitalization.__doc__]
setFamilies(self, arg__1: typing.Sequence[str]) setFamilies(self, arg__1: typing.Sequence[str]) [extrait de setFamilies.__doc__]
setFamily(self, arg__1: str) setFamily(self, arg__1: str) [extrait de setFamily.__doc__]
setFixedPitch(self, arg__1: bool) setFixedPitch(self, arg__1: bool) [extrait de setFixedPitch.__doc__]
setHintingPreference(self, hintingPreference: PySide2.QtGui.QFont.HintingPreference) setHintingPreference(self, hintingPreference: PySide2.QtGui.QFont.HintingPreference) [extrait de setHintingPreference.__doc__]
setItalic(self, b: bool) setItalic(self, b: bool) [extrait de setItalic.__doc__]
setKerning(self, arg__1: bool) setKerning(self, arg__1: bool) [extrait de setKerning.__doc__]
setLetterSpacing(self, type: PySide2.QtGui.QFont.SpacingType, spacing: float) setLetterSpacing(self, type: PySide2.QtGui.QFont.SpacingType, spacing: float) [extrait de setLetterSpacing.__doc__]
setOverline(self, arg__1: bool) setOverline(self, arg__1: bool) [extrait de setOverline.__doc__]
setPixelSize(self, arg__1: int) setPixelSize(self, arg__1: int) [extrait de setPixelSize.__doc__]
setPointSize(self, arg__1: int) setPointSize(self, arg__1: int) [extrait de setPointSize.__doc__]
setPointSizeF(self, arg__1: float) setPointSizeF(self, arg__1: float) [extrait de setPointSizeF.__doc__]
setRawMode(self, arg__1: bool) setRawMode(self, arg__1: bool) [extrait de setRawMode.__doc__]
setRawName(self, arg__1: str) setRawName(self, arg__1: str) [extrait de setRawName.__doc__]
setStretch(self, arg__1: int) setStretch(self, arg__1: int) [extrait de setStretch.__doc__]
setStrikeOut(self, arg__1: bool) setStrikeOut(self, arg__1: bool) [extrait de setStrikeOut.__doc__]
setStyle(self, style: PySide2.QtGui.QFont.Style) setStyle(self, style: PySide2.QtGui.QFont.Style) [extrait de setStyle.__doc__]
setStyleHint(self, arg__1: PySide2.QtGui.QFont.StyleHint, strategy: PySide2.QtGui.QFont.StyleStrategy = PySide2.QtGui.QFont.StyleStrategy.PreferDefault) setStyleHint(self, arg__1: PySide2.QtGui.QFont.StyleHint, strategy: PySide2.QtGui.QFont.StyleStrategy = PySide2.QtGui.QFont.StyleStrategy.PreferDefault) [extrait de setStyleHint.__doc__]
setStyleName(self, arg__1: str) setStyleName(self, arg__1: str) [extrait de setStyleName.__doc__]
setStyleStrategy(self, s: PySide2.QtGui.QFont.StyleStrategy) setStyleStrategy(self, s: PySide2.QtGui.QFont.StyleStrategy) [extrait de setStyleStrategy.__doc__]
setUnderline(self, arg__1: bool) setUnderline(self, arg__1: bool) [extrait de setUnderline.__doc__]
setWeight(self, arg__1: int) setWeight(self, arg__1: int) [extrait de setWeight.__doc__]
setWordSpacing(self, spacing: float) setWordSpacing(self, spacing: float) [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) -> PySide2.QtGui.QFont.Style style(self) -> PySide2.QtGui.QFont.Style [extrait de style.__doc__]
StyleHint
styleHint(self) -> PySide2.QtGui.QFont.StyleHint styleHint(self) -> PySide2.QtGui.QFont.StyleHint [extrait de styleHint.__doc__]
styleName(self) -> str styleName(self) -> str [extrait de styleName.__doc__]
StyleStrategy
styleStrategy(self) -> PySide2.QtGui.QFont.StyleStrategy styleStrategy(self) -> PySide2.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) -> typing.List[str] substitutes(arg__1: str) -> typing.List[str] [extrait de substitutes.__doc__]
substitutions() -> typing.List[str] substitutions() -> typing.List[str] [extrait de substitutions.__doc__]
swap(self, other: PySide2.QtGui.QFont) swap(self, other: PySide2.QtGui.QFont) [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) -> int weight(self) -> int [extrait de weight.__doc__]
wordSpacing(self) -> float wordSpacing(self) -> float [extrait de wordSpacing.__doc__]

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

__init_subclass__, __subclasshook__

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

__delattr__, __dir__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__