ROOT
v6-32
Reference Guide
Loading...
Searching...
No Matches
RCanvasWidget.h
Go to the documentation of this file.
1
// Author: Sergey Linev, GSI 13/01/2021
2
3
/*************************************************************************
4
* Copyright (C) 1995-2021, Rene Brun and Fons Rademakers. *
5
* All rights reserved. *
6
* *
7
* For the licensing terms see $ROOTSYS/LICENSE. *
8
* For the list of contributors see $ROOTSYS/README/CREDITS. *
9
*************************************************************************/
10
11
#ifndef RCanvasWidget_H
12
#define RCanvasWidget_H
13
14
#include <QWidget>
15
#include <QWebEngineView>
16
17
#include <memory>
18
19
namespace
ROOT
{
20
namespace
Experimental
{
21
class
RCanvas
;
22
}
23
}
24
25
class
RCanvasWidget
:
public
QWidget
{
26
27
Q_OBJECT
28
29
protected
:
30
31
void
resizeEvent
(QResizeEvent *event)
override
;
32
33
QWebEngineView
*
fView
{
nullptr
};
///< qt webwidget to show
34
35
std::shared_ptr<ROOT::Experimental::RCanvas>
fCanvas
;
36
37
public
:
38
RCanvasWidget
(
QWidget
*parent =
nullptr
);
39
~RCanvasWidget
()
override
;
40
41
/// returns canvas shown in the widget
42
auto
getCanvas
() {
return
fCanvas
; }
43
44
};
45
46
#endif
QWebEngineView
QWidget
RCanvasWidget::fView
QWebEngineView * fView
qt webwidget to show
Definition
RCanvasWidget.h:33
RCanvasWidget::~RCanvasWidget
~RCanvasWidget() override
Definition
RCanvasWidget.cpp:47
RCanvasWidget::getCanvas
auto getCanvas()
returns canvas shown in the widget
Definition
RCanvasWidget.h:42
RCanvasWidget::RCanvasWidget
RCanvasWidget(QWidget *parent=nullptr)
Definition
RCanvasWidget.cpp:16
RCanvasWidget::resizeEvent
void resizeEvent(QResizeEvent *event) override
Definition
RCanvasWidget.cpp:53
RCanvasWidget::fCanvas
std::shared_ptr< ROOT::Experimental::RCanvas > fCanvas
Definition
RCanvasWidget.h:35
ROOT::Experimental::RCanvas
A window's topmost RPad.
Definition
RCanvas.hxx:47
ROOT::Experimental
Definition
RDirectory.hxx:30
ROOT
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...
Definition
EExecutionPolicy.hxx:4
tutorials
webgui
qtweb
RCanvasWidget.h
ROOT v6-32 - Reference Guide Generated on Wed May 27 2026 02:49:23 (GVA Time) using Doxygen 1.13.2