Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TCanvasWidget Class Reference

Definition at line 21 of file TCanvasWidget.h.

Public Slots

void activateEditor (TPad *pad=nullptr, TObject *obj=nullptr)
 
void activateStatusLine ()
 
void setEditorVisible (bool flag=true)
 

Signals

void CanvasUpdated ()
 
void PadClicked (TPad *, int, int)
 
void PadDblClicked (TPad *, int, int)
 
void SelectedPadChanged (TPad *)
 

Public Member Functions

 TCanvasWidget (QWidget *parent=nullptr)
 
virtual ~TCanvasWidget ()
 
TCanvasgetCanvas ()
 returns canvas shown in the widget
 

Protected Member Functions

void resizeEvent (QResizeEvent *event) override
 
void SetPrivateCanvasFields (bool on_init)
 

Protected Attributes

TCanvasfCanvas {nullptr}
 
QWebEngineView * fView {nullptr}
 qt webwidget to show
 

#include </home/sftnight/build/workspace/root-makedoc-v624/rootspi/rdoc/src/v6-24-00-patches/tutorials/webgui/qt5web/TCanvasWidget.h>

Inheritance diagram for TCanvasWidget:
[legend]

Constructor & Destructor Documentation

◆ TCanvasWidget()

TCanvasWidget::TCanvasWidget ( QWidget parent = nullptr)

Definition at line 20 of file TCanvasWidget.cpp.

◆ ~TCanvasWidget()

TCanvasWidget::~TCanvasWidget ( )
virtual

Definition at line 77 of file TCanvasWidget.cpp.

Member Function Documentation

◆ activateEditor

void TCanvasWidget::activateEditor ( TPad pad = nullptr,
TObject obj = nullptr 
)
slot

Definition at line 115 of file TCanvasWidget.cpp.

◆ activateStatusLine

void TCanvasWidget::activateStatusLine ( )
slot

Definition at line 130 of file TCanvasWidget.cpp.

◆ CanvasUpdated

void TCanvasWidget::CanvasUpdated ( )
signal

◆ getCanvas()

TCanvas * TCanvasWidget::getCanvas ( )
inline

returns canvas shown in the widget

Definition at line 30 of file TCanvasWidget.h.

◆ PadClicked

void TCanvasWidget::PadClicked ( TPad ,
int  ,
int   
)
signal

◆ PadDblClicked

void TCanvasWidget::PadDblClicked ( TPad ,
int  ,
int   
)
signal

◆ resizeEvent()

void TCanvasWidget::resizeEvent ( QResizeEvent *  event)
overrideprotected

Definition at line 109 of file TCanvasWidget.cpp.

◆ SelectedPadChanged

void TCanvasWidget::SelectedPadChanged ( TPad )
signal

◆ setEditorVisible

void TCanvasWidget::setEditorVisible ( bool  flag = true)
slot

Definition at line 124 of file TCanvasWidget.cpp.

◆ SetPrivateCanvasFields()

void TCanvasWidget::SetPrivateCanvasFields ( bool  on_init)
protected

Definition at line 90 of file TCanvasWidget.cpp.

Member Data Documentation

◆ fCanvas

TCanvas* TCanvasWidget::fCanvas {nullptr}
protected

Definition at line 58 of file TCanvasWidget.h.

◆ fView

QWebEngineView* TCanvasWidget::fView {nullptr}
protected

qt webwidget to show

Definition at line 56 of file TCanvasWidget.h.

  • tutorials/webgui/qt5web/TCanvasWidget.h
  • tutorials/webgui/qt5web/TCanvasWidget.cpp