thanks again, I tried it and got it working as well
Qt Code:
  1. QString toPass;
  2. const QStringList arguments = QCoreApplication::arguments();
  3. if(arguments.count()==1) toPass = "";
  4. else toPass = arguments.at(1);
  5.  
  6. VerticalBox window(toPass);
To copy to clipboard, switch view to plain text mode