API Documentation
Loading...
Searching...
No Matches
QCustomScrollArea.h
Go to the documentation of this file.
1
#pragma once
2
#include "
DLLInfo.h
"
3
#include <QScrollArea>
4
#include <QScrollBar>
5
#include <QEvent>
6
namespace
NDEVR
7
{
8
/**--------------------------------------------------------------------------------------------------
9
\brief A scroll area is used to display the contents of a child widget within a frame. If the widget
10
exceeds the size of the frame, the view can provide scroll bars so that the entire area of
11
the child widget can be viewed.
12
*-----------------------------------------------------------------------------------------------**/
13
class
NDEVR_WIDGETS_API
QCustomScrollArea
:
public
QScrollArea
14
{
15
public
:
16
QCustomScrollArea
(QWidget* parent =
nullptr
);
17
bool
eventFilter
(QObject*, QEvent* event)
override
;
18
void
setWidget
(QWidget* w);
19
void
setUseFullScroll
(
bool
use_full_scroll);
20
bool
useFullScroll
()
const
{
return
m_use_full_scroll; };
21
QWidget*
takeWidget
();
22
QSize
sizeHint
()
const override
;
23
protected
:
24
bool
m_use_full_scroll =
false
;
25
};
26
}
DLLInfo.h
NDEVR_WIDGETS_API
#define NDEVR_WIDGETS_API
Definition
DLLInfo.h:81
NDEVR::QCustomScrollArea
A scroll area is used to display the contents of a child widget within a frame. If the widget exceeds...
Definition
QCustomScrollArea.h:14
NDEVR::QCustomScrollArea::QCustomScrollArea
QCustomScrollArea(QWidget *parent=nullptr)
NDEVR::QCustomScrollArea::setWidget
void setWidget(QWidget *w)
NDEVR::QCustomScrollArea::sizeHint
QSize sizeHint() const override
NDEVR::QCustomScrollArea::useFullScroll
bool useFullScroll() const
Definition
QCustomScrollArea.h:20
NDEVR::QCustomScrollArea::takeWidget
QWidget * takeWidget()
NDEVR::QCustomScrollArea::setUseFullScroll
void setUseFullScroll(bool use_full_scroll)
NDEVR::QCustomScrollArea::eventFilter
bool eventFilter(QObject *, QEvent *event) override
NDEVR
Definition
ACIColor.h:37
Widgets
Headers
QCustomScrollArea.h