Fix invalid QApplication construction


QApplication construction with argc=0 is incorrect according to the doc.
The construction pattern is furthermore causing problems in QtWebEngine,
which is expecting the executable name as first command-line arguments
as reported in QTBUG-110157.

Fix problem by using the Microsoft-specific __argc and __argv globals.
This ensures that the actual command-line arguments are used for
QApplication construction.

Pick-to: 6.5
Task-number: QTBUG-110158
Change-Id: Ib8e6ac7a1c24cfabfdafe8489fe8b8c4765753fd
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
commita1b49152e7a46da955515b8d38d86b947d78bd26
parent0e15d0ad6bba4cb700b7cd6dc7532933e7981f6f
authorFredrik Orderud <fredrik.orderud@ge.com>
committerFredrik Orderud <fredrik.orderud@ge.com>
commit timeMon, 23 Jan 2023 14:51:17 +0100