Skip to content

Instantly share code, notes, and snippets.

@ameerkahiri
Last active August 2, 2021 07:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ameerkahiri/2551a91d60c86b336e20cb41001e8706 to your computer and use it in GitHub Desktop.
Save ameerkahiri/2551a91d60c86b336e20cb41001e8706 to your computer and use it in GitHub Desktop.
ToDoApp : Constuctor
ToDoApps::ToDoApps(QWidget *parent)
: QWidget(parent)
{
ui.setupUi(this);
// Set stylesheet
initStylesheet();
// Connect the add new task button
connect(ui.AddNewBtn, SIGNAL(clicked()), this, SLOT(SlotAddNewTask()));
ui.NewTaskLineEdit->setText("Today, I want to...");
ui.NewDateText->setText(QDate::currentDate().toString());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment