Skip to content

Instantly share code, notes, and snippets.

@ameerkahiri
Last active August 2, 2021 07:28
Show Gist options
  • Save ameerkahiri/c9a1927bb1a0b40318bf441a65692291 to your computer and use it in GitHub Desktop.
Save ameerkahiri/c9a1927bb1a0b40318bf441a65692291 to your computer and use it in GitHub Desktop.
ToDoApps header file
#pragma once
#include <QtWidgets/QWidget>
#include "ui_ToDoApps.h"
#include <QDate>
#include <QDir>
class ToDoApps : public QWidget
{
Q_OBJECT
public:
ToDoApps(QWidget *parent = Q_NULLPTR);
private:
Ui::ToDoAppsClass ui;
public:
void initStylesheet();
void createNewTask(QString taskName, QString date);
public slots:
void SlotAddNewTask();
void SlotDeleteTask();
signals:
void SignalAddNewTask(QString taskName, QString date); // incase you wonder how to create custom signal. Useful when you want to call this signal in other classes/widgets
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment