Skip to content

Instantly share code, notes, and snippets.

@manashmandal
Created April 13, 2016 05:48
Show Gist options
  • Save manashmandal/e101cc31c924cda2da84620203aec536 to your computer and use it in GitHub Desktop.
Save manashmandal/e101cc31c924cda2da84620203aec536 to your computer and use it in GitHub Desktop.
#ifndef QMAINWIDGET_H
#define QMAINWIDGET_H
#include <QWidget>
#include <QListWidget>
#include <QListWidgetItem>
#include <QDebug>
#include "thewidgetitem.h" //Since we want to use the "TheWidgetItem" widget as the QListWidgetItem
namespace Ui {
class QMainWidget;
}
class QMainWidget : public QWidget
{
Q_OBJECT
public:
explicit QMainWidget(QWidget *parent = 0);
~QMainWidget();
private slots:
void on_addBtn_clicked();
void on_delBtn_clicked();
private:
Ui::QMainWidget *ui;
};
#endif // QMAINWIDGET_H
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment