Qt5 Cadaques Release 2017-12

Total Page:16

File Type:pdf, Size:1020Kb

Qt5 Cadaques Release 2017-12 Qt5 Cadaques Release 2017-12 JRyannel,JThelin Januar 26, 2018 at 22:39 CET Inhaltsverzeichnis 1 Meet Qt 5 3 1.1 Preface................................................3 1.2 Qt 5 Introduction...........................................4 1.3 Qt Building Blocks..........................................8 1.4 Qt Project............................................... 10 2 Get Started 11 2.1 Installing Qt 5 SDK......................................... 11 2.2 Hello World............................................. 11 2.3 Application Types.......................................... 13 2.4 Summary............................................... 21 3 Qt Creator IDE 23 3.1 The User Interface.......................................... 23 3.2 Registering your Qt Kit....................................... 24 3.3 Managing Projects.......................................... 24 3.4 Using the Editor........................................... 25 3.5 Locator................................................ 25 3.6 Debugging.............................................. 26 3.7 Shortcuts............................................... 26 4 Quick Starter 27 4.1 QML Syntax............................................. 27 4.2 Basic Elements............................................ 32 4.3 Components............................................. 36 4.4 Simple Transformations....................................... 39 4.5 Positioning Elements......................................... 42 4.6 Layout Items............................................. 46 4.7 Input Elements............................................ 49 4.8 Advanced Techniques........................................ 53 5 Fluid Elements 55 5.1 Animations.............................................. 55 5.2 States and Transitions........................................ 70 5.3 Advanced Techniques........................................ 74 6 Model-View-Delegate 75 6.1 Concept................................................ 75 6.2 Basic Models............................................. 76 6.3 Dynamic Views............................................ 80 6.4 Delegate............................................... 89 6.5 Advanced Techniques........................................ 96 6.6 Summary............................................... 105 i 7 Canvas Element 107 7.1 Convenient API........................................... 109 7.2 Gradients............................................... 110 7.3 Shadows............................................... 111 7.4 Images................................................ 112 7.5 Transformation............................................ 113 7.6 Composition Modes......................................... 114 7.7 Pixel Buffers............................................. 115 7.8 Canvas Paint............................................. 116 7.9 Porting from HTML5 Canvas.................................... 118 8 Particle Simulations 125 8.1 Concept................................................ 125 8.2 Simple Simulation.......................................... 125 8.3 Particle Parameters.......................................... 128 8.4 Directed Particles........................................... 129 8.5 Particle Painters........................................... 132 8.6 Affecting Particles.......................................... 134 8.7 Particle Groups............................................ 138 8.8 Summary............................................... 145 9 Shader Effects 147 9.1 OpenGL Shaders........................................... 147 9.2 Shader Elements........................................... 148 9.3 Fragment Shaders.......................................... 150 9.4 Wave Effect.............................................. 154 9.5 Vertex Shader............................................. 156 9.6 Curtain Effect............................................ 164 9.7 Qt GraphicsEffect Library...................................... 167 10 Multimedia 171 10.1 Playing Media............................................ 171 10.2 Sound Effects............................................. 173 10.3 Video Streams............................................ 174 10.4 Capturing Images........................................... 175 10.5 Advanced Techniques........................................ 177 10.6 Summary............................................... 178 11 Networking 179 11.1 Serving UI via HTTP......................................... 179 11.2 Templating.............................................. 182 11.3 HTTP Requests............................................ 182 11.4 Local files.............................................. 185 11.5 REST API.............................................. 186 11.6 Authentication using OAuth..................................... 191 11.7 Engin IO............................................... 192 11.8 Web Sockets............................................. 192 11.9 Summary............................................... 197 12 Storage 199 12.1 Settings................................................ 199 12.2 Local Storage - SQL......................................... 200 12.3 Other Storage APIs.......................................... 204 13 Dynamic QML 205 13.1 Loading Components Dynamically................................. 205 13.2 Creating and Destroying Objects................................... 209 13.3 Tracking Dynamic Objects...................................... 212 13.4 Summary............................................... 214 ii 14 JavaScript 215 14.1 Browser/HTML vs QtQuick/QML.................................. 216 14.2 The Language............................................ 216 14.3 JS Objects.............................................. 218 14.4 Creating a JS Console........................................ 219 15 Qt and C++ 223 15.1 A Boilerplate Application...................................... 224 15.2 The QObject............................................. 227 15.3 Build Systems............................................ 229 15.4 Common Qt Classes......................................... 232 15.5 Models in C++............................................ 237 16 Extending QML with C++ 247 16.1 Understanding the QML Run-time.................................. 247 16.2 Plugin Content............................................ 249 16.3 Creating the plugin.......................................... 250 16.4 FileIO Implementation........................................ 251 16.5 Using FileIO............................................. 252 16.6 Summary............................................... 259 17 Assets 261 17.1 Offline Books............................................. 261 17.2 Source Code Examples........................................ 261 iii iv Qt5 Cadaques, Release 2017-12 Last Build: Januar 26, 2018 at 22:39 CET Welcome to the online book of Qt5 Cadaques! Why Qt5? Because Qt5 is awesome! Why cadaques? Because one of the authors had a great holiday in this rocky coast line in the north-east of spain. The entire collection of chapters covering Qt5 programming, written by Juergen Bocklage-Ryannel and Johan Thelin, is available here. All book content is licensed under the Creative Commons Attribution Non Commercial Share Alike 4.0 license and examples are licensed under the BSD license. We are heavily working on this book and that means several things: 1. It’s not done. We will be releasing new chapters from time to time and updating existing chapters on the go. 2. We love your support. If you find any errors or have suggestions, please use our feedback system (the links). It will create a new ticket-entry in our ticket system and help us to keep track. 3. Be patient. We are working in our spare time on the book and we depend on the support of our companies and family. Enjoy! Content Inhaltsverzeichnis 1 Qt5 Cadaques, Release 2017-12 2 Inhaltsverzeichnis KAPITEL 1 Meet Qt 5 Autor des Abschnitts: jryannel Bemerkung: The source code of this chapter can be found in the assets folder. This book shall provide you a walk through the different aspect of application development using Qt version 5.x. It focuses on the new Qt Quick technology but also provides necessary information of writing C++ back-ends and extension for Qt Quick. This chapter provides a high level overview of Qt 5. It shows the different application models available for devel- opers and a Qt 5 showcase application to get a sneak preview of things to come. Additionally the chapter aims to provide a wide overview of the Qt 5 content and how to get in touch with the makers of Qt 5. Preface History Qt 4 has evolved since 2005 and provided a solid ground for thousands of applications and even full desktop and mobile systems. The usage patterns of computer users changed in the recent years. From stationary PCs towards portable notebook and nowadays mobile computers. The classical desktop is more and more replaced with mobile touch-based always connected screens. With it the desktop UX paradigms also changes. Where as in the past Windows UI has dominated the world we spend more time nowadays on other screens with another UI language. Qt 4 was designed to satisfy the desktop world to have a coherent set of UI widgets available on all major platforms. The challenge for Qt users has changed today and it lies more to provide a touch-based user interface for a customer driven user interface and to enable modern user interface on all major desktop and mobile systems. Qt 4.7 started to introduce the Qt Quick technology which allows users to
Recommended publications
  • Qt Framework
    About Qt Qt is a framework to develop cross-platform applications. Currently, the supported platforms are Windows, Linux, macOS, Android, iOS, Embedded Linux and some others. Genarally, it means that the programmer may develop the code on one platform but compile, link and run it on another platform. But it also means that Qt needs help: to develop software it must cooperate with development tools on specific platforms, for example in case of Windows with Visual Studio. Qt is well-known for its tools for developing graphical user interfaces (GUI) , but it also provides powerful tools for threads, networking and communication (Bluetooth, serial port, web), 3D graphics, multimedia, SQL databases, etc. Qt has its own Integrated Development Environment (IDE): QtCreator. History: 1991: version 1.0 as cross-platform GUI programming toolkit was developed and implemented by TrollTech (Norway). 2005: version 4.0 was a big step ahead but the compatibility with older versions was lost. 2008: TrollTech was sold to Nokia. 2012: Nokia Qt division was sold to Digia (Finland). 2014: Digia transferred the Qt business to Qt Company. The latest Long Term Support (LTS) version is 5.12. Official website: https://www.qt.io/ Installation The link is https://www.qt.io/download. Select the non-commercial and open source version. It may be possible that you must register yourself creating a new passworded account. Select the latest stable release and the C/C++ development system(s) you are going to use. Tip: the Qt installer proposes to store the stuff in folder C:\Qt. To avoid later complications, agree.
    [Show full text]
  • User Interface Programming Qt
    User Interface Programming Qt Jozef Mlích Department of Computer Graphics and Multimedia Faculty of Information Technology, Brno University of Technology Božetěchova 2, 612 66 Brno, Czech Republic http://www.fit.vutbr.cz/~imlich [email protected] http://www.fit.vutbr.cz/~imlich/ 10.10.2014Qt | 1 / 28 http://www.fit.vutbr.cz/~imlich/ Qt | 2 / 28 Agenda Motivation, Features, History ? (1991-NOW) Architecture of Qt – qmake, other tools – QObject (Meta object model, Events, Signals and slots, Properties, Memory management) – Layouts QML – MVC Advanced topics – C++ and QML – Shaders http://www.fit.vutbr.cz/~imlich/ Qt | 3 / 28 Who is using Qt? Skype for Linux Team Speak Google Earth Autodesk Maya Guitar Pro 6 VLC player GNU Octave OpenSCAD http://www.fit.vutbr.cz/~imlich/ Qt | 4 / 28 Features C++, Python, C#, (Java – Jambi) API for everything (not only GUI) cross-platform – Windows – Mac – Linux – Embedded systems (via “frame buffer”, Qt on Pi) – Mobile devices (Symbian, Maemo, MeeGo, Jolla, Blackberry, Android, iOS) Licence – GPL, LGPL, Commercial http://www.fit.vutbr.cz/~imlich/ Qt | 5 / 28 Architecture http://www.fit.vutbr.cz/~imlich/ Qt | 6 / 28 Compilation and tools qmake, moc, uic cmake, automoc Qt Creator, Qt Linguist, Qt Designer, qmlviewer/qmlscene http://www.fit.vutbr.cz/~imlich/ Qt | 7 / 28 Meta object compiler Qt extends C++ - macro language, introspection, etc. – foreach (int value, intList) { ... } // (i.e. Q_FOREACH) – QObject *o = new QPushButton; o->metaObject()->className(); //returns ”QPushButton”//
    [Show full text]
  • C++ GUI Programming with Qt 4, Second Edition by Jasmin Blanchette; Mark Summerfield
    C++ GUI Programming with Qt 4, Second Edition by Jasmin Blanchette; Mark Summerfield Publisher: Prentice Hall Pub Date: February 04, 2008 Print ISBN-10: 0-13-235416-0 Print ISBN-13: 978-0-13-235416-5 eText ISBN-10: 0-13-714397-4 eText ISBN-13: 978-0-13-714397-9 Pages: 752 Table of Contents | Index Overview The Only Official, Best-Practice Guide to Qt 4.3 Programming Using Trolltech's Qt you can build industrial-strength C++ applications that run natively on Windows, Linux/Unix, Mac OS X, and embedded Linux without source code changes. Now, two Trolltech insiders have written a start-to-finish guide to getting outstanding results with the latest version of Qt: Qt 4.3. Packed with realistic examples and in-depth advice, this is the book Trolltech uses to teach Qt to its own new hires. Extensively revised and expanded, it reveals today's best Qt programming patterns for everything from implementing model/view architecture to using Qt 4.3's improved graphics support. You'll find proven solutions for virtually every GUI development task, as well as sophisticated techniques for providing database access, integrating XML, using subclassing, composition, and more. Whether you're new to Qt or upgrading from an older version, this book can help you accomplish everything that Qt 4.3 makes possible. • Completely updated throughout, with significant new coverage of databases, XML, and Qtopia embedded programming • Covers all Qt 4.2/4.3 changes, including Windows Vista support, native CSS support for widget styling, and SVG file generation • Contains
    [Show full text]
  • Qt-Käyttöliittymäkirjasto
    Qt-käyttöliittymäkirjasto Matti Lehtinen [email protected] 26.11.2007 Tiivistelmä Tässä raportissa tarkastellaan Qt-käyttöliittymäkirjastoa ja sen käyt- töä C++-kielellä. Raportissa tarkastellaan ensiksi Qt:n ominaisuuksia, mukana tulevia kirjastoja ja työkaluja, sekä kääntämistä. Qt:n käyt- töä tarkastellaan Qt:n tapahtumienkäsittelymekanismin kautta pienen esimerkkikoodin avulla. 1 Johdanto Graasten sovellusten tekeminen useammille käyttöjärjestelmille on usein vaikeaa, sillä kielestä riippuen pahimmassa tapauksessa sovelluksen lähde- koodi joudutaan osittain kirjoittamaan uudestaan vastaamaan kohdekäyttö- järjestelmien rajapintoja. Toinen helpompi ratkaisu on käyttää kieliä, joita voidaan emuloida tai ajaa prosessikohtaisessa virtuaalikoneessa. Tällöin kui- tenkin joudutaan hieman luopumaan suoritustehosta ja lisäksi käyttöjärjes- telmään yleensä joudutaan asentamaan tarvittavat virtuaalikoneet, emulaat- torit tai muut sovellukseen ajoon tarvittavat työkalut. Trolltech yritys tuo oman ratkaisun cross-platform-sovellusten kehittä- misongelmaan Qt-käyttöliittymäkirjaston muodossa. Qt:lla voi helposti tehdä tehokkaita natiiveja sovelluksia useammille käyttöjärjestelmille kirjoittamal- la vain yhden yhteisen lähdekoodin [1]. Sovellusten kirjoittaminen on helppoa intuitiivisen ja monipuolisen rajapinnan avulla. Lisäksi Qt:n yksinkertainen signal-slot-mekanismi tekee tapahtumienkäsittelyn turvalliseksi ja helpoksi. 2 Qt yleisesti Qt on norjalaisen Trolltech-yrityksen kehittämä useammalla käyttöjärjes- telmällä toimiva graanen käyttöliittymäkirjasto.
    [Show full text]
  • KDE 2.0 Development
    00 8911 FM 10/16/00 2:09 PM Page i KDE 2.0 Development David Sweet, et al. 201 West 103rd St., Indianapolis, Indiana, 46290 USA 00 8911 FM 10/16/00 2:09 PM Page ii KDE 2.0 Development ASSOCIATE PUBLISHER Michael Stephens Copyright © 2001 by Sams Publishing This material may be distributed only subject to the terms and conditions set ACQUISITIONS EDITOR forth in the Open Publication License, v1.0 or later (the latest version is Shelley Johnston presently available at http://www.opencontent.org/openpub/). DEVELOPMENT EDITOR Distribution of the work or derivative of the work in any standard (paper) book Heather Goodell form is prohibited unless prior permission is obtained from the copyright holder. MANAGING EDITOR No patent liability is assumed with respect to the use of the information con- Matt Purcell tained herein. Although every precaution has been taken in the preparation of PROJECT EDITOR this book, the publisher and author assume no responsibility for errors or omis- Christina Smith sions. Neither is any liability assumed for damages resulting from the use of the information contained herein. COPY EDITOR International Standard Book Number: 0-672-31891-1 Barbara Hacha Kim Cofer Library of Congress Catalog Card Number: 99-067972 Printed in the United States of America INDEXER Erika Millen First Printing: October 2000 PROOFREADER 03 02 01 00 4 3 2 1 Candice Hightower Trademarks TECHNICAL EDITOR Kurt Granroth All terms mentioned in this book that are known to be trademarks or service Matthias Ettrich marks have been appropriately capitalized. Sams Publishing cannot attest to Kurt Wall the accuracy of this information.
    [Show full text]
  • ES3 Lecture 11 Qt + Maemo Development Maemo
    ES3 Lecture 11 Qt + Maemo development Maemo • Nokia's Linux based platform ▫ Almost entirely open source ▫ Nokia N770, N800, N810, N900 only models ▫ Only N900 has 3G/phone capability • N900 has relatively fast ARM CPU, GPU acceleration ▫ resistive touch screen -- so no multitouch • Development is very flexible ▫ C, C++, Java, Python, Ruby, Lua, Lisp, whatever you want Maemo development • Can develop on the device itself ▫ e.g. using gcc (but not really practical for big projects -- too slow and memory intensive) ▫ or just copy over python scripts and running them... • Scratchbox provides a Linux -based cross -compilation toolkit ▫ Makes it easy to develop on a Linux system and target for Maemo ▫ Only available for Linux though, and a bit tricky to set up • Maemo emulator available as part of the API ▫ Runs in virtual machine • Development can be very straightforward ▫ e.g. ssh into device to execute and debug ▫ files can be directly shared, so you can edit files on the device transparently Maemo Development (II) • Maemo uses a derivative of Debian ▫ Many standard libraries and utilities are present ▫ Porting new libraries is often feasible as well • The Maemo UI is currently a custom UI built on GTK+ (Hildon) ▫ adds "finger-friendly" extensions ▫ supports a simple desktop environment control panel, application manager ▫ some common widgets for mobile systems implemented • But Nokia will be moving to Qt across all their platforms shortly The Qt framework • Qt is a full object-oriented framework with extensive GUI support ▫ Written in
    [Show full text]
  • Graphical Interfaces in Qt
    graphical interfaces in Qt Eric Lecolinet - Télécom ParisTech www.telecom-parist.fr/~elc 2020 Eric Lecolinet - Télécom ParisTech - Qt et graphique interactif Filière IGR and IGD Master http://www.telecom-paris.fr/~elc/igr/ http://www.telecom-paristech.fr/~elc/ Eric Lecolinet - Télécom ParisTech - Qt et graphique interactif http://www.telecom-paris.fr/~elc/igr 3 Filière IGR (2a + 3a) comporte des informations sur la 3e année et les séjours http://www.telecom-paristech.fr/~elc/igr/ à l'étranger ! Eric Lecolinet - Télécom ParisTech - Qt et graphique interactif 4 IGR201b: Interactive 2D/Mobile/Web development IGR201a: Interactive 3D application development - Basic digital imaging - OpenGL IGR201b - Qt GUI toolkit - Android - Web interface basics http://www.telecom-paristech.fr/~elc/igr201/ Eric Lecolinet - Télécom ParisTech - Qt et graphique interactif 5 Qt ("cute") A versatile environnement including - A powerful cross-platform graphical toolkit (including iOS and Android) - A large set of libraries - Used in various open-source or commercial products Dual-licensed - LGPL licence (free): open-source code, student/academic/hobby projects, etc. - Commercial licence: for companies Eric Lecolinet - Télécom ParisTech - Qt et graphique interactif 6 Qt WebEngine WidgetsThe Qt WebEngine Widgets module provides a web browser engine as well as C++ classes to render and interact with web content. Qt WebKit Widgets The Qt WebKit Widgets module provides a web browser engine as well as C++ classes to render and interact with web content. Qt3DCore Qt3D
    [Show full text]
  • CS2141 - Software Development Using C/C++ What Is Qt?
    QT CS2141 - Software Development using C/C++ What Is Qt? Pronounced “cute” C++ Toolkit for GUI Building Uses native APIs to draw controls Runs on Linux/X11, OS X, Windows, mobile platforms Designed to write once, compile anywhere Has bindings for many languages, including Java Where’s Qt Used? Google Earth Skype Mathematica (on OS X and Linux) KDE History of Qt Development began in 1991 Developed by TrollTech First two versions had two flavors: Qt/X11 - QPL or proprietary license Qt/Windows - only available under proprietary license KDE 1.0 Released in 1998 More History Major concern that KDE depended on non-free tech Harmony toolkit - compatible with Qt but free GNOME 2000 - Qt/X11 released under GPL2 2001 - Qt 3 with (proprietary only) OS X support 2003 - Qt 3.2 - OS X version available under GPL2 2005 - Qt 4 - All platforms available under GPL2 Qt Today Current version is Qt 4.6 Qt 4.5 available on lab machines Current owned/developed by Nokia Available with both proprietary and open licenses GPL v2 & v3 (with special exemption) LGPL Using Qt Two different methods of interface creation Raw code: Define everything in C++ Qt Designer: Build the interface using a GUI tool Methods produce equivalent programs Using a GUI tool may be easier for sizable programs Qt Essentials What controls are available? - Widgets How are they arranged? - Layouts How are they interacted with? - Signals & Slots Widgets Individual parts that are put together to create an interface All widgets inherit from QWidget No separation of containers and controls Can
    [Show full text]
  • A Brief Introduction to Qt Bruce Bolden March 25, 2009
    Introduction to Qt 1 A Brief Introduction to Qt Bruce Bolden March 25, 2009 Introduction to Qt 2 What is Qt1? A platform independent (cross-platform) graphics library for the development of applications with/without UIs (user interfaces). Features • Intuitive C++ class library • Portability across desktop and embedded operating systems • Look and Feel of the native OS • Integrated development tools with cross-platform IDE • High runtime performance and small footprint on embed- ded systems Note: Qt is pronounced cute by Europeans. 1Qt is pronounced cute by Europeans. Introduction to Qt 3 Some frequently Used Acronyms API Application Program Interface GUI Graphical User Interface IDE Integrated Development Environment KDE K Desktop Environment LGPL GNU Lesser General Public License RTTI Run Time Type Identification SDK Software Development Toolkit KDE details: http://www.kde.org/ Introduction to Qt 4 Why Qt? • Not Java • Platform independent (cross-platform) • Large C++-based library • The choice for KDE development • Easy transition to OpenGL Introduction to Qt 5 Qt History • Trolltech was founded in 1994 • Nokia acquired Trolltech ASA, in June 2008 • Active development! { 4.5 released March 3, 2009 { 4.2 released August 24, 2006 This is Qt 4.5: http://www.youtube.com/watch?v=8xRfNsY53GY Introduction to Qt 6 Qt History|Details Nokia acquired Trolltech ASA, in June 2008, to enable the ac- celeration of their cross-platform software strategy for mobile devices and desktop applications, and to develop its Internet services business. On September 29, 2008 Nokia renamed Troll- tech to Qt Software.2 Trolltech was founded in 1994. The core team of designers at Trolltech started developing Qt in 1992, and the first commercial version of Qt was released in 1995.
    [Show full text]
  • The Qt and KDE Frameworks: an Overview
    Outline Introduction Overview Develop with Qt Develop with KDE The Qt and KDE Frameworks: An Overview Kevin Ottens Kevin Ottens | The Qt and KDE Frameworks:An Overview 1/83 Outline Introduction Overview Develop with Qt Develop with KDE Outline 1 Introduction 2 Overview 3 Develop with Qt 4 Develop with KDE Kevin Ottens | The Qt and KDE Frameworks:An Overview 2/83 Outline Introduction Overview Develop with Qt Develop with KDE Outline 1 Introduction 2 Overview 3 Develop with Qt 4 Develop with KDE Kevin Ottens | The Qt and KDE Frameworks:An Overview 3/83 Outline Introduction Overview Develop with Qt Develop with KDE Prerequisites and Goals Knowledge is a brick wall built line after line C++ Use of object oriented concepts Templates (at least a bit, but nothing hardcore) *nix To know what is a shell Recall the overall structure of a typical Unix based desktop Goals Give an overview of what can be done with Qt and KDE Give clues on how to go further Eventually give you the will to contribute , Kevin Ottens | The Qt and KDE Frameworks:An Overview 4/83 Outline Introduction Overview Develop with Qt Develop with KDE History (1/4) Since our past experiences determine what we are Trolltech 1994: Trolltech creation in Oslo, Norway 1996: First Qt selling! (ESA) 1999: Qt2, offices in Australia 2000: Qt/Embedded, offices in the US 2000: Qt/X11 available under the GPL! 2001: Sharp uses Qtopia in its products 2001: Qt3! 2002: Teambuilder is released 2003: Qt/Mac available under the GPL! 2004: Qtopia Phone Edition is released 2005: Qt4!! offices in China Kevin Ottens | The Qt and KDE Frameworks:An Overview 5/83 Outline Introduction Overview Develop with Qt Develop with KDE History (2/4) Since our past experiences determine what we are KDE: Warmup 14 October 1996: Matthias Ettrich announce on Usernet the "Kool Desktop Environment" Willing to use Qt which already had a lot of potential November 1996: kdelibs-0.0.1.tar.gz Just before Christmas: kwm, kpanel et kfm..
    [Show full text]
  • The Qt and KDE Frameworks: an Overview
    Outline Introduction Overview Develop with Qt Develop with KDE The Qt and KDE Frameworks: An Overview Kevin Ottens Kevin Ottens | The Qt and KDE Frameworks:An Overview 1/68 Outline Introduction Overview Develop with Qt Develop with KDE Outline 1 Introduction 2 Overview 3 Develop with Qt 4 Develop with KDE Kevin Ottens | The Qt and KDE Frameworks:An Overview 2/68 Outline Introduction Overview Develop with Qt Develop with KDE Outline 1 Introduction 2 Overview 3 Develop with Qt 4 Develop with KDE Kevin Ottens | The Qt and KDE Frameworks:An Overview 3/68 Outline Introduction Overview Develop with Qt Develop with KDE Prerequisites and Goals Knowledge is a brick wall built line after line C++ Use of object oriented concepts Templates (at least a bit, but nothing hardcore) *nix To know what is a shell Recall the overall structure of a typical Unix based desktop Goals Give an overview of what can be done with Qt and KDE Give clues on how to go further Eventually give you the will to contribute , Kevin Ottens | The Qt and KDE Frameworks:An Overview 4/68 Outline Introduction Overview Develop with Qt Develop with KDE History (1/4) Since our past experiences determine what we are Trolltech 1994: Trolltech creation in Oslo, Norway 1996: First Qt selling! (ESA) 1999: Qt2, offices in Australia 2000: Qt/Embedded, offices in the US 2000: Qt/X11 available under the GPL! 2001: Sharp uses Qtopia in its products 2001: Qt3! 2002: Teambuilder is released 2003: Qt/Mac available under the GPL! 2004: Qtopia Phone Edition is released 2005: Qt4!! offices in China Kevin Ottens | The Qt and KDE Frameworks:An Overview 5/68 Outline Introduction Overview Develop with Qt Develop with KDE History (2/4) Since our past experiences determine what we are KDE: Warmup 14 October 1996: Matthias Ettrich announce on Usernet the "Kool Desktop Environment" Willing to use Qt which already had a lot of potential November 1996: kdelibs-0.0.1.tar.gz Just before Christmas: kwm, kpanel et kfm..
    [Show full text]
  • Qt5 with a Dash of C++11
    + C++11 Matthew Eshleman Qt5 with a touch of C++11 covemountainsoftware.com Background - Matthew Eshleman • 15+ years of embedded software development, architecture, management, and project planning • Delivered 30+ products with many more derivative projects. Millions of people have used my code. No one has threatened me yet (except one guy in marketing.) • Primarily C / C++, lately discovered they joy of C# • Recently discovered: Qt5 with C++11 • Learn more: http://covemountainsoftware.com/consulting Qt? • Qt is an application and user interface development framework primarily focused on cross platform UI/App development. • It also happens to be a great framework for more advanced embedded platforms. Especially since Qt5. • Qt was born in 1991. • Commercial licenses. Then GPL + Commercial • 2009 added LGPL Qt Apps • Perforce Client • VLC Media Player • Bitcoin • Netflix embedded player (TVs, DVDs..) • Dropbox (Linux) A Framework has… modules… lots of them… Qt Network Qt WebSockets Qt WebKit Qt State Machine Qt Widgets Qt Json QtConcurrent QFile Qt Serial Port QThreadPool etc QVector Qt Animation QTimer QTouchEvent QSettings etc What I love… • Signal and slots • Enhanced container libraries with built in memory management • LGPL license (changing…) • Qt5 Plugin architecture (input, graphics, touch) • Cross platform • Develop UI/algorithms on PC, port to embedded target • My boys —> What I do not love • The “meta object compiler” (discuss more later) • This enables the “signals and slots” functionality… which I love. • Superset of C++. Pretty much must use their IDE if you want dynamic error highlighting and autocomplete that is “Qt aware”. Elements for today • Signals and Slots • Container classes • Embedded target workflow • Strategies to use Qt’s cross platform capabilities to enable faster development Signals and Slots • Key/critical element of the Qt framework • A signal is a message emitted by an object.
    [Show full text]