18#include "TWebCanvas.h"
22 setObjectName(
"TCanvasWidget");
24 setSizeIncrement( QSize( 100, 100 ) );
26 setUpdatesEnabled(
true );
27 setMouseTracking(
true);
29 setFocusPolicy( Qt::TabFocus );
30 setCursor( Qt::CrossCursor );
34 static int wincnt = 1;
47 TWebCanvas *web =
new TWebCanvas(
fCanvas,
"title", 0, 0, 800, 600, read_only);
53 web->SetCanCreateObjects(
kFALSE);
65 web->ShowWebWindow(where);
67 fView = findChild<QWebEngineView*>(
"RootWebView");
69 printf(
"FAIL TO FIND QWebEngineView - ROOT Qt5Web plugin does not work properly !!!!!\n");
92 Long_t offset = TCanvas::Class()->GetDataMemberOffset(
"fCanvasID");
97 printf(
"ERROR: Cannot modify fCanvasID data member\n");
100 offset = TCanvas::Class()->GetDataMemberOffset(
"fMother");
105 printf(
"ERROR: Cannot set fMother data member in canvas\n");
119 cimp->ShowEditor(
kTRUE);
120 cimp->ActivateInEditor(pad, obj);
include TDocParser_001 C image html pict1_TDocParser_001 png width
char * Form(const char *fmt,...)
static std::string GetQt5EmbedQualifier(const void *qparent, const std::string &urlopt="")
returns string which can be used as argument in RWebWindow::Show() method to display web window in pr...
ABC describing GUI independent main window (with menubar, scrollbars and a drawing area).
virtual void ShowEditor(Bool_t show=kTRUE)
virtual void ShowStatusBar(Bool_t show=kTRUE)
TCanvasImp * GetCanvasImp() const override
void Close(Option_t *option="") override
Close canvas.
void SetCanvasImp(TCanvasImp *i)
void SetCanvasSize(UInt_t ww, UInt_t wh) override
Set Width and Height of canvas to ww and wh respectively.
void SetTitle(const char *title="") override
Set canvas title.
Int_t GetCanvasID() const override
void SetName(const char *name="") override
Set canvas name. In case name is an empty string, a default name is set.
void SetBatch(Bool_t batch=kTRUE) override
Toggle batch mode.
virtual Int_t GetValue(const char *name, Int_t dflt) const
Returns the integer value for a resource.
Mother of all ROOT objects.
The most important graphics class in the ROOT system.
TVirtualPad * GetMother() const override
void SetCanvas(TCanvas *c) override