[][src]Struct qt_widgets::QFontComboBox

#[repr(C)]
pub struct QFontComboBox { /* fields omitted */ }

The QFontComboBox widget is a combobox that lets the user select a font family.

C++ class: QFontComboBox.

C++ documentation:

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 QToolButtons 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.

Screenshot of QFontComboBox on Windows Vista

Methods

impl QFontComboBox[src]

pub fn slot_set_current_font(&self) -> Receiver<(*const QFont,)>[src]

This property holds the currently selected font

Returns a built-in Qt slot QFontComboBox::setCurrentFont that can be passed to qt_core::Signal::connect.

C++ documentation:

This property holds the currently selected font

Access functions:

QFont currentFont() const
void setCurrentFont(const QFont &f)

Notifier signal:

void currentFontChanged(const QFont &font)

See also currentIndex and currentText.

pub fn current_font_changed(&self) -> Signal<(*const QFont,)>[src]

This signal is emitted whenever the current font changes, with the new font.

Returns a built-in Qt signal QFontComboBox::currentFontChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

This signal is emitted whenever the current font changes, with the new font.

Note: Notifier signal for property currentFont.

See also currentFont.

pub unsafe fn current_font(&self) -> CppBox<QFont>[src]

This property holds the currently selected font

Calls C++ function: QFont QFontComboBox::currentFont() const.

C++ documentation:

This property holds the currently selected font

Access functions:

QFont currentFont() const
void setCurrentFont(const QFont &f)

Notifier signal:

void currentFontChanged(const QFont &font)

See also currentIndex and currentText.

pub unsafe fn font_filters(&self) -> QFlags<FontFilter>[src]

This property holds the filter for the combobox

Calls C++ function: QFlags<QFontComboBox::FontFilter> QFontComboBox::fontFilters() const.

C++ documentation:

This property holds the filter for the combobox

By default, all fonts are listed.

Access functions:

FontFilters fontFilters() const
void setFontFilters(FontFilters filters)

See also writingSystem.

pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>[src]

Calls C++ function: virtual const QMetaObject* QFontComboBox::metaObject() const.

pub unsafe fn new_1a(
    parent: impl CastInto<MutPtr<QWidget>>
) -> CppBox<QFontComboBox>
[src]

Constructs a font combobox with the given parent.

Calls C++ function: [constructor] void QFontComboBox::QFontComboBox(QWidget* parent = …).

C++ documentation:

Constructs a font combobox with the given parent.

pub unsafe fn new_0a() -> CppBox<QFontComboBox>[src]

The QFontComboBox widget is a combobox that lets the user select a font family.

Calls C++ function: [constructor] void QFontComboBox::QFontComboBox().

C++ documentation:

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 QToolButtons 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.

Screenshot of QFontComboBox on Windows Vista

pub unsafe fn qt_metacall(
    &mut self,
    arg1: Call,
    arg2: c_int,
    arg3: impl CastInto<MutPtr<*mut c_void>>
) -> c_int
[src]

Calls C++ function: virtual int QFontComboBox::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3).

pub unsafe fn qt_metacast(
    &mut self,
    arg1: impl CastInto<Ptr<c_char>>
) -> MutPtr<c_void>
[src]

Calls C++ function: virtual void* QFontComboBox::qt_metacast(const char* arg1).

pub unsafe fn set_current_font(&mut self, f: impl CastInto<Ref<QFont>>)[src]

This property holds the currently selected font

Calls C++ function: [slot] void QFontComboBox::setCurrentFont(const QFont& f).

C++ documentation:

This property holds the currently selected font

Access functions:

QFont currentFont() const
void setCurrentFont(const QFont &f)

Notifier signal:

void currentFontChanged(const QFont &font)

See also currentIndex and currentText.

pub unsafe fn set_font_filters(&mut self, filters: QFlags<FontFilter>)[src]

This property holds the filter for the combobox

Calls C++ function: void QFontComboBox::setFontFilters(QFlags<QFontComboBox::FontFilter> filters).

C++ documentation:

This property holds the filter for the combobox

By default, all fonts are listed.

Access functions:

FontFilters fontFilters() const
void setFontFilters(FontFilters filters)

See also writingSystem.

pub unsafe fn set_writing_system(&mut self, arg1: WritingSystem)[src]

This property holds the writing system that serves as a filter for the combobox

Calls C++ function: void QFontComboBox::setWritingSystem(QFontDatabase::WritingSystem arg1).

C++ documentation:

This property holds the writing system that serves as a filter for the combobox

If script is QFontDatabase::Any (the default), all fonts are listed.

Access functions:

QFontDatabase::WritingSystem writingSystem() const
void setWritingSystem(QFontDatabase::WritingSystem)

See also fontFilters.

pub unsafe fn size_hint(&self) -> CppBox<QSize>[src]

Reimplemented from QWidget::sizeHint().

Calls C++ function: virtual QSize QFontComboBox::sizeHint() const.

C++ documentation:

Reimplemented from QWidget::sizeHint().

pub unsafe fn static_meta_object() -> Ref<QMetaObject>[src]

Returns a reference to the staticMetaObject field.

pub unsafe fn tr(
    s: impl CastInto<Ptr<c_char>>,
    c: impl CastInto<Ptr<c_char>>,
    n: c_int
) -> CppBox<QString>
[src]

Calls C++ function: static QString QFontComboBox::tr(const char* s, const char* c, int n).

pub unsafe fn tr_utf8(
    s: impl CastInto<Ptr<c_char>>,
    c: impl CastInto<Ptr<c_char>>,
    n: c_int
) -> CppBox<QString>
[src]

Calls C++ function: static QString QFontComboBox::trUtf8(const char* s, const char* c, int n).

pub unsafe fn writing_system(&self) -> WritingSystem[src]

This property holds the writing system that serves as a filter for the combobox

Calls C++ function: QFontDatabase::WritingSystem QFontComboBox::writingSystem() const.

C++ documentation:

This property holds the writing system that serves as a filter for the combobox

If script is QFontDatabase::Any (the default), all fonts are listed.

Access functions:

QFontDatabase::WritingSystem writingSystem() const
void setWritingSystem(QFontDatabase::WritingSystem)

See also fontFilters.

Methods from Deref<Target = QComboBox>

pub fn slot_clear(&self) -> Receiver<()>[src]

Clears the combobox, removing all items.

Returns a built-in Qt slot QComboBox::clear that can be passed to qt_core::Signal::connect.

C++ documentation:

Clears the combobox, removing all items.

Note: If you have set an external model on the combobox this model will still be cleared when calling this function.

pub fn slot_clear_edit_text(&self) -> Receiver<()>[src]

Clears the contents of the line edit used for editing in the combobox.

Returns a built-in Qt slot QComboBox::clearEditText that can be passed to qt_core::Signal::connect.

C++ documentation:

Clears the contents of the line edit used for editing in the combobox.

pub fn slot_set_edit_text(&self) -> Receiver<(*const QString,)>[src]

Sets the text in the combobox's text edit.

Returns a built-in Qt slot QComboBox::setEditText that can be passed to qt_core::Signal::connect.

C++ documentation:

Sets the text in the combobox's text edit.

pub fn slot_set_current_index(&self) -> Receiver<(c_int,)>[src]

This property holds the index of the current item in the combobox.

