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
splitter.h
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#ifndef SPLITTER_H
5#define SPLITTER_H
6
7#include <QLinearGradient>
8#include <QSplitter>
9#include <QSplitterHandle>
10
11class QPaintEvent;
12
14class Splitter : public QSplitter
15{
16public:
18
19protected:
20 QSplitterHandle *createHandle() override;
21};
23
25{
26public:
28
29protected:
30 void paintEvent(QPaintEvent *event) override;
31
32private:
33 QLinearGradient gradient;
34};
35
36#endif
\inmodule QtGui
Definition qbrush.h:394
QObject * parent() const
Returns a pointer to the parent object.
Definition qobject.h:346
The QPaintEvent class contains event parameters for paint events.
Definition qevent.h:486
The QSplitterHandle class provides handle functionality for the splitter.
Definition qsplitter.h:98
Qt::Orientation orientation() const
Returns the handle's orientation.
The QSplitter class implements a splitter widget.
Definition qsplitter.h:21
Qt::Orientation orientation
the orientation of the splitter
Definition qsplitter.h:24
The QWidget class is the base class of all user interface objects.
Definition qwidget.h:99
SplitterHandle(Qt::Orientation orientation, QSplitter *parent)
Definition splitter.cpp:8
void paintEvent(QPaintEvent *event) override
[0]
Definition splitter.cpp:17
[0]
Definition splitter.h:15
Splitter(Qt::Orientation orientation, QWidget *parent=nullptr)
[0]
Definition splitter.cpp:31
QSplitterHandle * createHandle() override
[1]
Definition splitter.cpp:37
Orientation
Definition qnamespace.h:98
struct _cl_event * event