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>
6namespace 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}
#define NDEVR_WIDGETS_API
Definition DLLInfo.h:81
A scroll area is used to display the contents of a child widget within a frame. If the widget exceeds...
Definition QCustomScrollArea.h:14
QCustomScrollArea(QWidget *parent=nullptr)
void setWidget(QWidget *w)
QSize sizeHint() const override
bool useFullScroll() const
Definition QCustomScrollArea.h:20
void setUseFullScroll(bool use_full_scroll)
bool eventFilter(QObject *, QEvent *event) override
Definition ACIColor.h:37