Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TQt6GuiFactory.cxx
Go to the documentation of this file.
1// Author: Sergey Linev 2/07/2026
2
3/*************************************************************************
4 * Copyright (C) 1995-2026, 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
12/** \class TQt6GuiFactory
13 \ingroup qt6canvas
14
15This class is a factory for ROOT GUI components.
16For Qt6 it provides specialization for TCanvasImp and TContextMenuImp classes
17*/
18
19
20#include "TQt6GuiFactory.h"
21
22#include "TQt6Canvas.h"
23#include "TQt6Application.h"
24#include "QRootContextMenu.h"
25
26using namespace ROOT::Experimental;
27
28////////////////////////////////////////////////////////////////////////////////
29/// TQt6GuiFactory ctor.
30
31TQt6GuiFactory::TQt6GuiFactory(const char *name, const char *title)
32 : TGuiFactory(name, title)
33{
34}
35
36////////////////////////////////////////////////////////////////////////////////
37/// Create a ROOT native GUI version of TApplicationImp
38
40 Int_t *argc, char **argv)
41{
42 return new TQt6Application(classname, argc, argv);
43}
44
45////////////////////////////////////////////////////////////////////////////////
46/// Create a ROOT native GUI version of TCanvasImp
47
50{
51 return TQt6Canvas::NewCanvas(c, title, -1, -1, width, height);
52}
53
54////////////////////////////////////////////////////////////////////////////////
55/// Create a ROOT native GUI version of TCanvasImp
56
62
63////////////////////////////////////////////////////////////////////////////////
64/// Create a ROOT native GUI version of TContextMenuImp
65
67 const char *name, const char *)
68{
69 return new QRootContextMenu(c, name);
70}
#define c(i)
Definition RSha256.hxx:101
Option_t Option_t width
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
char name[80]
Definition TGX11.cxx:142
This class provides an interface to context-sensitive popup menus.
static TCanvasImp * NewCanvas(TCanvas *c, const char *name, Int_t x, Int_t y, UInt_t width, UInt_t height)
Static method to create TQt6Canvas instance Used by plugin manager to directly create TQt6Canvas with...
TApplicationImp * CreateApplicationImp(const char *classname, int *argc, char **argv) override
Create a ROOT native GUI version of TApplicationImp.
TCanvasImp * CreateCanvasImp(TCanvas *c, const char *title, UInt_t width, UInt_t height) override
Create a ROOT native GUI version of TCanvasImp.
TContextMenuImp * CreateContextMenuImp(TContextMenu *c, const char *name, const char *title) override
Create a ROOT native GUI version of TContextMenuImp.
ABC describing GUI independent application implementation protocol.
ABC describing GUI independent main window (with menubar, scrollbars and a drawing area).
Definition TCanvasImp.h:31
The Canvas class.
Definition TCanvas.h:23
This class provides an interface to GUI independent context sensitive popup menus.
This class provides an interface to context sensitive popup menus.
This ABC is a factory for GUI components.
Definition TGuiFactory.h:42
Double_t y[n]
Definition legend1.C:17
Double_t x[n]
Definition legend1.C:17
Namespace for ROOT features in testing.
Definition TROOT.h:100