Logo ROOT  
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
19namespace ROOT {
20namespace Experimental {
21class RCanvas;
22}
23}
24
25class RCanvasWidget : public QWidget {
26
27 Q_OBJECT
28
29protected:
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
37public:
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 * fView
qt webwidget to show
~RCanvasWidget() override
auto getCanvas()
returns canvas shown in the widget
void resizeEvent(QResizeEvent *event) override
std::shared_ptr< ROOT::Experimental::RCanvas > fCanvas
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...