Returns a built-in Qt slot QComboBox::setCurrentIndex that can be passed to qt_core::Signal::connect.

C++ documentation:

This property holds the index of the current item in the combobox.

The current index can change when inserting or removing items.

By default, for an empty combo box or a combo box in which no current item is set, this property has a value of -1.

Access functions:

int currentIndex() const
void setCurrentIndex(int index)

Notifier signal:

void currentIndexChanged(int index)
void currentIndexChanged(const QString &text)

pub fn slot_set_current_text(&self) -> Receiver<(*const QString,)>[src]

This property holds the current text

Returns a built-in Qt slot QComboBox::setCurrentText that can be passed to qt_core::Signal::connect.

C++ documentation:

This property holds the current text

If the combo box is editable, the current text is the value displayed by the line edit. Otherwise, it is the value of the current item or an empty string if the combo box is empty or no current item is set.

The setter setCurrentText() simply calls setEditText() if the combo box is editable. Otherwise, if there is a matching text in the list, currentIndex is set to the corresponding index.

Access functions:

QString currentText() const
void setCurrentText(const QString &text)

Notifier signal:

void currentTextChanged(const QString &text)

See also editable and setEditText().

pub fn edit_text_changed(&self) -> Signal<(*const QString,)>[src]

This signal is emitted when the text in the combobox's line edit widget is changed. The new text is specified by text.

Returns a built-in Qt signal QComboBox::editTextChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

This signal is emitted when the text in the combobox's line edit widget is changed. The new text is specified by text.

pub fn activated(&self) -> Signal<(c_int,)>[src]

This signal is sent when the user chooses an item in the combobox. The item's index is passed. Note that this signal is sent even when the choice is not changed. If you need to know when the choice actually changes, use signal currentIndexChanged().

Returns a built-in Qt signal QComboBox::activated that can be passed to qt_core::Signal::connect.

C++ documentation:

This signal is sent when the user chooses an item in the combobox. The item's index is passed. Note that this signal is sent even when the choice is not changed. If you need to know when the choice actually changes, use signal currentIndexChanged().

Note: Signal activated is overloaded in this class. To connect to this one using the function pointer syntax, you must specify the signal type in a static cast, as shown in this example:

connect(comboBox, static_cast<void(QComboBox::)(int)>(&QComboBox::activated), [=](int index){ / ... */ });

pub fn activated2(&self) -> Signal<(*const QString,)>[src]

This signal is sent when the user chooses an item in the combobox. The item's text is passed. Note that this signal is sent even when the choice is not changed. If you need to know when the choice actually changes, use signal currentIndexChanged().

Returns a built-in Qt signal QComboBox::activated that can be passed to qt_core::Signal::connect.

C++ documentation:

This signal is sent when the user chooses an item in the combobox. The item's text is passed. Note that this signal is sent even when the choice is not changed. If you need to know when the choice actually changes, use signal currentIndexChanged().

Note: Signal activated is overloaded in this class. To connect to this one using the function pointer syntax, you must specify the signal type in a static cast, as shown in this example:

connect(comboBox, static_cast<void(QComboBox::)(const QString &)>(&QComboBox::activated), [=](const QString &text){ / ... */ });

pub fn highlighted(&self) -> Signal<(c_int,)>[src]

This signal is sent when an item in the combobox popup list is highlighted by the user. The item's index is passed.

Returns a built-in Qt signal QComboBox::highlighted that can be passed to qt_core::Signal::connect.

C++ documentation:

This signal is sent when an item in the combobox popup list is highlighted by the user. The item's index is passed.

Note: Signal highlighted is overloaded in this class. To connect to this one using the function pointer syntax, you must specify the signal type in a static cast, as shown in this example:

connect(comboBox, static_cast<void(QComboBox::)(int)>(&QComboBox::highlighted), [=](int index){ / ... */ });

pub fn highlighted2(&self) -> Signal<(*const QString,)>[src]

This signal is sent when an item in the combobox popup list is highlighted by the user. The item's text is passed.

Returns a built-in Qt signal QComboBox::highlighted that can be passed to qt_core::Signal::connect.

C++ documentation:

This signal is sent when an item in the combobox popup list is highlighted by the user. The item's text is passed.

Note: Signal highlighted is overloaded in this class. To connect to this one using the function pointer syntax, you must specify the signal type in a static cast, as shown in this example:

connect(comboBox, static_cast<void(QComboBox::)(const QString &)>(&QComboBox::highlighted), [=](const QString &text){ / ... */ });

pub fn current_index_changed(&self) -> Signal<(c_int,)>[src]

This signal is sent whenever the currentIndex in the combobox changes either through user interaction or programmatically. The item's index is passed or -1 if the combobox becomes empty or the currentIndex was reset.

Returns a built-in Qt signal QComboBox::currentIndexChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

This signal is sent whenever the currentIndex in the combobox changes either through user interaction or programmatically. The item's index is passed or -1 if the combobox becomes empty or the currentIndex was reset.

Note: Signal currentIndexChanged is overloaded in this class. To connect to this one using the function pointer syntax, you must specify the signal type in a static cast, as shown in this example:

connect(comboBox, static_cast<void(QComboBox::)(int)>(&QComboBox::currentIndexChanged), [=](int index){ / ... */ });

This function was introduced in Qt 4.1.

Note: Notifier signal for property currentIndex.

pub fn current_index_changed2(&self) -> Signal<(*const QString,)>[src]

This signal is sent whenever the currentIndex in the combobox changes either through user interaction or programmatically. The item's text is passed.

Returns a built-in Qt signal QComboBox::currentIndexChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

This signal is sent whenever the currentIndex in the combobox changes either through user interaction or programmatically. The item's text is passed.

Note: Signal currentIndexChanged is overloaded in this class. To connect to this one using the function pointer syntax, you must specify the signal type in a static cast, as shown in this example:

connect(comboBox, static_cast<void(QComboBox::)(const QString &)>(&QComboBox::currentIndexChanged), [=](const QString &text){ / ... */ });

This function was introduced in Qt 4.1.

Note: Notifier signal for property currentIndex.

pub fn current_text_changed(&self) -> Signal<(*const QString,)>[src]

This signal is sent whenever currentText changes. The new value is passed as text.

Returns a built-in Qt signal QComboBox::currentTextChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

This signal is sent whenever currentText changes. The new value is passed as text.

This function was introduced in Qt 5.0.

Note: Notifier signal for property currentText.

pub unsafe fn add_item_q_string_q_variant(
    &mut self,
    text: impl CastInto<Ref<QString>>,
    user_data: impl CastInto<Ref<QVariant>>
)
[src]

Adds an item to the combobox with the given text, and containing the specified userData (stored in the Qt::UserRole). The item is appended to the list of existing items.

Calls C++ function: void QComboBox::addItem(const QString& text, const QVariant& userData = …).

C++ documentation:

Adds an item to the combobox with the given text, and containing the specified userData (stored in the Qt::UserRole). The item is appended to the list of existing items.

pub unsafe fn add_item_q_icon_q_string_q_variant(
    &mut self,
    icon: impl CastInto<Ref<QIcon>>,
    text: impl CastInto<Ref<QString>>,
    user_data: impl CastInto<Ref<QVariant>>
)
[src]

