Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Header file for Timer enabled Image Viewer part 2 of 5
- // MD Harrington using open source QT
- // Class definitions header file
- // Links for others who may be interested can be found on git hub at this address
- // https://github.com/markh2016/QT_Timer_Imageviewer.git
- /* Special word of thanks to Brian Cairns Void-realms Facebook who put tutorials together for us whom cant afford much right now Working version / desktop recording available at this link https://www.facebook.com/groups/1400884323467285 */
- #ifndef IMAGEDIALOG_H
- #define IMAGEDIALOG_H
- #include <QDialog>
- #include <QDir>
- #include <QDebug>
- #include <QScrollBar>
- #include <QTimer>
- QT_BEGIN_NAMESPACE
- namespace Ui { class ImageDialog; }
- QT_END_NAMESPACE
- class ImageDialog : public QDialog
- {
- Q_OBJECT
- public:
- ImageDialog(QWidget *parent = nullptr);
- ~ImageDialog();
- bool loadDir(const QDir &path);
- private slots:
- void update();
- void start_M_Timer();
- private:
- Ui::ImageDialog *ui;
- QDir dirOne = QDir("/home/mark/Pictures") ; // initialise Directory from which we want to load files
- QStringList list ;
- QTimer *timer ;
- int stack ;
- int m_counter=2 ;
- };
- #endif // IMAGEDIALOG_H
Add Comment
Please, Sign In to add comment