Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Desenvolvendo Aplicações Android com Qt

1,821 views

Published on

Desenvolvendo Aplicações Android com Qt - workshop realizado no Instituto Federal de Educação, Ciência e Tecnologia (IFBA), dia 27/02/2016.

Published in: Software
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download Full EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download Full doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THIS can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THIS is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THIS Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THIS the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THIS Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download Full EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download Full doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THIS can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THIS is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THIS Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THIS the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THIS Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download Full EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download Full doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THIS can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THIS is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THIS Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THIS the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THIS Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://soo.gd/qURD } ......................................................................................................................... Download Full EPUB Ebook here { https://soo.gd/qURD } ......................................................................................................................... Download Full doc Ebook here { https://soo.gd/qURD } ......................................................................................................................... Download PDF EBOOK here { https://soo.gd/qURD } ......................................................................................................................... Download EPUB Ebook here { https://soo.gd/qURD } ......................................................................................................................... Download doc Ebook here { https://soo.gd/qURD } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THIS can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THIS is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THIS Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THIS the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THIS Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download Full EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download Full doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THIS can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THIS is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THIS Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THIS the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THIS Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

Desenvolvendo Aplicações Android com Qt

  1. 1. Desenvolvendo Aplicações Android com Qt Sandro Andrade sandroandrade@kde.org | sandroandrade.org | @andradesandro
  2. 2. Objetivos ● Apresentar o Qt e os benefícios da sua utilização ● Apresentar uma visão geral das funcionalidades do Qt para desenvolvimento multiplataforma para dispositivos móveis e embarcados ● Apresentar os avanços mais recentes do Qt nesta área ● Proporcionar uma vivência prática ao desenvolver uma aplicação Android com Qt
  3. 3. whoami ● Professor no Instituto Federal de Educação, Ciência e Tecnologia da Bahia – IFBA ● Desenvolvedor, projetista e arquiteto de software ● Pesquisador: engenharia de software + sistemas distribuídos ● Colaborador nos projetos de Software Livre Qt e KDE – QtModeling – KDevelop, Plasma e Minuet ● Foi membro do KDE Marketing Working Group ● Membro do Board de Diretores do KDE e.V.
  4. 4. O Qt ● Toolkit multiplataforma para desenvolvimento de aplicações (www.qt.io) ● Oferece um amplo conjunto de funcionalidades para multimídia, programação em rede, banco de dados, testes, Bluetooth, OpenGL, programação multi-threaded, scripting, XML, web channel, etc ● Oferece três tecnologias principais para desenvolvimento de GUI: – Qt Widgets: C++ (oficial), Python, C#, Go, Haskell, Ruby – Qt Quick: QML + JS – Qt Webkit: HTML + CSS + JS
  5. 5. O Qt ● Comparação entre as três tecnologias para GUI: Qt Widgets Qt Quick Qt Webkit Linguagens utilizadas C++ QML/JS HTML/CSS/JS Look n feel nativo’ ’ ✔ ✔ Look n feel customizado’ ’ ✔ ( )✔ GUI fluidas e animadas ✔ Suporte a touch screen ✔ Widgets padrao da industria ✔
  6. 6. O Qt ● Comparação entre as três tecnologias para GUI: Qt Widgets Qt Quick Qt Webkit Model/View programming ✔ (✔) Rapid UI development ✔ ( )✔ Aceleracao por hardware ✔ Efeitos graficos ✔ Processamento de rich text ✔ ✔ Integracao de conteudo web existente ✔
  7. 7. O Qt ● Por que usar? – É uma tecnologia madura (20 anos de existência) – É um toolkit extremamente produtivo (mesmo com C++ e melhor ainda com QML/JS) – É um toolkit bastante completo – É efetivo no suporte ao desenvolvimento multiplataforma: ● Linux/X11 ● Windows ● OS X ● Android ● IOS ● WinCE
  8. 8. O Qt ● Por que usar? – Excelente documentação e comunidade bastante ativa – Excelente desempenho (aceleração via hardware no QML) – Diversas bibliotecas de terceiros baseadas no Qt (inqlude.org) – Open governance com licença dual: ● LGPL ● Comercial
  9. 9. O Qt ● Quem usa? – Guitar Pro – Autodesk Maya – Skype – Virtualbox – VLC – KDE – Setores automotivo, IoT, médico e industrial
  10. 10. O Qt ● Quem usa? – Guitar Pro – Autodesk Maya – Skype – Virtualbox – VLC – KDE – Setores automotivo, IoT, médico e industrial
  11. 11. O Qt ● Quem usa? – Guitar Pro – Autodesk Maya – Skype – Virtualbox – VLC – KDE – Setores automotivo, IoT, médico e industrial
  12. 12. O Qt ● Quem usa? – Guitar Pro – Autodesk Maya – Skype – Virtualbox – VLC – KDE – Setores automotivo, IoT, médico e industrial
  13. 13. O Qt e o Mundo Mobile ● É uma longa história, na verdade … – 2000: Qt/Embedded + Qtopia – 2006: Qtopia em milhares de dispositivos (Sharp / Motorola)
  14. 14. O Qt e o Mundo Mobile ● É uma longa história, na verdade … – 2009: lançamento do QML – 2010-2011: Qt no Symbian e MeeGo
  15. 15. O Qt e o Mundo Mobile ● É uma longa história, na verdade … – 2011: projeto Necessitas (KDE) e o primeiro port do Qt para Android – 2013: primeiro technical-preview do suporte ao Android e iOS oficial do Qt ● Inclusão das plataformas BlackBerry, Sailfish/Jolla and Ubuntu Mobile – 2014: cross-platform Qt Purchasing API e Bluetooth LE – 2015: QML Qt Location e Qt Quick Controls for Embedded
  16. 16. O Qt e o Android ● Solução: QPA + JNI ● O Qt Creator gera o arquivo .apk pra você ● Uma aplicação Qt para Android consiste de duas partes: – A aplicação em si, criada pelo desenvolvedor – Um laucher da aplicação Android, gerada automaticamente pelo Qt Creator
  17. 17. O Qt e o Android ● O Qt Creator oferece três métodos de implantação: – Todas as dependências Qt empacotadas no .apk, ou – Uso do mecanismo de implantação Ministro para gerenciar dependências Qt – Implantar as bibliotecas do Qt em um diretório temporário (somente para propósitos de desenvolvimento) ● Start-up da aplicação: – No começo é apenas uma aplicação Java – Ocorre a carga das libs do Qt e o plugin do QPA – A função main da aplicação é invocada em uma nova thread
  18. 18. O Qt e o Android ● Configuração do ambiente (passo-a-passo): – Criar um novo usuário (ex: android-devel) – Instalar os pacotes básicos de desenvolvimento: ● pacman -S --needed base-devel qt5 jdk jre git gdb wget – Baixar (www.qt.io) e instalar, no home do usuário android- devel, o Qt para Android – Após a instalação, executar o Qt Creator: ● Caminho “Tools/QtCreator/bin/qtcreator” na instalação do Qt
  19. 19. O Qt e o Android ● Configuração do ambiente (passo-a-passo): – No Qt Creator, ir em Tools Options Android:→ → ● Clique nos botões de download do Android SDK e Android NDK ● Realize o download ● Informe o caminho das instalações nos respectivos campos – Encontre o número de API correspondente à versão do Android no seu dispositivo – Execute o Android SDK Manager (caminho “tools/android” na instalação do Android SDK) e selecione somente o grupo referente ao número de API do seu dispositivo – Instale os pacotes
  20. 20. O Qt e o Android ● Configuração do ambiente (passo-a-passo): – Inicie o adb server (como root, sem usar o sudo): caminho “platform-tools/adb start-server” na instalação do Android SDK – Verifique se o seu dispositivo está com o modo developer ativado. Ative caso não esteja – Ligue seu dispositivo na porta USB do computador e confirme o pedido de permissão para depuração USB – Pronto: ao executar um projeto Qt com o kit do Android selecionado, o Qt Creator irá perguntar em qual dispositivo você deseja executar a aplicação (incluindo emuladores)
  21. 21. O Qt e o Android ● Módulos Qt de uso específico em dispositivos móveis (a maioria é multiplataforma): – Qt Bluetooth (QML e C++): Android, iOS, Linux (BlueZ 4.x/5.x) e OS X – Qt Graphical Effects (QML) – Qt Positioning (QML e C++): Android, iOS, Linux (com GeoClue) e WinRT ● Fontes de posicionamento (ex: satélite, wifi, arquivos) são plugins – Qt Sensors (QML e C++): Android, iOS, SailFish e WinRT ● Acelerômetro, orientação, luz ambiente, dentre outros – Qt Quick Extras – Qt Android Extras: Qt Notifier – Qt Mac Extras
  22. 22. Qt e Material Design ● Conjunto de diretrizes de design (linguagem visual) de UX do Google ● Três esforços diferentes relacionados ao Qt: – qml-material: https://github.com/papyros/qml-material – Technical preview no Qt 5.6, esperado para o Qt 5.7 – Plasma Components
  23. 23. Qt e Material Design ● qml-material:
  24. 24. Qt e Material Design ● qml-material: IFBA’s SICAD Mobile
  25. 25. Qt e Material Design ● Hands-on: Niftly - RSS Reader
  26. 26. Conclusões ● O Qt para Android já é bem estável para uso em produção ● A possibilidade do uso de um mesmo codebase para escrever aplicações para diversas plataformas móveis faz do Qt uma das soluções mais interessantes nesta área atualmente ● O QML não pára de evoluir ● qml-material x Qt 5.6 x plasma components (o que usar ?)
  27. 27. Junte-se a nós! ● http://br.kde.org ● Lista de discussão: – https://mail.kde.org/mailman/listinfo/kde-br ● Canal de IRC: freenode #kde-brasil ● O KDE e.V. apoia a sua contribuição ● Participe do Google Summer of Code e do KDE Season of Code
  28. 28. Desenvolvendo Aplicações Android com Qt OBRIGADO ! sandroandrade@kde.org | sandroandrade.org | @andradesandro

×