QtQuick Training Course Module Seven. Understanding the User Interface Design and Code Panels Properties 1 Qt Quick Design Module Seven Objectives Creating.

Slides:



Advertisements
Similar presentations
Microsoft ® Office Word 2007 Training Header and footer basics Sweetwater ISD presents:
Advertisements

Chapter 3 – Web Design Tables & Page Layout
QtQuick Training Course Module Eight. How to export? File preparation Export result overview Exporting tips and common issues 2 Exporting from Photoshop.
Introduction Headers & Footers. You will learn how to: Create, Format, Edit and Delete Create Different Header/Footer in a Document Create a First Page.
QtQuick Training Course Meet QtQuick. What is Qt? Why use Qt? Who uses Qt? 1 QtQuick Meet QtQuick Objectives Creating the file Background Foreground elements.
Guide to Oracle10G1 Introduction To Forms Builder Chapter 5.
Copyright 2007, Paradigm Publishing Inc. POWERPOINT 2007 CHAPTER 1 BACKNEXTEND 1-1 LINKS TO OBJECTIVES Create Presentation Open, Save, Run, Print, Close,Delete.
1 Computing for Todays Lecture 20 Yumei Huo Fall 2006.
4 Copyright © 2004, Oracle. All rights reserved. Creating a Basic Form Module.
1 Introduction to the Visual Studio.NET IDE Powerpoint slides modified from Deitel & Deitel.
PowerPoint Lesson 2 Notes Working With Slides. Creating a New Presentation From a Theme 1.When preparing for a presentation, the best place to start is.
The Dr ü G Book: An Intro to Drupal The Dr ü G Book: An Intro to Drupal (Dr ü G: Drupal User ’ s Group - users, not developers) This is an introduction.
Chapter 9 Macros, Navigation Forms, PivotTables, and PivotCharts
Microsoft Visual Basic 2012 CHAPTER TWO Program and Graphical User Interface Design.
Visual Basic 2008 Express Edition The IDE. Visual Basic 2008 Express The Start Page Recent Projects Open an existing project Create a New Project.
Chapter 3 Working with Symbols and Interactivity.
XP New Perspectives on Microsoft Office PowerPoint 2003 Tutorial 2 1 Microsoft Office PowerPoint 2003 Tutorial 2 – Applying and Modifying Text and Graphic.
Copyright © Texas Education Agency, All rights reserved. 1 Web Technologies Website Development with Dreamweaver.
Microsoft Word 2010 Chapter 1 Creating, Formatting, and Editing a Word Document with Pictures.
Web Technologies Website Development Trade & Industrial Education
EDU 271. Introduction to Microsoft Publisher  Microsoft Publisher helps you easily create, customize, and publish materials such as: newsletters, brochures,
Using Form Tools and Creating Custom Forms Microsoft Access 2010.
IE 411/511: Visual Programming for Industrial Applications
QtQuick Training Course Module One. What is it? Why use it? Who uses it? 1 Things to know about Qt Module One Objectives Declarative UI Syntax Examples.
Website Development with Dreamweaver
© 2011 Delmar, Cengage Learning Chapter 3 Working with Symbols and Interactivity.
1.Getting Started 2.Modifying Design 3.Page 4.News 5.Events 6.Photo Gallery 7.Newsletter Index Training 15 th Mar., 2011.
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
QtQuick Training Course Module Qt Components. What is Qt Components? Setting up your environment Basic interface elements Style Text input Buttons Menu.
Adobe Flash CS3 Revealed Chapter 3 - WORKING WITH SYMBOLS AND INTERACTIVITY.
Creating Buttons – Lesson 51 Creating Buttons Lesson 5.
Chapter 5 Quick Links Slide 2 Performance Objectives Understanding Framesets and Frames Creating Framesets and Frames Selecting Framesets and Frames Using.
Chapter 2 – Introduction to the Visual Studio .NET IDE
CMPF124 Basic Skills For Knowledge Workers Module 3 Microsoft Office Suite Pt 3 Microsoft PowerPoint Microsoft Office Suite Pt 3 Microsoft PowerPoint.
1 Creating Windows GUIs with Visual Studio. 2 Creating the Project New Project Visual C++ Projects Windows Forms Application Give the Project a Name and.
A STUDENT’S GUIDE TO ADDING IMAGES TO NEW OR EXISTING BLOG POSTS Adding Images to Your Blog Post Presented by Michelle Krummel.
Copyright Ó Oracle Corporation, All rights reserved Working with Other Canvases.
Working in FreeHand – Lesson 21 Working in FreeHand Lesson 2.
Visual Basic CDA College Limassol Campus Lecture:Pelekanou Olga Semester C Week - 1.
Building the Events Components– Lesson 111 Building the Events Components Lesson 11.
Gold – Crystal Reports Introductory Course Cortex User Group Meeting New Orleans – 2011.
Microsoft Visual Basic 2010 CHAPTER TWO Program and Graphical User Interface Design.
Adding Text and Navigation to the Home Page – Lesson 51 Adding Text and Navigation to the Home Page Lesson 5.
 2002 Prentice Hall. All rights reserved. 1 Chapter 2 – Introduction to the Visual Studio.NET IDE Outline 2.1Introduction 2.2Visual Studio.NET Integrated.
PYP002 Intro.to Computer Science Microsoft Word1 Lab 04 - a Microsoft Windows Applications Common Features.
Microsoft Windows is the dominant operating system on computers around the world. In this lesson, you will learn how to navigate and manage files in the.
4 Copyright © 2004, Oracle. All rights reserved. Creating a Basic Form Module.
Web Site Development - Process of planning and creating a website.
XP New Perspectives on Macromedia Dreamweaver MX 2004 Tutorial 5 1 Adding Shared Site Elements.
 2002 Prentice Hall. All rights reserved. 1 Introduction to the Visual Studio.NET IDE Outline Introduction Visual Studio.NET Integrated Development Environment.
Chapter 10 Using Macros, Controls and Visual Basic for Applications (VBA) with Excel Microsoft Excel 2013.
PowerPoint Chapter 1 Creating and Editing a Presentation with Clip Art Discovering Computers & Microsoft Office 2010.
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Excel 2002 Using Macros Lesson.
Instructions – please delete
Chapter 2 – Introduction to the Visual Studio .NET IDE
DreamWeaver CS4.
Chapter 2 – Introduction to the Visual Studio .NET IDE
Instructions – please delete
Instructions – please delete
Instructions – please delete
Instructions – please delete
Instructions – please delete
Instructions – please delete
European Computer Driving Licence
Instructions – please delete
Instructions – please delete
Instructions – please delete
Instructions – please delete
Instructions – please delete
Instructions – please delete
Presentation transcript:

QtQuick Training Course Module Seven

Understanding the User Interface Design and Code Panels Properties 1 Qt Quick Design Module Seven Objectives Creating a Project Changing Properties Component Item Image 2 Layout and Interaction

MouseArea Using Components States Running your Project 2 Layout and Interaction (cont.) Module Seven Objectives

2 Layout and Interaction 3 Questions 4 Lab 1 Qt Quick Design Module Seven Topics

Understanding the User Interface Qt Quick Design Design and develop user interfaces Coding skills are not necessary See example: addon/module-007/examples/clocks.qml

Design and Code Qt Quick Design Access Design Mode through the left toolbar Switch easily between Design and Code mode On Project info you can change the main settings Code Editor Design Mode Project info

Navigator Panel Qt Quick Design Guide you through all the elements Displays the elements as a tree structure Toggle visibility for each element

Library Panel Qt Quick Design QML Elements for use to design applications Drag the desired element to the canvas

States Panel Qt Quick Design Displays the different states of the component. QML states typically describe user interface configurations, such as the UI elements, their properties, behavior and the available actions.

Properties Panel Qt Quick Design Make changes to the selected element Also done in the Code Editor

