Hi,
I have a syntax confusion with QList variable. I would like to ask you for the confirmation. My code is
VlcInstance
::VlcInstance ( const QList<
const char * >
& args,
QObject * parent
= NULL) // Function syntax to pass my arguments.
const QList<const char *> *args = new QList<const char *>();
//preparation of the vlc command
const char* vlc_args[] = {"-I", "dummy"};
args->append(vlc_args);
VlcInstance(args, this); // I believe that I am passing pointer argument value which is the address
VlcInstance::VlcInstance ( const QList< const char * > & args, QObject * parent = NULL) // Function syntax to pass my arguments.
const QList<const char *> *args = new QList<const char *>();
//preparation of the vlc command
const char* vlc_args[] = {"-I", "dummy"};
args->append(vlc_args);
VlcInstance(args, this); // I believe that I am passing pointer argument value which is the address
To copy to clipboard, switch view to plain text mode
Though I have understanding with pointers, I am still confused as it has many pointers. I would really appreciate the correction with little bit of explanation. for future understanding.
Bookmarks