Movatterモバイル変換


[0]ホーム

URL:


We bake cookies in your browser for a better experience. Using this site means that you consent.Read More

Menu

Qt Documentation

Compatibility Members for QToolButton

The following members of classQToolButtonare part of the Qt compatibility layer. We advise against using them in new code.

Public Types

enumTextPosition { BesideIcon, BelowIcon }

Public Functions

QToolButton(QWidget * parent, const char * name)
QToolButton(Qt::ArrowType type, QWidget * parent, const char * name)
QToolButton(const QIcon & icon, const QString & textLabel, const QString & statusTip, QObject * receiver, const char * slot, QWidget * parent, const char * name = 0)
QIconiconSet() const
QIconoffIconSet() const
QIcononIconSet() const
voidopenPopup()
QMenu *popup() const
intpopupDelay() const
voidsetIconSet(const QIcon & icon)
voidsetPixmap(const QPixmap & pixmap)
voidsetPopup(QMenu * popup)
voidsetPopupDelay(int delay)
voidsetTextLabel(const QString & text, bool tooltip = true)
QStringtextLabel() const
TextPositiontextPosition() const
boolusesBigPixmap() const
boolusesTextLabel() const

Public Slots

voidsetTextPosition(QToolButton::TextPosition pos)
voidsetUsesBigPixmap(bool enable)
voidsetUsesTextLabel(bool enable)

Member Type Documentation

enum QToolButton::TextPosition

This enum describes the position of the tool button's text label in relation to the tool button's icon.

ConstantValueDescription
QToolButton::BesideIcon0The text appears beside the icon.
QToolButton::BelowIcon1The text appears below the icon.

Member Function Documentation

QToolButton::QToolButton(QWidget * parent, constchar * name)

Constructs an empty tool button calledname, with parentparent.

QToolButton::QToolButton(Qt::ArrowType type,QWidget * parent, constchar * name)

Constructs a tool button as an arrow button. TheQt::ArrowTypetype defines the arrow direction. Possible values areQt::LeftArrow,Qt::RightArrow,Qt::UpArrow, andQt::DownArrow.

An arrow button has auto-repeat turned on by default.

Theparent andname arguments are sent to theQWidget constructor.

QToolButton::QToolButton(constQIcon & icon, constQString & textLabel, constQString & statusTip,QObject * receiver, constchar * slot,QWidget * parent, constchar * name = 0)

Constructs a tool button calledname, that is a child ofparent.

The tool button will display the givenicon, with its text label and tool tip set totextLabel and its status bar message set tostatusTip. It will be connected to theslot in objectreceiver.

QIcon QToolButton::iconSet() const

Useicon() instead.

See alsosetIconSet().

QIcon QToolButton::offIconSet() const

Useicon() instead.

See alsosetOffIconSet().

QIcon QToolButton::onIconSet() const

Useicon() instead.

See alsosetOnIconSet().

void QToolButton::openPopup()

UseshowMenu() instead.

QMenu * QToolButton::popup() const

Usemenu() instead.

See alsosetPopup().

int QToolButton::popupDelay() const

Use the style hintQStyle::SH_ToolButton_PopupDelay instead.

See alsosetPopupDelay().

void QToolButton::setIconSet(constQIcon & icon)

UsesetIcon() instead.

See alsoiconSet().

void QToolButton::setPixmap(constQPixmap & pixmap)

UsesetIcon(QIcon(pixmap)) instead.

void QToolButton::setPopup(QMenu * popup)

UsesetMenu() instead.

See alsopopup().

void QToolButton::setPopupDelay(int delay)

Use the style hintQStyle::SH_ToolButton_PopupDelay instead.

See alsopopupDelay().

void QToolButton::setTextLabel(constQString & text,bool tooltip = true)

UsesetText() andsetToolTip() instead.

See alsotextLabel().

[slot]void QToolButton::setTextPosition(QToolButton::TextPosition pos)

UsesetToolButtonStyle() instead.

See alsotextPosition().

[slot]void QToolButton::setUsesBigPixmap(bool enable)

UsesetIconSize() instead.

See alsousesBigPixmap().

[slot]void QToolButton::setUsesTextLabel(bool enable)

UsesetToolButtonStyle() instead.

See alsousesTextLabel().

QString QToolButton::textLabel() const

Usetext() instead.

See alsosetTextLabel().

TextPosition QToolButton::textPosition() const

UsetoolButtonStyle() instead.

See alsosetTextPosition().

bool QToolButton::usesBigPixmap() const

UseiconSize() instead.

See alsosetUsesBigPixmap().

bool QToolButton::usesTextLabel() const

UsetoolButtonStyle() instead.

See alsosetUsesTextLabel().

© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of theGNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.


[8]ページ先頭

©2009-2025 Movatter.jp