Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new Qt-based Todo List application in the
CPP/todo.cpp
file. The application allows users to add and remove tasks through a graphical user interface.New Features:
Qt Application Setup:
QApplication
,QMainWindow
,QLabel
,QVBoxLayout
,QWidget
,QLineEdit
,QPushButton
,QListView
,QStringListModel
, andQMessageBox
. ([CPP/todo.cppR1-R96](https://github.com/fineanmol/Hacktoberfest2024/pull/7986/files#diff-0b6c595284b3f863ba11db49bda3c1de22ec2b20a7a496c2c94e44f8c84089c4R1-R96)
)TodoListApp
class inheriting fromQMainWindow
to set up the main window and central widget. ([CPP/todo.cppR1-R96](https://github.com/fineanmol/Hacktoberfest2024/pull/7986/files#diff-0b6c595284b3f863ba11db49bda3c1de22ec2b20a7a496c2c94e44f8c84089c4R1-R96)
)Task Management:
QStringListModel
to manage the list of tasks. ([CPP/todo.cppR1-R96](https://github.com/fineanmol/Hacktoberfest2024/pull/7986/files#diff-0b6c595284b3f863ba11db49bda3c1de22ec2b20a7a496c2c94e44f8c84089c4R1-R96)
)QListView
to display tasks and disabled editing directly in the view. ([CPP/todo.cppR1-R96](https://github.com/fineanmol/Hacktoberfest2024/pull/7986/files#diff-0b6c595284b3f863ba11db49bda3c1de22ec2b20a7a496c2c94e44f8c84089c4R1-R96)
)QLineEdit
for task input andQPushButton
for adding and removing tasks. ([CPP/todo.cppR1-R96](https://github.com/fineanmol/Hacktoberfest2024/pull/7986/files#diff-0b6c595284b3f863ba11db49bda3c1de22ec2b20a7a496c2c94e44f8c84089c4R1-R96)
)User Interaction:
add_task
) that adds a new task to the list if the input is not empty, otherwise shows a warning message. ([CPP/todo.cppR1-R96](https://github.com/fineanmol/Hacktoberfest2024/pull/7986/files#diff-0b6c595284b3f863ba11db49bda3c1de22ec2b20a7a496c2c94e44f8c84089c4R1-R96)
)remove_task
)