Adds an item to the combobox with the given icon and text, and containing the specified userData (stored in the Qt::UserRole). The item is appended to the list of existing items.

Calls C++ function: void QComboBox::addItem(const QIcon& icon, const QString& text, const QVariant& userData = …).

C++ documentation:

Adds an item to the combobox with the given icon and text, and containing the specified userData (stored in the Qt::UserRole). The item is appended to the list of existing items.

pub unsafe fn add_item_q_string(&mut self, text: impl CastInto<Ref<QString>>)[src]

Adds an item to the combobox with the given text, and containing the specified userData (stored in the Qt::UserRole). The item is appended to the list of existing items.

Calls C++ function: void QComboBox::addItem(const QString& text).

C++ documentation:

Adds an item to the combobox with the given text, and containing the specified userData (stored in the Qt::UserRole). The item is appended to the list of existing items.

pub unsafe fn add_item_q_icon_q_string(
    &mut self,
    icon: impl CastInto<Ref<QIcon>>,
    text: impl CastInto<Ref<QString>>
)
[src]

Adds an item to the combobox with the given icon and text, and containing the specified userData (stored in the Qt::UserRole). The item is appended to the list of existing items.

Calls C++ function: void QComboBox::addItem(const QIcon& icon, const QString& text).

C++ documentation:

Adds an item to the combobox with the given icon and text, and containing the specified userData (stored in the Qt::UserRole). The item is appended to the list of existing items.

pub unsafe fn add_items(&mut self, texts: impl CastInto<Ref<QStringList>>)[src]

Adds each of the strings in the given texts to the combobox. Each item is appended to the list of existing items in turn.

Calls C++ function: void QComboBox::addItems(const QStringList& texts).

C++ documentation:

Adds each of the strings in the given texts to the combobox. Each item is appended to the list of existing items in turn.

pub unsafe fn auto_completion(&self) -> bool[src]

This property holds whether the combobox provides auto-completion for editable items

Calls C++ function: bool QComboBox::autoCompletion() const.

C++ documentation:

This property holds whether the combobox provides auto-completion for editable items

Use setCompleter() instead.

By default, this property is true.

This property was introduced in Qt 4.1.

Access functions:

bool autoCompletion() const
void setAutoCompletion(bool enable)

See also editable.

pub unsafe fn auto_completion_case_sensitivity(&self) -> CaseSensitivity[src]

This property holds whether string comparisons are case-sensitive or case-insensitive for auto-completion

Calls C++ function: Qt::CaseSensitivity QComboBox::autoCompletionCaseSensitivity() const.

C++ documentation:

This property holds whether string comparisons are case-sensitive or case-insensitive for auto-completion

By default, this property is Qt::CaseInsensitive.

Use setCompleter() instead. Case sensitivity of the auto completion can be changed using QCompleter::setCaseSensitivity().

Access functions:

Qt::CaseSensitivity autoCompletionCaseSensitivity() const
void setAutoCompletionCaseSensitivity(Qt::CaseSensitivity sensitivity)

See also autoCompletion.

Member Function Documentation

pub unsafe fn clear(&mut self)[src]

Clears the combobox, removing all items.

Calls C++ function: [slot] void QComboBox::clear().

C++ documentation:

Clears the combobox, removing all items.

Note: If you have set an external model on the combobox this model will still be cleared when calling this function.

pub unsafe fn clear_edit_text(&mut self)[src]

Clears the contents of the line edit used for editing in the combobox.

Calls C++ function: [slot] void QComboBox::clearEditText().

C++ documentation:

Clears the contents of the line edit used for editing in the combobox.

pub unsafe fn completer(&self) -> MutPtr<QCompleter>[src]

Returns the completer that is used to auto complete text input for the combobox.

Calls C++ function: QCompleter* QComboBox::completer() const.

C++ documentation:

Returns the completer that is used to auto complete text input for the combobox.

This function was introduced in Qt 4.2.

See also setCompleter() and editable.

pub unsafe fn count(&self) -> c_int[src]

This property holds the number of items in the combobox

Calls C++ function: int QComboBox::count() const.

C++ documentation:

This property holds the number of items in the combobox

By default, for an empty combo box, this property has a value of 0.

Access functions:

int count() const

pub unsafe fn current_data_1a(&self, role: c_int) -> CppBox<QVariant>[src]

This property holds the data for the current item

Calls C++ function: QVariant QComboBox::currentData(int role = …) const.

C++ documentation:

This property holds the data for the current item

By default, for an empty combo box or a combo box in which no current item is set, this property contains an invalid QVariant.

This property was introduced in Qt 5.2.

Access functions:

QVariant currentData(int role = Qt::UserRole) const

pub unsafe fn current_data_0a(&self) -> CppBox<QVariant>[src]

This property holds the data for the current item

Calls C++ function: QVariant QComboBox::currentData() const.

C++ documentation:

This property holds the data for the current item

By default, for an empty combo box or a combo box in which no current item is set, this property contains an invalid QVariant.

This property was introduced in Qt 5.2.

Access functions:

QVariant currentData(int role = Qt::UserRole) const

pub unsafe fn current_index(&self) -> c_int[src]

This property holds the index of the current item in the combobox.

Calls C++ function: int QComboBox::currentIndex() const.

C++ documentation:

This property holds the index of the current item in the combobox.

The current index can change when inserting or removing items.

By default, for an empty combo box or a combo box in which no current item is set, this property has a value of -1.

Access functions:

int currentIndex() const
void setCurrentIndex(int index)

Notifier signal:

void currentIndexChanged(int index)
void currentIndexChanged(const QString &text)

pub unsafe fn current_text(&self) -> CppBox<QString>[src]

This property holds the current text

Calls C++ function: QString QComboBox::currentText() const.

C++ documentation:

This property holds the current text

If the combo box is editable, the current text is the value displayed by the line edit. Otherwise, it is the value of the current item or an empty string if the combo box is empty or no current item is set.

The setter setCurrentText() simply calls setEditText() if the combo box is editable. Otherwise, if there is a matching text in the list, currentIndex is set to the corresponding index.

Access functions:

QString currentText() const
void setCurrentText(const QString &text)

Notifier signal:

void currentTextChanged(const QString &text)

See also editable and setEditText().

pub unsafe fn duplicates_enabled(&self) -> bool[src]

This property holds whether the user can enter duplicate items into the combobox

Calls C++ function: bool QComboBox::duplicatesEnabled() const.

C++ documentation:

This property holds whether the user can enter duplicate items into the combobox

Note that it is always possible to programmatically insert duplicate items into the combobox.

By default, this property is false (duplicates are not allowed).

Access functions:

bool duplicatesEnabled() const
void setDuplicatesEnabled(bool enable)

pub unsafe fn event(&mut self, event: impl CastInto<MutPtr<QEvent>>) -> bool[src]

Reimplemented from QObject::event().

Calls C++ function: virtual bool QComboBox::event(QEvent* event).

C++ documentation:

Reimplemented from QObject::event().

pub unsafe fn find_data_3a(
    &self,
    data: impl CastInto<Ref<QVariant>>,
    role: c_int,
    flags: QFlags<MatchFlag>
) -> c_int
[src]

Returns the index of the item containing the given data for the given role; otherwise returns -1.

Calls C++ function: int QComboBox::findData(const QVariant& data, int role = …, QFlags<Qt::MatchFlag> flags = …) const.

