Quote Originally Posted by newtoQ_s View Post
I really am unable to obtain the filename as an argument. If I may explain

Qt Code:
  1. qDebug()<<QApplication::arguments().size();
  2. const QString toPass = argc > 1 ? QString(argv[1]) : QString();
  3. qDebug()<<toPass;
To copy to clipboard, switch view to plain text mode 

The above only gives 1 and an Empty String in the qDebug statements
How did you call the application?
Did you pass an argument?

Quote Originally Posted by newtoQ_s View Post
What I am trying to achieve is to be able to open the pinned files from the task bar of the pinned Qt Application over there and display their contents
We've already covered that.

Quote Originally Posted by newtoQ_s View Post
I do not wish to use QDesktopServices and open the files separately, rather use the file within the Qt application.
QDesktopServices is for delegating file opening to other applications, so not relevant here.

Quote Originally Posted by newtoQ_s View Post
Also, when using the pinned application, I do not see any debug lines getting printed in the Qt console, where can I look for the same?
Your operating system might have a logging facility and Qt might have been built with support for that and log to this factility.
If you are unsure, maybe log to a file.

Cheers,
_