mainwindow.h Example File
svgviewer/mainwindow.h
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QString>
class SvgView;
class QAction;
class QGraphicsView;
class QGraphicsScene;
class QGraphicsRectItem;
class QLabel;
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow();
bool loadFile(const QString &path);
public slots:
void openFile();
void exportImage();
void setRenderer(int renderMode);
private slots:
void updateZoomLabel();
private:
QAction *m_nativeAction;
QAction *m_glAction;
QAction *m_imageAction;
QAction *m_highQualityAntialiasingAction;
QAction *m_backgroundAction;
QAction *m_outlineAction;
SvgView *m_view;
QLabel *m_zoomLabel;
QString m_currentPath;
};
#endif