C++ documentation:

Returns the index of the item containing the given data for the given role; otherwise returns -1.

The flags specify how the items in the combobox are searched.

pub unsafe fn find_data_2a(
    &self,
    data: impl CastInto<Ref<QVariant>>,
    role: c_int
) -> c_int
[src]

Returns the index of the item containing the given data for the given role; otherwise returns -1.

Calls C++ function: int QComboBox::findData(const QVariant& data, int role = …) const.

C++ documentation:

Returns the index of the item containing the given data for the given role; otherwise returns -1.

The flags specify how the items in the combobox are searched.

pub unsafe fn find_data_1a(&self, data: impl CastInto<Ref<QVariant>>) -> c_int[src]

Returns the index of the item containing the given data for the given role; otherwise returns -1.

Calls C++ function: int QComboBox::findData(const QVariant& data) const.

C++ documentation:

Returns the index of the item containing the given data for the given role; otherwise returns -1.

The flags specify how the items in the combobox are searched.

pub unsafe fn find_text_2a(
    &self,
    text: impl CastInto<Ref<QString>>,
    flags: QFlags<MatchFlag>
) -> c_int
[src]

Returns the index of the item containing the given text; otherwise returns -1.

Calls C++ function: int QComboBox::findText(const QString& text, QFlags<Qt::MatchFlag> flags = …) const.

C++ documentation:

Returns the index of the item containing the given text; otherwise returns -1.

The flags specify how the items in the combobox are searched.

pub unsafe fn find_text_1a(&self, text: impl CastInto<Ref<QString>>) -> c_int[src]

Returns the index of the item containing the given text; otherwise returns -1.

Calls C++ function: int QComboBox::findText(const QString& text) const.

C++ documentation:

Returns the index of the item containing the given text; otherwise returns -1.

The flags specify how the items in the combobox are searched.

pub unsafe fn has_frame(&self) -> bool[src]

This property holds whether the combo box draws itself with a frame

Calls C++ function: bool QComboBox::hasFrame() const.

C++ documentation:

This property holds whether the combo box draws itself with a frame

If enabled (the default) the combo box draws itself inside a frame, otherwise the combo box draws itself without any frame.

Access functions:

bool hasFrame() const
void setFrame(bool)

pub unsafe fn hide_popup(&mut self)[src]

Hides the list of items in the combobox if it is currently visible and resets the internal state, so that if the custom pop-up was shown inside the reimplemented showPopup(), then you also need to reimplement the hidePopup() function to hide your custom pop-up and call the base class implementation to reset the internal state whenever your custom pop-up widget is hidden.

Calls C++ function: virtual void QComboBox::hidePopup().

C++ documentation:

Hides the list of items in the combobox if it is currently visible and resets the internal state, so that if the custom pop-up was shown inside the reimplemented showPopup(), then you also need to reimplement the hidePopup() function to hide your custom pop-up and call the base class implementation to reset the internal state whenever your custom pop-up widget is hidden.

See also showPopup().

pub unsafe fn icon_size(&self) -> CppBox<QSize>[src]

This property holds the size of the icons shown in the combobox.

Calls C++ function: QSize QComboBox::iconSize() const.

C++ documentation:

This property holds the size of the icons shown in the combobox.

Unless explicitly set this returns the default value of the current style. This size is the maximum size that icons can have; icons of smaller size are not scaled up.

Access functions:

QSize iconSize() const
void setIconSize(const QSize &size)

pub unsafe fn input_method_query_1a(
    &self,
    arg1: InputMethodQuery
) -> CppBox<QVariant>
[src]

Reimplemented from QWidget::inputMethodQuery().

Calls C++ function: virtual QVariant QComboBox::inputMethodQuery(Qt::InputMethodQuery arg1) const.

C++ documentation:

Reimplemented from QWidget::inputMethodQuery().

pub unsafe fn input_method_query_2a(
    &self,
    query: InputMethodQuery,
    argument: impl CastInto<Ref<QVariant>>
) -> CppBox<QVariant>
[src]

Reimplemented from QWidget::inputMethodQuery().

Calls C++ function: QVariant QComboBox::inputMethodQuery(Qt::InputMethodQuery query, const QVariant& argument) const.

Warning: no exact match found in C++ documentation. Below is the C++ documentation for virtual QVariant QComboBox::inputMethodQuery(Qt::InputMethodQuery query) const:

Reimplemented from QWidget::inputMethodQuery().

pub unsafe fn insert_item_int_q_string_q_variant(
    &mut self,
    index: c_int,
    text: impl CastInto<Ref<QString>>,
    user_data: impl CastInto<Ref<QVariant>>
)
[src]

Inserts the text and userData (stored in the Qt::UserRole) into the combobox at the given index.

Calls C++ function: void QComboBox::insertItem(int index, const QString& text, const QVariant& userData = …).

C++ documentation:

Inserts the text and userData (stored in the Qt::UserRole) into the combobox at the given index.

If the index is equal to or higher than the total number of items, the new item is appended to the list of existing items. If the index is zero or negative, the new item is prepended to the list of existing items.

See also insertItems().

pub unsafe fn insert_item_int_q_icon_q_string_q_variant(
    &mut self,
    index: c_int,
    icon: impl CastInto<Ref<QIcon>>,
    text: impl CastInto<Ref<QString>>,
    user_data: impl CastInto<Ref<QVariant>>
)
[src]

Inserts the icon, text and userData (stored in the Qt::UserRole) into the combobox at the given index.

Calls C++ function: void QComboBox::insertItem(int index, const QIcon& icon, const QString& text, const QVariant& userData = …).

C++ documentation:

Inserts the icon, text and userData (stored in the Qt::UserRole) into the combobox at the given index.

If the index is equal to or higher than the total number of items, the new item is appended to the list of existing items. If the index is zero or negative, the new item is prepended to the list of existing items.

See also insertItems().

pub unsafe fn insert_item_int_q_string(
    &mut self,
    index: c_int,
    text: impl CastInto<Ref<QString>>
)
[src]

Inserts the text and userData (stored in the Qt::UserRole) into the combobox at the given index.

Calls C++ function: void QComboBox::insertItem(int index, const QString& text).

C++ documentation:

Inserts the text and userData (stored in the Qt::UserRole) into the combobox at the given index.

If the index is equal to or higher than the total number of items, the new item is appended to the list of existing items. If the index is zero or negative, the new item is prepended to the list of existing items.

See also insertItems().

pub unsafe fn insert_item_int_q_icon_q_string(
    &mut self,
    index: c_int,
    icon: impl CastInto<Ref<QIcon>>,
    text: impl CastInto<Ref<QString>>
)
[src]

Inserts the icon, text and userData (stored in the Qt::UserRole) into the combobox at the given index.

Calls C++ function: void QComboBox::insertItem(int index, const QIcon& icon, const QString& text).

C++ documentation:

Inserts the icon, text and userData (stored in the Qt::UserRole) into the combobox at the given index.

If the index is equal to or higher than the total number of items, the new item is appended to the list of existing items. If the index is zero or negative, the new item is prepended to the list of existing items.

See also insertItems().

pub unsafe fn insert_items(
    &mut self,
    index: c_int,
    texts: impl CastInto<Ref<QStringList>>
)
[src]

Inserts the strings from the list into the combobox as separate items, starting at the index specified.

