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