Hardening consulting

Passing arguments to Qt5 platform integration plugin

qt5

I've worked recently with my qfreerdp_platform plugin, and I've added some code to set the width or the height of the emulated screen as plugin arguments.

The code looks like that:

class QFreeRdpIntegration : public QPlatformIntegration {
public:
    QFreeRdpIntegration(const QStringList& paramList);
    ~QFreeRdpIntegration();

   /** ..... */
}

Then a trivial question came to me: how do I pass the plugin arguments ? Obviously the parameters will end in paramList but what's the name of the command line argument ?

After an hour of googling and searches in obscure Qt4 forum, the solution:

# myapp -platform plugin:arg1:arg2:...

Hope it helped.