User contributions for Juliano Assis
A user with 1,517 edits. Account created on 2 October 2019.
26 April 2021
- 22:2322:23, 26 April 2021 diff hist −40 Translations:Development/Tutorials/117/pt-br No edit summary current
- 22:2322:23, 26 April 2021 diff hist −2 Translations:Development/Tutorials/103/pt-br No edit summary current
- 22:2222:22, 26 April 2021 diff hist −2 Translations:Development/Tutorials/102/pt-br No edit summary current
- 22:2222:22, 26 April 2021 diff hist −2 Translations:Development/Tutorials/101/pt-br No edit summary current
22 April 2020
- 17:3517:35, 22 April 2020 diff hist +10 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "Portanto, a assinatura canônica de um método que usa argumentos QString é:" current
- 17:3517:35, 22 April 2020 diff hist +77 N Translations:Development/Tutorials/Common Programming Mistakes/89/pt-br Created page with "Portanto, a assinatura canônica de um método que usa argumentos QString é:" current
- 17:3417:34, 22 April 2020 diff hist +24 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "Tome, por exemplo, {{qt|QString}}. Eles sempre devem ser passados para os métodos como <tt>const {{qt|QString}}&</tt>. Embora o {{qt|QString}} seja compartilhado implicitamen..."
- 17:3417:34, 22 April 2020 diff hist +280 N Translations:Development/Tutorials/Common Programming Mistakes/88/pt-br Created page with "Tome, por exemplo, {{qt|QString}}. Eles sempre devem ser passados para os métodos como <tt>const {{qt|QString}}&</tt>. Embora o {{qt|QString}} seja compartilhado implicitamen..." current
- 17:3217:32, 22 April 2020 diff hist +8 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "Tipos Non-POD ("plain old data") devem ser passados por const de referência sempre que possível. Isso inclui qualquer coisa além dos tipos básicos, como <tt>char</tt> e <t..."
- 17:3217:32, 22 April 2020 diff hist +186 N Translations:Development/Tutorials/Common Programming Mistakes/87/pt-br Created page with "Tipos Non-POD ("plain old data") devem ser passados por const de referência sempre que possível. Isso inclui qualquer coisa além dos tipos básicos, como <tt>char</tt> e <t..." current
- 17:3017:30, 22 April 2020 diff hist +2 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "=== Passando tipos non-POD ==="
- 17:3017:30, 22 April 2020 diff hist +31 N Translations:Development/Tutorials/Common Programming Mistakes/86/pt-br Created page with "=== Passando tipos non-POD ===" current
- 17:2917:29, 22 April 2020 diff hist +2 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "Nesta seção, abordaremos algumas das nossas queixas mais comuns que afetam as estruturas de dados comumente vistas nos aplicativos Qt/KDE."
- 17:2917:29, 22 April 2020 diff hist +140 N Translations:Development/Tutorials/Common Programming Mistakes/85/pt-br Created page with "Nesta seção, abordaremos algumas das nossas queixas mais comuns que afetam as estruturas de dados comumente vistas nos aplicativos Qt/KDE." current
- 17:2717:27, 22 April 2020 diff hist +58 Development/Tutorials/Common Programming Mistakes/pt-br No edit summary
- 17:2717:27, 22 April 2020 diff hist +58 Translations:Development/Tutorials/Common Programming Mistakes/82/pt-br No edit summary current
- 17:2117:21, 22 April 2020 diff hist +16 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "Quando (e somente quando) a inicialização não puder ser feita com rapidez suficiente, considere usar um {{class|KSplashScreen}}."
- 17:2117:21, 22 April 2020 diff hist +131 N Translations:Development/Tutorials/Common Programming Mistakes/83/pt-br Created page with "Quando (e somente quando) a inicialização não puder ser feita com rapidez suficiente, considere usar um {{class|KSplashScreen}}." current
- 17:2017:20, 22 April 2020 diff hist +130 N Translations:Development/Tutorials/Common Programming Mistakes/80/pt-br Created page with "<syntaxhighlight lang="cpp-qt"> MainWindow::MainWindow() { initGUI(); QTimer::singleShot( 0, this, SLOT(initObject()) ); }" current
- 17:1917:19, 22 April 2020 diff hist +23 Development/Tutorials/Common Programming Mistakes/pt-br 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..."
- 17:1917:19, 22 April 2020 diff hist +231 N Translations:Development/Tutorials/Common Programming Mistakes/79/pt-br 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..." current
- 17:1817:18, 22 April 2020 diff hist +12 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "Observe que a <tt>janela</tt> é criada antes da chamada <tt>a.exec()</tt> que inicia o loop de eventos. Isso implica que queremos evitar fazer algo não trivial no construtor..."
- 17:1817:18, 22 April 2020 diff hist +254 N Translations:Development/Tutorials/Common Programming Mistakes/78/pt-br Created page with "Observe que a <tt>janela</tt> é criada antes da chamada <tt>a.exec()</tt> que inicia o loop de eventos. Isso implica que queremos evitar fazer algo não trivial no construtor..." current
- 17:1517:15, 22 April 2020 diff hist −4 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "Primeiro, vejamos a maneira padrão de inicializar um aplicativo KDE:"
- 17:1517:15, 22 April 2020 diff hist +69 N Translations:Development/Tutorials/Common Programming Mistakes/77/pt-br Created page with "Primeiro, vejamos a maneira padrão de inicializar um aplicativo KDE:" current
- 17:1417:14, 22 April 2020 diff hist +11 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "Embora o design dos aplicativos C ++ modernos possa ser muito complexo, as janelas do aplicativo podem ser carregadas e exibidas ao usuário muito rapidamente através da téc..."
- 17:1417:14, 22 April 2020 diff hist +338 N Translations:Development/Tutorials/Common Programming Mistakes/76/pt-br Created page with "Embora o design dos aplicativos C ++ modernos possa ser muito complexo, as janelas do aplicativo podem ser carregadas e exibidas ao usuário muito rapidamente através da téc..." current
- 16:1616:16, 22 April 2020 diff hist 0 Development/Tutorials/Common Programming Mistakes/pt-br No edit summary
- 16:1616:16, 22 April 2020 diff hist 0 Translations:Development/Tutorials/Common Programming Mistakes/30/pt-br No edit summary current
14 February 2020
- 21:3521:35, 14 February 2020 diff hist +3 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "== Estrutura de Dados =="
- 21:3521:35, 14 February 2020 diff hist +24 N Translations:Development/Tutorials/Common Programming Mistakes/84/pt-br Created page with "== Estrutura de Dados ==" current
- 21:3421:34, 14 February 2020 diff hist +647 N Translations:Development/Tutorials/Common Programming Mistakes/82/pt-br Created page with "void MainWindow::initObject() { /* This slot will be called as soon as the event loop starts. * Put everything else that needs to be done, including * restoring..."
- 21:3421:34, 14 February 2020 diff hist +339 N Translations:Development/Tutorials/Common Programming Mistakes/81/pt-br Created page with "void MainWindow::initGUI() { /* Construct your widgets here. Note that the widgets you * construct here shouldn't require complex initialization * either, or yo..." current
- 19:5619:56, 14 February 2020 diff hist +2 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "=== Inicialização demorada ==="
- 19:5619:56, 14 February 2020 diff hist +32 N Translations:Development/Tutorials/Common Programming Mistakes/75/pt-br Created page with "=== Inicialização demorada ===" current
- 19:5519:55, 14 February 2020 diff hist −2 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "Nesta seção, abordaremos alguns problemas comuns relacionados ao design de aplicativos Qt/KDE."
- 19:5519:55, 14 February 2020 diff hist +96 N Translations:Development/Tutorials/Common Programming Mistakes/74/pt-br Created page with "Nesta seção, abordaremos alguns problemas comuns relacionados ao design de aplicativos Qt/KDE." current
- 19:5419:54, 14 February 2020 diff hist +4 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "== Design do Programa =="
- 19:5419:54, 14 February 2020 diff hist +24 N Translations:Development/Tutorials/Common Programming Mistakes/73/pt-br Created page with "== Design do Programa ==" current
- 19:5319:53, 14 February 2020 diff hist +17 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "Algumas classes na biblioteca do NMM não tinham vtables bem ancoradas; portanto, dynamic_casting falhou dentro do plug-in Phonon NMM para objetos criados nos próprios plug-i..."
- 19:5319:53, 14 February 2020 diff hist +185 N Translations:Development/Tutorials/Common Programming Mistakes/72/pt-br Created page with "Algumas classes na biblioteca do NMM não tinham vtables bem ancoradas; portanto, dynamic_casting falhou dentro do plug-in Phonon NMM para objetos criados nos próprios plug-i..." current
- 19:5319:53, 14 February 2020 diff hist +12 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "* Os próprios plugins do NMM linkam ao NMM"
- 19:5319:53, 14 February 2020 diff hist +43 N Translations:Development/Tutorials/Common Programming Mistakes/71/pt-br Created page with "* Os próprios plugins do NMM linkam ao NMM" current
- 19:5219:52, 14 February 2020 diff hist +9 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "* NMM carrega seus próprios plugins"
- 19:5219:52, 14 February 2020 diff hist +36 N Translations:Development/Tutorials/Common Programming Mistakes/70/pt-br Created page with "* NMM carrega seus próprios plugins" current
- 19:5219:52, 14 February 2020 diff hist +4 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "* Plugin NMM linka para o NMM"
- 19:5219:52, 14 February 2020 diff hist +29 N Translations:Development/Tutorials/Common Programming Mistakes/69/pt-br Created page with "* Plugin NMM linka para o NMM" current
- 19:5119:51, 14 February 2020 diff hist 0 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "* libphonon carrega o plugin NMM"
- 19:5119:51, 14 February 2020 diff hist +32 N Translations:Development/Tutorials/Common Programming Mistakes/68/pt-br Created page with "* libphonon carrega o plugin NMM" current
- 19:5119:51, 14 February 2020 diff hist +28 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "Por exemplo, vimos alguns problemas difíceis de rastrear no código C++ que não é do KDE com o qual estamos linkando (acho que o NMM) por causa disso. Aconteceu que:"
- 19:5119:51, 14 February 2020 diff hist +168 N Translations:Development/Tutorials/Common Programming Mistakes/67/pt-br Created page with "Por exemplo, vimos alguns problemas difíceis de rastrear no código C++ que não é do KDE com o qual estamos linkando (acho que o NMM) por causa disso. Aconteceu que:" current
- 19:4919:49, 14 February 2020 diff hist +1 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "* T e T2 são exportados"
- 19:4919:49, 14 February 2020 diff hist +24 N Translations:Development/Tutorials/Common Programming Mistakes/66/pt-br Created page with "* T e T2 são exportados" current
- 19:4919:49, 14 February 2020 diff hist +42 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "* T está "bem ancorado" nessa biblioteca. Por "bem ancorado", quero dizer que a vtable não é um símbolo COMUM sujeito a mesclagem em tempo de execução pelo linkador din..."
- 19:4919:49, 14 February 2020 diff hist +323 N Translations:Development/Tutorials/Common Programming Mistakes/65/pt-br Created page with "* T está "bem ancorado" nessa biblioteca. Por "bem ancorado", quero dizer que a vtable não é um símbolo COMUM sujeito a mesclagem em tempo de execução pelo linkador din..." current
- 19:4719:47, 14 February 2020 diff hist −4 Development/Tutorials/Common Programming Mistakes/pt-br No edit summary
- 19:4719:47, 14 February 2020 diff hist −4 Translations:Development/Tutorials/Common Programming Mistakes/64/pt-br No edit summary current
- 19:4719:47, 14 February 2020 diff hist +42 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "* T é definido em uma biblioteca à qual você linka (você receberá um erro no linkador, se esse não for o caso, pois ele não encontrará as informações da vtable ou do..."
- 19:4719:47, 14 February 2020 diff hist +181 N Translations:Development/Tutorials/Common Programming Mistakes/64/pt-br Created page with "* T é definido em uma biblioteca à qual você linka (você receberá um erro no linkador, se esse não for o caso, pois ele não encontrará as informações da vtable ou do..."
6 February 2020
- 21:1421:14, 6 February 2020 diff hist −3 Development/Tutorials/Common Programming Mistakes/pt-br No edit summary
- 21:1421:14, 6 February 2020 diff hist −3 Translations:Development/Tutorials/Common Programming Mistakes/63/pt-br No edit summary current
- 20:3920:39, 6 February 2020 diff hist +20 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "Você só pode converter com dynamic_cast de um tipo T de um tipo fornecido T2 que:"
- 20:3920:39, 6 February 2020 diff hist +84 N Translations:Development/Tutorials/Common Programming Mistakes/63/pt-br Created page with "Você só pode converter com dynamic_cast de um tipo T de um tipo fornecido T2 que:"
5 February 2020
- 21:0921:09, 5 February 2020 diff hist +24 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "Uma ferramenta para detectar vazamentos de memória como este é a Valgrind."
- 21:0921:09, 5 February 2020 diff hist +107 N Translations:Development/Tutorials/Common Programming Mistakes/61/pt-br Created page with "Uma ferramenta para detectar vazamentos de memória como este é a Valgrind." current
- 21:0821:08, 5 February 2020 diff hist +36 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "O código Qt envolvendo QObject geralmente usa relações parent/child para liberar memória alocada; ao construir um QObject (por exemplo, um widget), ele pode receber um par..."
- 21:0821:08, 5 February 2020 diff hist +326 N Translations:Development/Tutorials/Common Programming Mistakes/60/pt-br Created page with "O código Qt envolvendo QObject geralmente usa relações parent/child para liberar memória alocada; ao construir um QObject (por exemplo, um widget), ele pode receber um par..." current
- 21:0621:06, 5 February 2020 diff hist +20 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "Há também o std::shared_ptr e QSharedPointer. Essa é a maneira geralmente preferida de fazê-lo no C++ moderno; o gerenciamento explícito da memória deve ser evitado quan..."
- 21:0621:06, 5 February 2020 diff hist +188 N Translations:Development/Tutorials/Common Programming Mistakes/59/pt-br Created page with "Há também o std::shared_ptr e QSharedPointer. Essa é a maneira geralmente preferida de fazê-lo no C++ moderno; o gerenciamento explícito da memória deve ser evitado quan..." current
- 21:0521:05, 5 February 2020 diff hist −7 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "* interrompa o polluter em um [http://en.cppreference.com/w/cpp/memory/unique_ptr] (que excluirá automaticamente o polluter ao retornar do método)"
- 21:0521:05, 5 February 2020 diff hist +149 N Translations:Development/Tutorials/Common Programming Mistakes/58/pt-br Created page with "* interrompa o polluter em um [http://en.cppreference.com/w/cpp/memory/unique_ptr] (que excluirá automaticamente o polluter ao retornar do método)" current
- 21:0321:03, 5 February 2020 diff hist +2 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "* exclua o polluter usando a função complementar para new:"
- 21:0321:03, 5 February 2020 diff hist +60 N Translations:Development/Tutorials/Common Programming Mistakes/57/pt-br Created page with "* exclua o polluter usando a função complementar para new:" current
- 21:0221:02, 5 February 2020 diff hist −1 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "se tornaria"
- 21:0221:02, 5 February 2020 diff hist +11 N Translations:Development/Tutorials/Common Programming Mistakes/56/pt-br Created page with "se tornaria" current
- 21:0221:02, 5 February 2020 diff hist −6 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "* mantenha a variável na pilha em vez do heap:"
- 21:0221:02, 5 February 2020 diff hist +47 N Translations:Development/Tutorials/Common Programming Mistakes/55/pt-br Created page with "* mantenha a variável na pilha em vez do heap:" current
- 21:0121:01, 5 February 2020 diff hist +2 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "Para resolver isso, existem as seguintes abordagens:"
- 21:0121:01, 5 February 2020 diff hist +52 N Translations:Development/Tutorials/Common Programming Mistakes/54/pt-br Created page with "Para resolver isso, existem as seguintes abordagens:" current
- 21:0021:00, 5 February 2020 diff hist +11 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "Veja bem, ''pollute()'' instancia um novo objeto ''polluter'' da classe ''t''. Em seguida, a variável ''polluter'' é perdida porque é local, mas o conteúdo (o objeto) perm..."
- 21:0021:00, 5 February 2020 diff hist +276 N Translations:Development/Tutorials/Common Programming Mistakes/53/pt-br Created page with "Veja bem, ''pollute()'' instancia um novo objeto ''polluter'' da classe ''t''. Em seguida, a variável ''polluter'' é perdida porque é local, mas o conteúdo (o objeto) perm..." current
- 20:5720:57, 5 February 2020 diff hist +1 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "Um erro de programação muito "popular" é fazer um <tt>new</tt> sem um <tt>delete</tt> como neste programa:"
- 20:5720:57, 5 February 2020 diff hist +109 N Translations:Development/Tutorials/Common Programming Mistakes/52/pt-br Created page with "Um erro de programação muito "popular" é fazer um <tt>new</tt> sem um <tt>delete</tt> como neste programa:" current
- 20:5720:57, 5 February 2020 diff hist +10 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "=== vazamentos de memória ==="
- 20:5720:57, 5 February 2020 diff hist +30 N Translations:Development/Tutorials/Common Programming Mistakes/51/pt-br Created page with "=== vazamentos de memória ===" current
- 20:5620:56, 5 February 2020 diff hist +5 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "Esse problema também é discutido na [https://doc.qt.io/qt-5/qmap-iterator.html#details Qt documentation for QMap::iterator], mas se aplica a '''todos''' iteradores Qt"
- 20:5620:56, 5 February 2020 diff hist +168 N Translations:Development/Tutorials/Common Programming Mistakes/50/pt-br Created page with "Esse problema também é discutido na [https://doc.qt.io/qt-5/qmap-iterator.html#details Qt documentation for QMap::iterator], mas se aplica a '''todos''' iteradores Qt" current
- 20:5420:54, 5 February 2020 diff hist +17 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "Esse código vai potencialmente travar porque é um iterador pendente após a chamada para erase(). Você precisa reescrever o código desta maneira:"
- 20:5420:54, 5 February 2020 diff hist +149 N Translations:Development/Tutorials/Common Programming Mistakes/49/pt-br Created page with "Esse código vai potencialmente travar porque é um iterador pendente após a chamada para erase(). Você precisa reescrever o código desta maneira:" current
- 20:5220:52, 5 February 2020 diff hist +16 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "Quando você deseja apagar alguns elementos da lista, você poderia talvez usar um código semelhante a este:"
- 20:5220:52, 5 February 2020 diff hist +109 N Translations:Development/Tutorials/Common Programming Mistakes/48/pt-br Created page with "Quando você deseja apagar alguns elementos da lista, você poderia talvez usar um código semelhante a este:" current
- 20:5120:51, 5 February 2020 diff hist +8 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "==== Tenha cuidado ao apagar elementos dentro de um loop ===="
- 20:5120:51, 5 February 2020 diff hist +61 N Translations:Development/Tutorials/Common Programming Mistakes/47/pt-br Created page with "==== Tenha cuidado ao apagar elementos dentro de um loop ====" current
- 20:5020:50, 5 February 2020 diff hist −1 Development/Tutorials/Common Programming Mistakes/pt-br No edit summary
- 20:5020:50, 5 February 2020 diff hist −1 Translations:Development/Tutorials/Common Programming Mistakes/46/pt-br No edit summary current
- 20:5020:50, 5 February 2020 diff hist +37 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "Ao usar iteradores, sempre use operadores de pré-incremento e pré-decremento (ou seja, <tt>++itr</tt>), a menos que você tenha um motivo específico para não fazê-lo. O u..."
- 20:5020:50, 5 February 2020 diff hist +296 N Translations:Development/Tutorials/Common Programming Mistakes/46/pt-br Created page with "Ao usar iteradores, sempre use operadores de pré-incremento e pré-decremento (ou seja, <tt>++itr</tt>), a menos que você tenha um motivo específico para não fazê-lo. O u..."
- 20:4920:49, 5 February 2020 diff hist +6 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "Isso evita a criação desnecessária do objeto de retorno temporário <tt>end()</tt> (ou <tt>constEnd()</tt>) em cada iteração de loop, acelerando-a bastante."
- 20:4820:48, 5 February 2020 diff hist +161 N Translations:Development/Tutorials/Common Programming Mistakes/45/pt-br Created page with "Isso evita a criação desnecessária do objeto de retorno temporário <tt>end()</tt> (ou <tt>constEnd()</tt>) em cada iteração de loop, acelerando-a bastante." current
- 20:4620:46, 5 February 2020 diff hist +20 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "Coloque em cache o retorno da chamada do método <tt>end()</tt> (ou <tt>constEnd()</tt>) antes de fazer a iteração em contêineres grandes. Por exemplo:"