IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QWidgetItem Class

The QWidgetItem class is a layout item that represents a widget.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QWidgetItem Class

  • Header: QWidgetItem

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS Widgets)

    target_link_libraries(mytarget PRIVATE Qt6::Widgets)

  • qmake: QT += widgets

  • Inherits: QLayoutItem

  • Inherited By:

  • Group: QWidgetItem is part of geomanagement

Detailed Description

Normally, you don't need to use this class directly. Qt's built-in layout managers provide the following functions for manipulating widgets in layouts:

See Also

Member Function Documentation

 

[explicit] QWidgetItem::QWidgetItem(QWidget *widget)

Creates an item containing the given widget.

[virtual] QWidgetItem::~QWidgetItem()

Destructor.

[override virtual] QSizePolicy::ControlTypes QWidgetItem::controlTypes() const

Reimplements: QLayoutItem::controlTypes() const.

Returns the control type associated with the widget for which this size policy applies.

See Also

[override virtual] Qt::Orientations QWidgetItem::expandingDirections() const

[override virtual] QRect QWidgetItem::geometry() const

Reimplements: QLayoutItem::geometry() const.

See Also

See also setGeometry()

[override virtual] bool QWidgetItem::hasHeightForWidth() const

[override virtual] int QWidgetItem::heightForWidth(int w) const

[override virtual] bool QWidgetItem::isEmpty() const

Reimplements: QLayoutItem::isEmpty() const.

Returns true if the widget is hidden; otherwise returns false.

See Also

See also QWidget::isHidden()

[override virtual] QSize QWidgetItem::maximumSize() const

[override virtual] QSize QWidgetItem::minimumSize() const

[override virtual] void QWidgetItem::setGeometry(const QRect &rect)

Reimplements: QLayoutItem::setGeometry(const QRect &r).

See Also

See also geometry()

[override virtual] QSize QWidgetItem::sizeHint() const

[override virtual] QWidget *QWidgetItem::widget() const

Reimplements: QLayoutItem::widget() const.

Returns the widget managed by this item.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+