|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.trolltech.qt.internal.QSignalEmitterInternal
com.trolltech.qt.QSignalEmitter
com.trolltech.qt.QtJambiObject
com.trolltech.qt.core.QObject
com.trolltech.qt.gui.QWidget
com.trolltech.qt.gui.QComboBox
com.trolltech.qt.gui.QFontComboBox
public class QFontComboBox
The QFontComboBox
widget is a combobox that lets the user select a font family. The combobox is populated with an alphabetized list of font family names, such as Arial, Helvetica, and Times New Roman. Family names are displayed using the actual font when possible. For fonts such as Symbol, where the name is not representable in the font itself, a sample of the font is displayed next to the family name.
QFontComboBox
is often used in toolbars, in conjunction with a QComboBox
for controlling the font size and two QToolButton
s for bold and italic.
When the user selects a new font, the currentFontChanged()
signal is emitted in addition to currentIndexChanged()
.
Call setWritingSystem()
to tell QFontComboBox
to show only fonts that support a given writing system, and setFontFilters()
to filter out certain types of fonts as e.g. non scalable fonts or monospaced fonts.
QComboBox
, QFont
, QFontInfo
, QFontMetrics
, QFontDatabase
, and Character Map Example.
Nested Class Summary | |
---|---|
static class |
QFontComboBox.FontFilter
This enum can be used to only show certain types of fonts in the font combo box. |
static class |
QFontComboBox.FontFilters
This is a flags class for com.trolltech.qt.gui.QFontComboBox.FontFilter |
Nested classes/interfaces inherited from class com.trolltech.qt.gui.QComboBox |
---|
QComboBox.InsertPolicy, QComboBox.SizeAdjustPolicy |
Nested classes/interfaces inherited from class com.trolltech.qt.gui.QWidget |
---|
QWidget.RenderFlag, QWidget.RenderFlags |
Nested classes/interfaces inherited from class com.trolltech.qt.QSignalEmitter |
---|
QSignalEmitter.AbstractSignal, QSignalEmitter.Signal0, QSignalEmitter.Signal1, QSignalEmitter.Signal2, QSignalEmitter.Signal3, QSignalEmitter.Signal4, QSignalEmitter.Signal5, QSignalEmitter.Signal6, QSignalEmitter.Signal7, QSignalEmitter.Signal8, QSignalEmitter.Signal9 |
Nested classes/interfaces inherited from class com.trolltech.qt.internal.QSignalEmitterInternal |
---|
com.trolltech.qt.internal.QSignalEmitterInternal.AbstractSignalInternal |
Field Summary | |
---|---|
QSignalEmitter.Signal1 |
currentFontChanged
This signal takes 1 generic argument(s). |
Fields inherited from class com.trolltech.qt.gui.QComboBox |
---|
activated, activatedIndex, currentIndexChanged, currentStringChanged, editTextChanged, highlighted, highlightedIndex |
Fields inherited from class com.trolltech.qt.gui.QWidget |
---|
customContextMenuRequested |
Fields inherited from class com.trolltech.qt.internal.QSignalEmitterInternal |
---|
currentSender |
Constructor Summary | |
---|---|
QFontComboBox()
Constructs a font combobox with the given parent. |
|
QFontComboBox(QWidget parent)
Constructs a font combobox with the given parent. |
Method Summary | |
---|---|
QFont |
currentFont()
This property holds the currently selected font. |
QFontComboBox.FontFilters |
fontFilters()
This property holds the filter for the combobox. |
void |
setCurrentFont(QFont f)
This property holds the currently selected font. |
void |
setFontFilters(QFontComboBox.FontFilter[] filters)
This property holds the filter for the combobox. |
void |
setFontFilters(QFontComboBox.FontFilters filters)
This property holds the filter for the combobox. |
void |
setWritingSystem(QFontDatabase.WritingSystem arg__1)
This property holds the writing system that serves as a filter for the combobox. |
QFontDatabase.WritingSystem |
writingSystem()
This property holds the writing system that serves as a filter for the combobox. |
Methods inherited from class com.trolltech.qt.core.QObject |
---|
childEvent, children, connectSlotsByName, customEvent, disposeLater, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, event, eventFilter, findChild, findChild, findChild, findChildren, findChildren, findChildren, findChildren, indexOfProperty, installEventFilter, isWidgetType, killTimer, moveToThread, objectName, parent, properties, property, removeEventFilter, setObjectName, setParent, setProperty, startTimer, timerEvent, toString, userProperty |
Methods inherited from class com.trolltech.qt.QtJambiObject |
---|
dispose, disposed, equals, finalize, reassignNativeResources, tr, tr, tr |
Methods inherited from class com.trolltech.qt.QSignalEmitter |
---|
blockSignals, disconnect, disconnect, signalsBlocked, signalSender, thread |
Methods inherited from class com.trolltech.qt.internal.QSignalEmitterInternal |
---|
__qt_signalInitialization |
Methods inherited from class java.lang.Object |
---|
clone, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.trolltech.qt.QtJambiInterface |
---|
disableGarbageCollection, nativeId, nativePointer, reenableGarbageCollection, setJavaOwnership |
Field Detail |
---|
public final QSignalEmitter.Signal1 currentFontChanged
This signal takes 1 generic argument(s). We list their type and the name they go by in the description of this signal. <com.trolltech.qt.gui.QFont(named: font)>:
This signal is emitted whenever the current font changes, with the new font.
currentFont
.
Constructor Detail |
---|
public QFontComboBox()
public QFontComboBox(QWidget parent)
Method Detail |
---|
public final QFont currentFont()
currentFontChanged()
, currentIndex
, and currentText
.
public final QFontComboBox.FontFilters fontFilters()
writingSystem
.
public final void setCurrentFont(QFont f)
currentFontChanged()
, currentIndex
, and currentText
.
public final void setFontFilters(QFontComboBox.FontFilter[] filters)
writingSystem
.
public final void setFontFilters(QFontComboBox.FontFilters filters)
writingSystem
.
public final void setWritingSystem(QFontDatabase.WritingSystem arg__1)
QFontDatabase::Any
(the default), all fonts are listed. fontFilters
.
public final QFontDatabase.WritingSystem writingSystem()
QFontDatabase::Any
(the default), all fonts are listed. fontFilters
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |