[Development] A new approach for Qt main()

Matthew Woehlke mwoehlke.floss at gmail.com
Wed Dec 14 21:35:20 CET 2016

On 2016-12-09 19:43, Thiago Macieira wrote:
> Em sexta-feira, 9 de dezembro de 2016, às 16:50:29 PST, Matthew Woehlke escreveu:
>> On 2016-12-09 16:23, Thiago Macieira wrote:
>>> That's a valid concern, but not one that warrants a QApplication subclass.
>> Right; that one is an issue if the user is no longer in control of
>> instantiating the Q*Application instance.
> Ah, that's a good point.
> Though quite frankly I don't see that as an issue. Applications can only have 
> access to argc and argv if they write the main() function, which means they 
> can continue to use the current functionality.
> I'm imaginiing that this new way is needed for platforms where a main() 
> function makes no sense, in which case there's no command-line to begin with.

If we're not deprecating the traditional main(), that WFM. (That's not
how I read the initial post, however...)


More information about the Development mailing list