Calls C++ function: void QComboBox::insertItems(int index, const QStringList& texts).

C++ documentation:

Inserts the strings from the list into the combobox as separate items, starting at the index specified.

If the index is equal to or higher than the total number of items, the new items are appended to the list of existing items. If the index is zero or negative, the new items are prepended to the list of existing items.

See also insertItem().

pub unsafe fn insert_policy(&self) -> InsertPolicy[src]

This property holds the policy used to determine where user-inserted items should appear in the combobox

Calls C++ function: QComboBox::InsertPolicy QComboBox::insertPolicy() const.

C++ documentation:

This property holds the policy used to determine where user-inserted items should appear in the combobox

The default value is InsertAtBottom, indicating that new items will appear at the bottom of the list of items.

Access functions:

InsertPolicy insertPolicy() const
void setInsertPolicy(InsertPolicy policy)

See also InsertPolicy.

pub unsafe fn insert_separator(&mut self, index: c_int)[src]

Inserts a separator item into the combobox at the given index.

Calls C++ function: void QComboBox::insertSeparator(int index).

C++ documentation:

Inserts a separator item into the combobox at the given index.

If the index is equal to or higher than the total number of items, the new item is appended to the list of existing items. If the index is zero or negative, the new item is prepended to the list of existing items.

This function was introduced in Qt 4.4.

See also insertItem().

pub unsafe fn is_editable(&self) -> bool[src]

This property holds whether the combo box can be edited by the user

Calls C++ function: bool QComboBox::isEditable() const.

C++ documentation:

This property holds whether the combo box can be edited by the user

By default, this property is false. The effect of editing depends on the insert policy.

Note: When disabling the editable state, the validator and completer are removed.

Access functions:

bool isEditable() const
void setEditable(bool editable)

See also InsertPolicy.

pub unsafe fn item_data_2a(&self, index: c_int, role: c_int) -> CppBox<QVariant>[src]

Returns the data for the given role in the given index in the combobox, or QVariant::Invalid if there is no data for this role.

Calls C++ function: QVariant QComboBox::itemData(int index, int role = …) const.

C++ documentation:

Returns the data for the given role in the given index in the combobox, or QVariant::Invalid if there is no data for this role.

See also setItemData().

pub unsafe fn item_data_1a(&self, index: c_int) -> CppBox<QVariant>[src]

Returns the data for the given role in the given index in the combobox, or QVariant::Invalid if there is no data for this role.

Calls C++ function: QVariant QComboBox::itemData(int index) const.

C++ documentation:

Returns the data for the given role in the given index in the combobox, or QVariant::Invalid if there is no data for this role.

See also setItemData().

pub unsafe fn item_delegate(&self) -> MutPtr<QAbstractItemDelegate>[src]

Returns the item delegate used by the popup list view.

Calls C++ function: QAbstractItemDelegate* QComboBox::itemDelegate() const.

C++ documentation:

Returns the item delegate used by the popup list view.

See also setItemDelegate().

pub unsafe fn item_icon(&self, index: c_int) -> CppBox<QIcon>[src]

Returns the icon for the given index in the combobox.

Calls C++ function: QIcon QComboBox::itemIcon(int index) const.

C++ documentation:

Returns the icon for the given index in the combobox.

See also setItemIcon().

pub unsafe fn item_text(&self, index: c_int) -> CppBox<QString>[src]

Returns the text for the given index in the combobox.

Calls C++ function: QString QComboBox::itemText(int index) const.

C++ documentation:

Returns the text for the given index in the combobox.

See also setItemText().

pub unsafe fn line_edit(&self) -> MutPtr<QLineEdit>[src]

Returns the line edit used to edit items in the combobox, or 0 if there is no line edit.

Calls C++ function: QLineEdit* QComboBox::lineEdit() const.

C++ documentation:

Returns the line edit used to edit items in the combobox, or 0 if there is no line edit.

Only editable combo boxes have a line edit.

See also setLineEdit().

pub unsafe fn max_count(&self) -> c_int[src]

This property holds the maximum number of items allowed in the combobox

Calls C++ function: int QComboBox::maxCount() const.

C++ documentation:

This property holds the maximum number of items allowed in the combobox

Note: If you set the maximum number to be less then the current amount of items in the combobox, the extra items will be truncated. This also applies if you have set an external model on the combobox.

By default, this property's value is derived from the highest signed integer available (typically 2147483647).

Access functions:

int maxCount() const
void setMaxCount(int max)

pub unsafe fn max_visible_items(&self) -> c_int[src]

This property holds the maximum allowed size on screen of the combo box, measured in items

Calls C++ function: int QComboBox::maxVisibleItems() const.

C++ documentation:

This property holds the maximum allowed size on screen of the combo box, measured in items

By default, this property has a value of 10.

Note: This property is ignored for non-editable comboboxes in styles that returns true for QStyle::SH_ComboBox_Popup such as the Mac style or the Gtk+ Style.

Access functions:

int maxVisibleItems() const
void setMaxVisibleItems(int maxItems)

pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>[src]

Calls C++ function: virtual const QMetaObject* QComboBox::metaObject() const.

pub unsafe fn minimum_contents_length(&self) -> c_int[src]

This property holds the minimum number of characters that should fit into the combobox.

Calls C++ function: int QComboBox::minimumContentsLength() const.

C++ documentation:

This property holds the minimum number of characters that should fit into the combobox.

The default value is 0.

If this property is set to a positive value, the minimumSizeHint() and sizeHint() take it into account.

Access functions:

int minimumContentsLength() const
void setMinimumContentsLength(int characters)

See also sizeAdjustPolicy.

pub unsafe fn minimum_size_hint(&self) -> CppBox<QSize>[src]

Reimplemented from QWidget::minimumSizeHint().

Calls C++ function: virtual QSize QComboBox::minimumSizeHint() const.

C++ documentation:

Reimplemented from QWidget::minimumSizeHint().

pub unsafe fn model(&self) -> MutPtr<QAbstractItemModel>[src]

Returns the model used by the combobox.

Calls C++ function: QAbstractItemModel* QComboBox::model() const.

C++ documentation:

Returns the model used by the combobox.

See also setModel().

pub unsafe fn model_column(&self) -> c_int[src]

This property holds the column in the model that is visible.

Calls C++ function: int QComboBox::modelColumn() const.

C++ documentation:

This property holds the column in the model that is visible.

If set prior to populating the combo box, the pop-up view will not be affected and will show the first column (using this property's default value).

By default, this property has a value of 0.

Access functions:

int modelColumn() const
void setModelColumn(int visibleColumn)

pub unsafe fn qt_metacall(
    &mut self,
    arg1: Call,
    arg2: c_int,
    arg3: impl CastInto<MutPtr<*mut c_void>>
) -> c_int
[src]

Calls C++ function: virtual int QComboBox::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3).

pub unsafe fn qt_metacast(
    &mut self,
    arg1: impl CastInto<Ptr<c_char>>
) -> MutPtr<c_void>
[src]

Calls C++ function: virtual void* QComboBox::qt_metacast(const char* arg1).

pub unsafe fn remove_item(&mut self, index: c_int)[src]

Removes the item at the given index from the combobox. This will update the current index if the index is removed.

Calls C++ function: void QComboBox::removeItem(int index).

