The "bool *ok" solution is the best. If you can't alter the arguments but you can alter the returned value you can use
Qt Code:
  1. QPair<bool, QList<int> > returnListFunction() {}
To copy to clipboard, switch view to plain text mode