Hi all. I'm back trying to learn something about Qt. My c++ knowledge is very rudimentary so as a result I am having some difficulty picking up on what's going on in the code examples and tutorials on the web. Please bear with me as I expect to post numerous questions in the coming months. I'll start with this code from the bogotobogo "Qt5_QTableView_QItemDelegate_ModelView_MVC " tutorial which I'm trying to understand:
DelegateTableViewDialog
::DelegateTableViewDialog(QWidget *parent
) : ui(new Ui::DelegateTableViewDialog)
DelegateTableViewDialog
::DelegateTableViewDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::DelegateTableViewDialog)
To copy to clipboard, switch view to plain text mode
Please point out where I am wrong here -
I think it's the constructor for the DelegateTableViewDialog class that expects a QWidget pointer to it's parent which it gets from the initialization list in the form of a QWidget and then instantiates ui as a DelegateTableViewDialog object. It's just the generic theory I'm wondering about. (I am going to try to use a TableView in my code but that'll be further on down the road.)
Thanks
Bookmarks