C++ documentation:

Removes the item at the given index from the combobox. This will update the current index if the index is removed.

This function does nothing if index is out of range.

pub unsafe fn root_model_index(&self) -> CppBox<QModelIndex>[src]

Returns the root model item index for the items in the combobox.

Calls C++ function: QModelIndex QComboBox::rootModelIndex() const.

C++ documentation:

Returns the root model item index for the items in the combobox.

See also setRootModelIndex().

pub unsafe fn set_auto_completion(&mut self, enable: bool)[src]

Use setCompleter() instead.

Calls C++ function: void QComboBox::setAutoCompletion(bool enable).

C++ documentation:

Use setCompleter() instead.

Note: Setter function for property autoCompletion.

See also autoCompletion().

pub unsafe fn set_auto_completion_case_sensitivity(
    &mut self,
    sensitivity: CaseSensitivity
)
[src]

Use setCompleter() and QCompleter::setCaseSensitivity() instead.

Calls C++ function: void QComboBox::setAutoCompletionCaseSensitivity(Qt::CaseSensitivity sensitivity).

C++ documentation:

Use setCompleter() and QCompleter::setCaseSensitivity() instead.

Note: Setter function for property autoCompletionCaseSensitivity.

See also autoCompletionCaseSensitivity().

pub unsafe fn set_completer(&mut self, c: impl CastInto<MutPtr<QCompleter>>)[src]

Sets the completer to use instead of the current completer. If completer is 0, auto completion is disabled.

Calls C++ function: void QComboBox::setCompleter(QCompleter* c).

C++ documentation:

Sets the completer to use instead of the current completer. If completer is 0, auto completion is disabled.

By default, for an editable combo box, a QCompleter that performs case insensitive inline completion is automatically created.

Note: The completer is removed when the editable property becomes false.

This function was introduced in Qt 4.2.

See also completer().

pub unsafe fn set_current_index(&mut self, index: c_int)[src]

This property holds the index of the current item in the combobox.

Calls C++ function: [slot] void QComboBox::setCurrentIndex(int index).

C++ documentation:

This property holds the index of the current item in the combobox.

The current index can change when inserting or removing items.

By default, for an empty combo box or a combo box in which no current item is set, this property has a value of -1.

Access functions:

int currentIndex() const
void setCurrentIndex(int index)

Notifier signal:

void currentIndexChanged(int index)
void currentIndexChanged(const QString &text)

pub unsafe fn set_current_text(&mut self, text: impl CastInto<Ref<QString>>)[src]

This property holds the current text

Calls C++ function: [slot] void QComboBox::setCurrentText(const QString& text).

C++ documentation:

This property holds the current text

If the combo box is editable, the current text is the value displayed by the line edit. Otherwise, it is the value of the current item or an empty string if the combo box is empty or no current item is set.

The setter setCurrentText() simply calls setEditText() if the combo box is editable. Otherwise, if there is a matching text in the list, currentIndex is set to the corresponding index.

Access functions:

QString currentText() const
void setCurrentText(const QString &text)

Notifier signal:

void currentTextChanged(const QString &text)

See also editable and setEditText().

pub unsafe fn set_duplicates_enabled(&mut self, enable: bool)[src]

This property holds whether the user can enter duplicate items into the combobox

Calls C++ function: void QComboBox::setDuplicatesEnabled(bool enable).

C++ documentation:

This property holds whether the user can enter duplicate items into the combobox

Note that it is always possible to programmatically insert duplicate items into the combobox.

By default, this property is false (duplicates are not allowed).

Access functions:

bool duplicatesEnabled() const
void setDuplicatesEnabled(bool enable)

pub unsafe fn set_edit_text(&mut self, text: impl CastInto<Ref<QString>>)[src]

Sets the text in the combobox's text edit.

Calls C++ function: [slot] void QComboBox::setEditText(const QString& text).

C++ documentation:

Sets the text in the combobox's text edit.

pub unsafe fn set_editable(&mut self, editable: bool)[src]

This property holds whether the combo box can be edited by the user

Calls C++ function: void QComboBox::setEditable(bool editable).

C++ documentation:

This property holds whether the combo box can be edited by the user

By default, this property is false. The effect of editing depends on the insert policy.

Note: When disabling the editable state, the validator and completer are removed.

Access functions:

bool isEditable() const
void setEditable(bool editable)

See also InsertPolicy.

pub unsafe fn set_frame(&mut self, arg1: bool)[src]

This property holds whether the combo box draws itself with a frame

Calls C++ function: void QComboBox::setFrame(bool arg1).

C++ documentation:

This property holds whether the combo box draws itself with a frame

If enabled (the default) the combo box draws itself inside a frame, otherwise the combo box draws itself without any frame.

Access functions:

bool hasFrame() const
void setFrame(bool)

pub unsafe fn set_icon_size(&mut self, size: impl CastInto<Ref<QSize>>)[src]

This property holds the size of the icons shown in the combobox.

Calls C++ function: void QComboBox::setIconSize(const QSize& size).

C++ documentation:

This property holds the size of the icons shown in the combobox.

Unless explicitly set this returns the default value of the current style. This size is the maximum size that icons can have; icons of smaller size are not scaled up.

Access functions:

QSize iconSize() const
void setIconSize(const QSize &size)

pub unsafe fn set_insert_policy(&mut self, policy: InsertPolicy)[src]

This property holds the policy used to determine where user-inserted items should appear in the combobox

Calls C++ function: void QComboBox::setInsertPolicy(QComboBox::InsertPolicy policy).

C++ documentation:

This property holds the policy used to determine where user-inserted items should appear in the combobox

The default value is InsertAtBottom, indicating that new items will appear at the bottom of the list of items.

Access functions:

InsertPolicy insertPolicy() const
void setInsertPolicy(InsertPolicy policy)

See also InsertPolicy.

pub unsafe fn set_item_data_3a(
    &mut self,
    index: c_int,
    value: impl CastInto<Ref<QVariant>>,
    role: c_int
)
[src]

Sets the data role for the item on the given index in the combobox to the specified value.

Calls C++ function: void QComboBox::setItemData(int index, const QVariant& value, int role = …).

C++ documentation:

Sets the data role for the item on the given index in the combobox to the specified value.

See also itemData().

pub unsafe fn set_item_data_2a(
    &mut self,
    index: c_int,
    value: impl CastInto<Ref<QVariant>>
)
[src]

Sets the data role for the item on the given index in the combobox to the specified value.

Calls C++ function: void QComboBox::setItemData(int index, const QVariant& value).

C++ documentation:

Sets the data role for the item on the given index in the combobox to the specified value.

See also itemData().

pub unsafe fn set_item_delegate(
    &mut self,
    delegate: impl CastInto<MutPtr<QAbstractItemDelegate>>
)
[src]

Sets the item delegate for the popup list view. The combobox takes ownership of the delegate.

Calls C++ function: void QComboBox::setItemDelegate(QAbstractItemDelegate* delegate).

C++ documentation:

Sets the item delegate for the popup list view. The combobox takes ownership of the delegate.

Warning: You should not share the same instance of a delegate between comboboxes, widget mappers or views. Doing so can cause incorrect or unintuitive editing behavior since each view connected to a given delegate may receive the closeEditor() signal, and attempt to access, modify or close an editor that has already been closed.

