Your method has a return type of QStringList, so all exits from it must return a QStringList object.

Qt Code:
  1. return QStringList();
To copy to clipboard, switch view to plain text mode 

Cheers,
_