Hi,

I have a syntax confusion with QList variable. I would like to ask you for the confirmation. My code is

Qt Code:
  1. VlcInstance::VlcInstance ( const QList< const char * > & args, QObject * parent = NULL) // Function syntax to pass my arguments.
  2.  
  3. const QList<const char *> *args = new QList<const char *>();
  4. //preparation of the vlc command
  5. const char* vlc_args[] = {"-I", "dummy"};
  6. args->append(vlc_args);
  7. 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.