Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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
4//! [0]
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}
17//! [0]