See also itemDelegate().

pub unsafe fn set_item_icon(
    &mut self,
    index: c_int,
    icon: impl CastInto<Ref<QIcon>>
)
[src]

Sets the icon for the item on the given index in the combobox.

Calls C++ function: void QComboBox::setItemIcon(int index, const QIcon& icon).

C++ documentation:

Sets the icon for the item on the given index in the combobox.

See also itemIcon().

pub unsafe fn set_item_text(
    &mut self,
    index: c_int,
    text: impl CastInto<Ref<QString>>
)
[src]

Sets the text for the item on the given index in the combobox.

Calls C++ function: void QComboBox::setItemText(int index, const QString& text).

C++ documentation:

Sets the text for the item on the given index in the combobox.

See also itemText().

pub unsafe fn set_line_edit(&mut self, edit: impl CastInto<MutPtr<QLineEdit>>)[src]

Sets the line edit to use instead of the current line edit widget.

Calls C++ function: void QComboBox::setLineEdit(QLineEdit* edit).

C++ documentation:

Sets the line edit to use instead of the current line edit widget.

The combo box takes ownership of the line edit.

See also lineEdit().

pub unsafe fn set_max_count(&mut self, max: c_int)[src]

This property holds the maximum number of items allowed in the combobox

Calls C++ function: void QComboBox::setMaxCount(int max).

C++ documentation:

This property holds the maximum number of items allowed in the combobox

Note: If you set the maximum number to be less then the current amount of items in the combobox, the extra items will be truncated. This also applies if you have set an external model on the combobox.

By default, this property's value is derived from the highest signed integer available (typically 2147483647).

Access functions:

int maxCount() const
void setMaxCount(int max)

pub unsafe fn set_max_visible_items(&mut self, max_items: c_int)[src]

This property holds the maximum allowed size on screen of the combo box, measured in items

Calls C++ function: void QComboBox::setMaxVisibleItems(int maxItems).

C++ documentation:

This property holds the maximum allowed size on screen of the combo box, measured in items

By default, this property has a value of 10.

Note: This property is ignored for non-editable comboboxes in styles that returns true for QStyle::SH_ComboBox_Popup such as the Mac style or the Gtk+ Style.

Access functions:

int maxVisibleItems() const
void setMaxVisibleItems(int maxItems)

pub unsafe fn set_minimum_contents_length(&mut self, characters: c_int)[src]

This property holds the minimum number of characters that should fit into the combobox.

Calls C++ function: void QComboBox::setMinimumContentsLength(int characters).

C++ documentation:

This property holds the minimum number of characters that should fit into the combobox.

The default value is 0.

If this property is set to a positive value, the minimumSizeHint() and sizeHint() take it into account.

Access functions:

int minimumContentsLength() const
void setMinimumContentsLength(int characters)

See also sizeAdjustPolicy.

pub unsafe fn set_model(
    &mut self,
    model: impl CastInto<MutPtr<QAbstractItemModel>>
)
[src]

Sets the model to be model. model must not be 0. If you want to clear the contents of a model, call clear().

Calls C++ function: void QComboBox::setModel(QAbstractItemModel* model).

C++ documentation:

Sets the model to be model. model must not be 0. If you want to clear the contents of a model, call clear().

See also model() and clear().

pub unsafe fn set_model_column(&mut self, visible_column: c_int)[src]

This property holds the column in the model that is visible.

Calls C++ function: void QComboBox::setModelColumn(int visibleColumn).

C++ documentation:

This property holds the column in the model that is visible.

