Translations:Development/Tutorials/Common Programming Mistakes/79/pt-br: Difference between revisions

From KDE TechBase
(Created page with "A solução é simples: precisamos atrasar a construção de qualquer coisa além da GUI até depois que o loop de eventos for iniciado. Aqui está como o construtor da classe...")
 
(No difference)

Latest revision as of 17:19, 22 April 2020

Information about message (contribute)
This message has no documentation. If you know where or how this message is used, you can help other translators by adding documentation to this message.
Message definition (Development/Tutorials/Common Programming Mistakes)
The solution is simple: we need to delay the construction of anything besides the GUI until after the event loop has started. Here is how the example class MainWindow's constructor could look to achieve this:

A solução é simples: precisamos atrasar a construção de qualquer coisa além da GUI até depois que o loop de eventos for iniciado. Aqui está como o construtor da classe MainWindow de exemplo pode parecer para conseguir isso: