GSI Object Oriented Online Offline (Go4)
GO4-6.4.0
Loading...
Searching...
No Matches
qt4
Go4QtRootExample
ExampleWidget.h
Go to the documentation of this file.
1
// $Id$
2
//-----------------------------------------------------------------------
3
// The GSI Online Offline Object Oriented (Go4) Project
4
// Experiment Data Processing at EE department, GSI
5
//-----------------------------------------------------------------------
6
// Copyright (C) 2000- GSI Helmholtzzentrum fuer Schwerionenforschung GmbH
7
// Planckstr. 1, 64291 Darmstadt, Germany
8
// Contact: http://go4.gsi.de
9
//-----------------------------------------------------------------------
10
// This software can be used under the license agreements as stated
11
// in Go4License.txt file which is part of the distribution.
12
//-----------------------------------------------------------------------
13
14
#ifndef ExampleWidget_h
15
#define ExampleWidget_h
16
17
#include <QWidget>
18
#include "ui_ExampleWidget.h"
19
20
class
QRootCanvas
;
21
class
TH1F;
22
23
class
ExampleWidget
:
public
QWidget,
public
Ui::ExampleWidget
24
{
25
Q_OBJECT
26
27
public
:
28
29
ExampleWidget
(QWidget *parent =
nullptr
,
const
char
*name =
nullptr
);
30
31
virtual
~ExampleWidget
();
32
33
protected
:
34
void
resizeEvent
(QResizeEvent * e)
override
;
35
36
TH1F *
fHisto
{
nullptr
};
37
38
public
slots:
39
40
void
InfoButton_clicked
();
41
void
EditorButton_clicked
();
42
void
ExitButton_clicked
();
43
44
};
45
46
#endif
ExampleWidget::resizeEvent
void resizeEvent(QResizeEvent *e) override
Definition
ExampleWidget.cpp:66
ExampleWidget::InfoButton_clicked
void InfoButton_clicked()
Definition
ExampleWidget.cpp:50
ExampleWidget::fHisto
TH1F * fHisto
Definition
ExampleWidget.h:36
ExampleWidget::ExitButton_clicked
void ExitButton_clicked()
Definition
ExampleWidget.cpp:71
ExampleWidget::ExampleWidget
ExampleWidget(QWidget *parent=nullptr, const char *name=nullptr)
Definition
ExampleWidget.cpp:22
ExampleWidget::~ExampleWidget
virtual ~ExampleWidget()
Definition
ExampleWidget.cpp:45
ExampleWidget::EditorButton_clicked
void EditorButton_clicked()
Definition
ExampleWidget.cpp:55
QRootCanvas
This canvas uses Qt eventloop to handle user input.
Definition
QRootCanvas.h:57
Generated by
1.13.2