can i write a slots with defalut param?
-
i want to write a slot like this: void AddFile(const QStringList& list = QStringList());
and then i can do this:- connect(xxx, SIGNAL(add()), xxx, AddFile() );
- connect(xxx, SIGNAL(add(const QStringList&)), xxx, AddFile(const QStringList&));
is it Right?
ps. how to init a empty QStringList? what i wrote is right?