Hey, Thanks for the response.
I did try connecting the forward() and backward() slots directly, as you see with the homeAct action and the home() slot, but this didn't work either. So I broke them out in order to use qDebug() to make sure the trigger() action was happening, which it is.
Here's my header
#ifndef HELPWINDOW_H
#define HELPWINDOW_H
#include "ui_HelpWindow.h"
class HelpWindow
: public QMainWindow,
private Ui
::HelpWindow{
Q_OBJECT
public:
HelpWindow
(QWidget* parent
= 0, Qt
::WFlags fl
= 1);
~HelpWindow();
private slots:
void goForward();
void goBack();
private:
void openFile
(const QString &fileName
);
void loadFile
(const QString &fileName
);
void setupActions();
void setupToolbar();
};
#endif //helpwindow_h
#ifndef HELPWINDOW_H
#define HELPWINDOW_H
#include "ui_HelpWindow.h"
class QToolBar;
class HelpWindow : public QMainWindow, private Ui::HelpWindow
{
Q_OBJECT
public:
HelpWindow(QWidget* parent = 0, Qt::WFlags fl = 1);
~HelpWindow();
private slots:
void goForward();
void goBack();
private:
void openFile(const QString &fileName);
void loadFile(const QString &fileName);
void setupActions();
void setupToolbar();
QToolBar *navToolBar;
QAction* backAct;
QAction* forwardAct;
QAction* homeAct;
};
#endif //helpwindow_h
To copy to clipboard, switch view to plain text mode
Bookmarks