Canvas Qt Quick Design The working area where you create QML components and design applications.

2 Layout and Interaction 3 Questions 4 Lab 1 Qt Quick Design Module Seven Topics

Project Overview Layout and Interaction In this module, you’ll learn the basics to build a mockup. In the next module, you’ll build a high- fidelity prototype.

Measurements Layout and Interaction x There’s no need to follow these exact measures, they’re here for reference purpose only.

Creating a Project Layout and Interaction Open Qt Creator and create a new Qt Quick UI project Name it ‘Mockup’ Switch to Design Mode and delete all the elements on the Canvas See example: addon/module- 007/examples/project/Mockup.qml

Changing Properties Layout and Interaction Resize the remaining Rectangle to 360x640 and rename it to ‘stage’ See example: addon/module- 007/examples/properties/Mockup.qml

Adding elements Layout and Interaction Create a 95x80 grey Rectangle and name it ‘photo’ Create a ‘headerText’ Text and a ‘secondaryText’ Text and format them on the Properties panel Use WordWrap and Smooth Aliasing See example: addon/module- 007/examples/elements/Mockup.qml

Component Layout and Interaction QML files that can be re-used many times, as elements, throughout a project To create a new QML component go to: File > New File or Project > Files and Classes > QML > Choose… Name the file “Header”

Item Layout and Interaction In the Code Editor, change the Rectangle element to Item, resize it and name it ‘header’ Has no visual appearance Used to define properties, such as x and y, and handling key events See example: addon/module- 007/examples/item/Header.qml

Image Layout and Interaction Drag images from the projects folder onto the canvas using the Resources tab in the Library Panel Name them ‘imgOptions’ and ‘imgClose’, respectfully See example: addon/module- 007/examples/image/Header.qml

Anchors Layout and Interaction Create a ‘title’ Text and use Anchors to center it to the stage Anchors can be found in the Layout tab on the Properties panel Use anchors to position the images left and right, respectfully, with a margin of 10 See example: addon/module- 007/examples/anchors/Header.qml

Using Components Layout and Interaction Back in the main QML file (Mockup.qml), drag the newly created Header component to the Canvas See example: addon/module- 007/examples/component/Header.qml

States Layout and Interaction Create a 360x70 Footer.qml component with a 20px-rounded rectangle and three Texts, serving as button placeholders Add two new states for the component and name them accordingly

States Layout and Interaction States define specific properties configurations for the elements on the component You can, then, navigate through these states See example: addon/module- 007/examples/states/Footer.qml

Running your Project Layout and Interaction Add the Footer component to the bottom of the main QML file (mockup.qml) To test your application, simply click the Run button on the sidebar.

Running your Project Layout and Interaction A new window will open with your running application. See example: addon/module- 007/examples/mockup/Mockup.qml

2 Layout and Interaction 3 Questions 4 Lab 1 Qt Quick Design Module Seven Topics

Questions What is the main purpose of Qt Quick Designer? In what panel can you find qml elements to add to your application? How do you add components to your application? What are States? How can you edit an element? What use of Item would benefit more than using Rectangle? What’s the difference between dragging onto stage a standard Image element and dragging an Image from the Resources Library?

2 Layout and Interaction 3 Questions 4 Lab 1 Qt Quick Design Module Seven Topics

Lab Add two placeholder components to the main Mockup.qml and toggle their visibilities as different states Interactions will be added in the next module See Lab: addon/module-007/labs/lab-7

Lab Optional: Change the Header component, so that there is another state displaying a menu and a translucent overlay

(c) 2011 Nokia Corporation and its Subsidiary(-ies). The enclosed Qt Training Materials are provided under the CreativeCommons Attribution ShareAlike 2.5 License Agreement. The full license text is available here: sa/2.5/legalcodehttp://creativecommons.org/licenses/by- sa/2.5/legalcode Nokia, Qt and the Nokia and Qt logos are the registered trademarks of Nokia Corporation in Finland and other countries worldwide.