Use __FILE__ macro :
Qt Code:
  1. setWindowTitle(QString("My Program Caption[*] - %1").arg(__FILE__));
To copy to clipboard, switch view to plain text mode