Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
src_gui_styles_qstyleoption.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
5int MyStyle::styleHint(StyleHint stylehint, const QStyleOption *opt,
6 const QWidget *widget, QStyleHintReturn* returnData) const;
7{
8 if (stylehint == SH_RubberBand_Mask) {
9 const QStyleHintReturnMask *maskReturn =
10 qstyleoption_cast<const QStyleHintReturnMask *>(hint);
11 if (maskReturn) {
12 ...
13 }
14 }
15 ...
16}
The QStyleHintReturnMask class provides style hints that return a QRegion.
\variable QStyleOptionGraphicsItem::exposedRect
The QStyleOption class stores the parameters used by QStyle functions.
virtual int styleHint(StyleHint stylehint, const QStyleOption *opt=nullptr, const QWidget *widget=nullptr, QStyleHintReturn *returnData=nullptr) const =0
Returns an integer representing the specified style hint for the given widget described by the provid...
The QWidget class is the base class of all user interface objects.
Definition qwidget.h:99
QOpenGLWidget * widget
[1]
QStyleOptionButton opt
static QT_BEGIN_NAMESPACE QVariant hint(QPlatformIntegration::StyleHint h)