If set prior to populating the combo box, the pop-up view will not be affected and will show the first column (using this property's default value).

By default, this property has a value of 0.

Access functions:

int modelColumn() const
void setModelColumn(int visibleColumn)

pub unsafe fn set_root_model_index(
    &mut self,
    index: impl CastInto<Ref<QModelIndex>>
)
[src]

Sets the root model item index for the items in the combobox.

Calls C++ function: void QComboBox::setRootModelIndex(const QModelIndex& index).

C++ documentation:

Sets the root model item index for the items in the combobox.

See also rootModelIndex().

pub unsafe fn set_size_adjust_policy(&mut self, policy: SizeAdjustPolicy)[src]

This property holds the policy describing how the size of the combobox changes when the content changes

Calls C++ function: void QComboBox::setSizeAdjustPolicy(QComboBox::SizeAdjustPolicy policy).

C++ documentation:

This property holds the policy describing how the size of the combobox changes when the content changes

The default value is AdjustToContentsOnFirstShow.

Access functions:

SizeAdjustPolicy sizeAdjustPolicy() const
void setSizeAdjustPolicy(SizeAdjustPolicy policy)

See also SizeAdjustPolicy.

pub unsafe fn set_validator(&mut self, v: impl CastInto<Ptr<QValidator>>)[src]

Sets the validator to use instead of the current validator.

Calls C++ function: void QComboBox::setValidator(const QValidator* v).

C++ documentation:

Sets the validator to use instead of the current validator.

Note: The validator is removed when the editable property becomes false.

See also validator().

pub unsafe fn set_view(
    &mut self,
    item_view: impl CastInto<MutPtr<QAbstractItemView>>
)
[src]

Sets the view to be used in the combobox popup to the given itemView. The combobox takes ownership of the view.

Calls C++ function: void QComboBox::setView(QAbstractItemView* itemView).

C++ documentation:

Sets the view to be used in the combobox popup to the given itemView. The combobox takes ownership of the view.

Note: If you want to use the convenience views (like QListWidget, QTableWidget or QTreeWidget), make sure to call setModel() on the combobox with the convenience widgets model before calling this function.

See also view().

pub unsafe fn show_popup(&mut self)[src]

Displays the list of items in the combobox. If the list is empty then the no items will be shown.

Calls C++ function: virtual void QComboBox::showPopup().

C++ documentation:

Displays the list of items in the combobox. If the list is empty then the no items will be shown.

If you reimplement this function to show a custom pop-up, make sure you call hidePopup() to reset the internal state.

See also hidePopup().

pub unsafe fn size_adjust_policy(&self) -> SizeAdjustPolicy[src]

This property holds the policy describing how the size of the combobox changes when the content changes

Calls C++ function: QComboBox::SizeAdjustPolicy QComboBox::sizeAdjustPolicy() const.

C++ documentation:

This property holds the policy describing how the size of the combobox changes when the content changes

The default value is AdjustToContentsOnFirstShow.

Access functions:

SizeAdjustPolicy sizeAdjustPolicy() const
void setSizeAdjustPolicy(SizeAdjustPolicy policy)

See also SizeAdjustPolicy.

pub unsafe fn size_hint(&self) -> CppBox<QSize>[src]

Reimplemented from QWidget::sizeHint().

Calls C++ function: virtual QSize QComboBox::sizeHint() const.

C++ documentation:

Reimplemented from QWidget::sizeHint().

This implementation caches the size hint to avoid resizing when the contents change dynamically. To invalidate the cached value change the sizeAdjustPolicy.

pub unsafe fn validator(&self) -> Ptr<QValidator>[src]

Returns the validator that is used to constrain text input for the combobox.

Calls C++ function: const QValidator* QComboBox::validator() const.

C++ documentation:

Returns the validator that is used to constrain text input for the combobox.

See also setValidator() and editable.

pub unsafe fn view(&self) -> MutPtr<QAbstractItemView>[src]

Returns the list view used for the combobox popup.

Calls C++ function: QAbstractItemView* QComboBox::view() const.

C++ documentation:

Returns the list view used for the combobox popup.

See also setView().

Trait Implementations

impl CppDeletable for QFontComboBox[src]

unsafe fn delete(&mut self)[src]

Destroys the combobox.

Calls C++ function: virtual [destructor] void QFontComboBox::~QFontComboBox().

C++ documentation:

Destroys the combobox.

impl Deref for QFontComboBox[src]

type Target = QComboBox

The resulting type after dereferencing.

fn deref(&self) -> &QComboBox[src]

Calls C++ function: QComboBox* static_cast<QComboBox*>(QFontComboBox* ptr).

impl DerefMut for QFontComboBox[src]

fn deref_mut(&mut self) -> &mut QComboBox[src]

Calls C++ function: QComboBox* static_cast<QComboBox*>(QFontComboBox* ptr).

impl DynamicCast<QFontComboBox> for QComboBox[src]

unsafe fn dynamic_cast(ptr: Ptr<QComboBox>) -> Ptr<QFontComboBox>[src]

Calls C++ function: QFontComboBox* dynamic_cast<QFontComboBox*>(QComboBox* ptr).

unsafe fn dynamic_cast_mut(ptr: MutPtr<QComboBox>) -> MutPtr<QFontComboBox>[src]

Calls C++ function: QFontComboBox* dynamic_cast<QFontComboBox*>(QComboBox* ptr).

impl DynamicCast<QFontComboBox> for QWidget[src]

unsafe fn dynamic_cast(ptr: Ptr<QWidget>) -> Ptr<QFontComboBox>[src]

Calls C++ function: QFontComboBox* dynamic_cast<QFontComboBox*>(QWidget* ptr).

unsafe fn dynamic_cast_mut(ptr: MutPtr<QWidget>) -> MutPtr<QFontComboBox>[src]

Calls C++ function: QFontComboBox* dynamic_cast<QFontComboBox*>(QWidget* ptr).

impl DynamicCast<QFontComboBox> for QObject[src]

unsafe fn dynamic_cast(ptr: Ptr<QObject>) -> Ptr<QFontComboBox>[src]

Calls C++ function: QFontComboBox* dynamic_cast<QFontComboBox*>(QObject* ptr).

unsafe fn dynamic_cast_mut(ptr: MutPtr<QObject>) -> MutPtr<QFontComboBox>[src]

Calls C++ function: QFontComboBox* dynamic_cast<QFontComboBox*>(QObject* ptr).

impl DynamicCast<QFontComboBox> for QPaintDevice[src]

unsafe fn dynamic_cast(ptr: Ptr<QPaintDevice>) -> Ptr<QFontComboBox>[src]

Calls C++ function: QFontComboBox* dynamic_cast<QFontComboBox*>(QPaintDevice* ptr).

unsafe fn dynamic_cast_mut(ptr: MutPtr<QPaintDevice>) -> MutPtr<QFontComboBox>[src]

Calls C++ function: QFontComboBox* dynamic_cast<QFontComboBox*>(QPaintDevice* ptr).

impl StaticDowncast<QFontComboBox> for QComboBox[src]

unsafe fn static_downcast(ptr: Ptr<QComboBox>) -> Ptr<QFontComboBox>[src]

Calls C++ function: QFontComboBox* static_cast<QFontComboBox*>(QComboBox* ptr).

unsafe fn static_downcast_mut(ptr: MutPtr<QComboBox>) -> MutPtr<QFontComboBox>[src]

Calls C++ function: QFontComboBox* static_cast<QFontComboBox*>(QComboBox* ptr).

impl StaticDowncast<QFontComboBox> for QWidget[src]

unsafe fn static_downcast(ptr: Ptr<QWidget>) -> Ptr<QFontComboBox>[src]

Calls C++ function: QFontComboBox* static_cast<QFontComboBox*>(QWidget* ptr).

unsafe fn static_downcast_mut(ptr: MutPtr<QWidget>) -> MutPtr<QFontComboBox>[src]

Calls C++ function: QFontComboBox* static_cast<QFontComboBox*>(QWidget* ptr).

impl StaticDowncast<QFontComboBox> for QObject[src]

unsafe fn static_downcast(ptr: Ptr<QObject>) -> Ptr<QFontComboBox>[src]

Calls C++ function: QFontComboBox* static_cast<QFontComboBox*>(QObject* ptr).

unsafe fn static_downcast_mut(ptr: MutPtr<QObject>) -> MutPtr<QFontComboBox>[src]

Calls C++ function: QFontComboBox* static_cast<QFontComboBox*>(QObject* ptr).

impl StaticDowncast<QFontComboBox> for QPaintDevice[src]

unsafe fn static_downcast(ptr: Ptr<QPaintDevice>) -> Ptr<QFontComboBox>[src]

Calls C++ function: QFontComboBox* static_cast<QFontComboBox*>(QPaintDevice* ptr).

unsafe fn static_downcast_mut(
    ptr: MutPtr<QPaintDevice>
) -> MutPtr<QFontComboBox>
[src]

Calls C++ function: QFontComboBox* static_cast<QFontComboBox*>(QPaintDevice* ptr).

impl StaticUpcast<QComboBox> for QFontComboBox[src]

unsafe fn static_upcast(ptr: Ptr<QFontComboBox>) -> Ptr<QComboBox>[src]

Calls C++ function: QComboBox* static_cast<QComboBox*>(QFontComboBox* ptr).

unsafe fn static_upcast_mut(ptr: MutPtr<QFontComboBox>) -> MutPtr<QComboBox>[src]

Calls C++ function: QComboBox* static_cast<QComboBox*>(QFontComboBox* ptr).

impl StaticUpcast<QObject> for QFontComboBox[src]

unsafe fn static_upcast(ptr: Ptr<QFontComboBox>) -> Ptr<QObject>[src]

Calls C++ function: QObject* static_cast<QObject*>(QFontComboBox* ptr).

unsafe fn static_upcast_mut(ptr: MutPtr<QFontComboBox>) -> MutPtr<QObject>[src]

Calls C++ function: QObject* static_cast<QObject*>(QFontComboBox* ptr).

impl StaticUpcast<QPaintDevice> for QFontComboBox[src]

unsafe fn static_upcast(ptr: Ptr<QFontComboBox>) -> Ptr<QPaintDevice>[src]

Calls C++ function: QPaintDevice* static_cast<QPaintDevice*>(QFontComboBox* ptr).

unsafe fn static_upcast_mut(ptr: MutPtr<QFontComboBox>) -> MutPtr<QPaintDevice>[src]

Calls C++ function: QPaintDevice* static_cast<QPaintDevice*>(QFontComboBox* ptr).

impl StaticUpcast<QWidget> for QFontComboBox[src]

unsafe fn static_upcast(ptr: Ptr<QFontComboBox>) -> Ptr<QWidget>[src]

Calls C++ function: QWidget* static_cast<QWidget*>(QFontComboBox* ptr).

unsafe fn static_upcast_mut(ptr: MutPtr<QFontComboBox>) -> MutPtr<QWidget>[src]

Calls C++ function: QWidget* static_cast<QWidget*>(QFontComboBox* ptr).

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.