Aller au contenu
Tous les transcripts
Podcast / conversationCybercomLab· 13 octobre 2010 14 minDivertissementNumérique

Qt Quick by Alexis Menard at Cybercom Developer Day 2010 part 1

Transcription Whisper (large-v3), avec identification des locuteurs. À recouper avec la source d'origine.

Analyse automatique

Générée par IA — peut contenir des erreurs. Méthodologie

Chapitres

Répartition du ton (temps de parole politique)

Propositif 100 %

Affirmations vérifiables (citations exactes)

  • 2:29PrésentateurFait
    « Qt is quite old. It's an old toolkit, right? Back in time, when you think about Qt, that's what you think. »
  • 3:34PrésentateurFait
    « it's a component-based architecture. And even though we said Qt is cross-platform, it's not really cross-platform in the sense that you can take your program, let's say, on the computer and put it on the device. »
  • 4:11PrésentateurFait
    « I don't know any designer that actually speaks C++. »
  • 6:09PrésentateurFait
    « it's still, you know, based on top of the foundation of Qt. »
  • 8:53PrésentateurFait
    « QML is a language. It's called Qt meta language, a Qt meta object language. »
  • 9:23PrésentateurFait
    « It's very inspired from JavaScript. It's actually really similar to JSON syntax in JavaScript. »
  • 11:23PrésentateurFait
    « let's provide basic primitives, like I don't know, basic geometry primitives, like rectangles, pixel map, rectangle pixel map and small geometry form factor. »
  • 12:14PrésentateurFait
    « We support states and animated transitions. »

Temps de parole

  • Présentateur89 %
  • ?11 %

≈ 79 interruptions / 10 min (chevauchements et interjections détectés).

Modèle mistral-small-latest · prompt v1 · les citations sont vérifiées mot pour mot dans le transcript ; le taux de réponse directe est calculé à partir des verdicts question par question. Aucun label idéologique n'est produit.

0:05
Locuteur

So,

0:05
Présentateur

hi, welcome everybody. First, I'd like to thank Cybercom for inviting me here. I'd like also to thank Marco and Tanya for the organisation. Everything went smoothly, so perfect.

0:18
Locuteur

So

0:18
Présentateur

today I'm going to talk about Qt Quick and a bit showing what it is and going into details and how you can use it.

0:28
Locuteur

So,

0:29
Présentateur

the agenda for today will be a bit of an introduction. The opportunities with Qt Quick, then we'll meet QML, it's a language.

0:40
Locuteur

I'll

0:41
Présentateur

talk about the tooling support for QML

0:42
Locuteur

and

0:43
Présentateur

a bit of the language basics, how it works, and how you can integrate already existing code into QML

0:51
Locuteur

or

0:52
Présentateur

native components.

0:54
Locuteur

And

0:55
Présentateur

I'll

0:55
Locuteur

give

0:55
Présentateur

an example as well, which is KDE Plasma. So, about me. I'm a Qt developer since 2008. I'm working in Oslo.

1:07
Locuteur

During

1:07
Présentateur

two years, I was mainly working on QGraphicsView, which is the canvas in Qt.

1:13
Locuteur

For

1:13
Présentateur

people that follow a bit the news of Migo, it's the framework that is used by the Migo Touch UI library.

1:21
Locuteur

I

1:21
Présentateur

was involved in QML development. I mainly work on the integration with GraphicView, so low-level stuff in QML, not necessarily high-level.

1:32
Locuteur

I

1:32
Présentateur

recently moved to Qt WebKit and WebKit development. So, right now, as we speak, I work on the HTML5 video and audio element support in Qt.

1:43
Locuteur

My

1:43
Présentateur

KDE background, so I'm a KDE developer as well. I started in 2006 on K-Plateau. It's a project management tool. It was a student project, and since then,

1:53
Locuteur

I'm

1:54
Présentateur

stuck in KDE, and I work mostly on Plasma. I'm not as active as I used to be, but

1:58
Locuteur

I

1:59
Présentateur

still stay around.

2:02
Locuteur

So,

2:03
Présentateur

moving to Norway was fun, because I left the French fast food for the Norwegian gastronomy,

2:08
Locuteur

which

2:10
Présentateur

I heard is not far away from the Finnish gastronomy, too. So, no, it's a good job. So, I like my job. I like Norway. It's just joking. So, let's talk about a bit of the past of Qt. So, Qt is quite old. It's an old toolkit, right? Back in time,

2:29
Locuteur

when

2:29
Présentateur

you think about Qt, that's what you think. This is KDE, right? So, regular UI on a desktop, buttons, menus, and everything.

2:39
Locuteur

The

2:39
Présentateur

problem is the market is moving, and we have those kind of things. And you don't have a mouse. You have a finger, and a finger is less accurate than a mouse.

2:51
Locuteur

So, if

2:53
Présentateur

you compare this and this, you can tell that this user interface will not work on a small form factor like this one.

3:05
Locuteur

Not

3:05
Présentateur

because it can't run. It's because it's not well suited for it.

3:12
Locuteur

So,

3:12
Présentateur

as I said, Qt comes from the desktop world.

3:15
Locuteur

It

3:15
Présentateur

was initially designed to build a UI on top of Motif and Windows

3:20
Locuteur

15

3:21
Présentateur

years ago.

3:23
Locuteur

So, at

3:26
Présentateur

that time, you know, having something on a seven inches or less screen was not in the mind of people. So,

3:33
Locuteur

also,

3:34
Présentateur

it's a component-based architecture. And even though we said Qt is cross-platform, it's not really cross-platform in the sense that

3:41
Locuteur

you

3:43
Présentateur

can take your program, let's say, on the computer and put it on the device. It will run. That's for sure. If it's a supported platform by Qt, it will. But, as I said,

3:54
Locuteur

it

3:54
Présentateur

will not be optimal.

3:55
Locuteur

So,

3:56
Présentateur

you still need to tweak the UI.

3:58
Locuteur

So,

3:58
Présentateur

it's not a really cross-platform toolkit in the sense that you always have to tweak a bit. Also, if you look Qt, Qt is C++, right?

4:08
Locuteur

I

4:09
Présentateur

don't know any designer that actually speaks C++.

4:11
Locuteur

I

4:11
Présentateur

mean, like 100% designers that actually speak or write C++ code or understand C++.

4:17
Locuteur

So,

4:18
Présentateur

what we see is, like,

4:20
Locuteur

the

4:22
Présentateur

designer actually designed the UI of the application, but the developer actually implements the user interface, and it's always different than what the designer asked for. Or,

4:32
Locuteur

they

4:33
Présentateur

implemented less because they couldn't. Performance reason, time problems, time issues, and stuff like that.

4:40
Locuteur

So,

4:41
Présentateur

the fact that the designers speak another language, and the fact that they use other tools, let's say Flash, for instance, or even PowerPoint. I've seen PowerPoint used for designing user interface.

4:55
Locuteur

It

4:55
Présentateur

makes the collaboration difficult between both worlds. And when you create a user interface for a phone, now, the user interface matters a lot.

5:04
Locuteur

Like,

5:04
Présentateur

it has to be fancy, it has to be nice, otherwise, you won't sell it.

5:07
Locuteur

You

5:08
Présentateur

won't sell your device. Also, if we look again, the imperative languages like C++, it's a bit counterproductive, in a sense that it requires many steps to reach what you try to achieve. Like,

5:24
Locuteur

if

5:25
Présentateur

you take a C++ framework, you need to inherit from the base class, or to actually customize them, and so on, takes a lot of time.

5:36
Locuteur

And

5:37
Présentateur

you always struggle with the C++ or the language itself, than actually describing what you really want to have on the screen, the look and the feel. That's something that is not easy to do today in Qt. Also, we see that canvas-based architectures become prevalent. Qwidget,

5:57
Locuteur

the

5:57
Présentateur

way the widget work in Qt,

5:59
Locuteur

is

5:59
Présentateur

not based on the canvas.

6:02
Locuteur

It's

6:03
Présentateur

based on the old approach. We still have a canvas, where, as I said, because I'm working on it, it's called Graphic View,

6:08
Locuteur

but

6:09
Présentateur

it's still, you know, based on top of the foundation of Qt.

6:14
Locuteur

So

6:15
Présentateur

it's not the best canvas that we could have in Qt.

6:18
Locuteur

Like,

6:19
Présentateur

let's say, compared to a canvas in the iPhone, for instance, or, I don't know, Android, probably.

6:26
Locuteur

So with

6:26
Présentateur

the canvas, you can do animations, fluid transformations, like nice effects, and so on. You can talk to the graphic card and, you know, add some fanciness in your UI.

6:40
Locuteur

And

6:40
Présentateur

this is important because

6:41
Locuteur

for

6:44
Présentateur

us, for Qt, for the people that use Qt, it's important they can actually create UIs that are different than the others. So they can actually sell the products and say, hey, look, mine is different, right? A bit like they do on top of Android. Oh, here is my UI layer on top of Android. It's better than this one. And

6:59
Locuteur

so

7:02
Présentateur

we still think that you should be able to customize your UI quickly and do some fancy stuff on it. Also, if you look at the market today,

7:13
Locuteur

the

7:13
Présentateur

hardware capabilities of, let's say, a small smartphone and a computer, they're slowly merging.

7:19
Locuteur

I

7:20
Présentateur

mean, who thought about, like now, for a recent phone, around the one gigahertz processor? Who thought that it would happen two years, three years ago? So, and if you look back in 1999, probably something like that, or 2000, like desktop computers had the one gigahertz processor, right? So the hardware are merging. Graphic cards are on mobile phones getting more features and features and features.

7:43
Locuteur

And so

7:45
Présentateur

the hardware capabilities of both a computer and a mobile smartphone, they are slowly merging.

7:51
Locuteur

But

7:51
Présentateur

the UI and the four factors are completely different. My laptop is a keyboard.

7:56
Locuteur

The

7:56
Présentateur

phone is a touchscreen. Who knows what will come next, 3D user interface, or I don't know. So, but the hardware capability is converging. So what we could run on the desktop now, we can actually run quite easily, on quite easily, but we can, we could run it on the phone quite easily.

8:15
Locuteur

But

8:15
Présentateur

still, the UI

8:16
Locuteur

will

8:17
Présentateur

be different, just because the screen, the form factor will be different. The way you interact with it will be different.

8:24
Locuteur

So

8:25
Présentateur

that, so that's, that's actually the background of Qt. So now how we can solve that? Well, we think that what we add in Qt does not fit well, mobile development.

8:37
Locuteur

We

8:37
Présentateur

are in a transition phase.

8:39
Locuteur

We

8:39
Présentateur

slowly move to a canvas with Graphic View.

8:42
Locuteur

That's

8:42
Présentateur

what Nokia is using for MIGO.

8:44
Locuteur

But

8:45
Présentateur

we still think it's not the optimal approach. So, and that's why we're working on something that we call QML. And QML is a language. It's called Qt meta language, a Qt meta object language. And the marketing name of all that project is actually Qt Quick. It's a number in a term for the declarative module in Qt, which is QML. And creator, which is our tool for it, our IDE.

9:13
Locuteur

For

9:14
Présentateur

us, we, it's a new way to create UIs in Qt. It's nothing to do with the old designer. It has nothing to do with C++. It's a declarative language.

9:23
Locuteur

It's

9:24
Présentateur

very inspired from JavaScript. It's actually really similar to JSON syntax in JavaScript.

9:31
Locuteur

We

9:32
Présentateur

also support JavaScript. You can do JavaScript inside.

9:34
Locuteur

You

9:35
Présentateur

can import libraries from the web.

9:38
Locuteur

It's

9:39
Présentateur

intuitive. It's really fun to use. I'll show you afterwards.

9:42
Locuteur

And

9:42
Présentateur

it has a similar structure to HTML, but it's not the same.

9:47
Locuteur

You

9:47
Présentateur

create parents and then children, and it's an object tree that you create, actually, a bit like HTML. For the fun story, back in time when we were starting to work on QML, QML, the language itself was not JavaScript or JavaScript JSON. It was actually HTML

10:01
Locuteur

or

10:02
Présentateur

XML, to be honest. And

10:04
Locuteur

after

10:06
Présentateur

hacking demos and everything, like when the file started to be really big, we said, wow, it's insanely hard to read. XML is not human readable language.

10:16
Locuteur

So that's

10:18
Présentateur

why we changed the syntax and now we use JavaScript JSON, because it's easier to read and to understand what's going on in the code.

10:28
Locuteur

The

10:28
Présentateur

approach we have also is completely different than what we had in QWidget. QWidget is, for instance, you get a checkbox

10:36
Locuteur

with

10:37
Présentateur

everything into it, all the features you can imagine of a checkbox. And

10:42
Locuteur

what

10:43
Présentateur

happened is like it creates

10:44
Locuteur

huge

10:45
Présentateur

fatty components. And sometimes people say, yeah, but I don't need all those features. What I want is just a checkbox with a cross and I can click on it. I don't need auto layout. I don't need other features like that.

10:59
Locuteur

I

10:59
Présentateur

don't need to be able to style the buttons and so on. So

11:03
Locuteur

the

11:06
Présentateur

feedback from customers of QWidget or users of QWidget was pretty much that it's actually hard to extend the existing components

11:13
Locuteur

to change

11:17
Présentateur

them the way they want.

11:18
Locuteur

So

11:19
Présentateur

that's why we said, okay, let's do the other way around is, let's provide basic primitives, like I don't know, basic geometry primitives, like rectangles, pixel map, rectangle pixel map and small geometry form factor,

11:34
Locuteur

I

11:34
Présentateur

would say. And then you build your button.

11:39
Locuteur

So

11:39
Présentateur

that means that you can actually build it like you really want

11:42
Locuteur

by

11:42
Présentateur

adding primitive one afterwards, like a rectangle is a pixel map with the text on top of it. So

11:48
Locuteur

we

11:51
Présentateur

create components from simple other elements and then each item is independent. You can access to each sub-item independently.

12:01
Locuteur

For

12:02
Présentateur

now, the canvas in QML is QGraphicsView.

12:06
Locuteur

So

12:07
Présentateur

you can do a fancy animation. You can also reuse the code that you have on GraphicView and then you can bring it to QML.

12:14
Locuteur

We

12:14
Présentateur

support states and animated transitions. So you can define states on the UI, like, for instance, portrait landscape. And you can decide how the transition will happen from the portrait to landscape.

12:26
Locuteur

You

12:27
Présentateur

can configure, as I said, the interpolation between the properties and everything.

12:33
Locuteur

So why

12:34
Présentateur

Qt Quick? Recode. It's to ease the question of animated user interface, something that we didn't have in Qt. It's to bridge the gap in Qt for mobile development. We want to be able to create quickly applications and put them on, let's say, OV store.

12:49
Locuteur

We

12:49
Présentateur

focus on performance. It's designed since day one for performing well on devices.

12:57
Locuteur

It's

12:58
Présentateur

not necessarily for device, for mobile or embedded development. We think that it will have a use case on the desktop and we hope that at some point we'll bring features so that you can actually use it as well on the desktop and get rid of Qt slowly.

13:15
Locuteur

It

13:15
Présentateur

increases the productivity a lot. You can create custom items really quickly and it's completely different than C++ where you need to subclass and everything. And what works really well is since it's an easy language to read, designers are able to understand. And we have a lot of success stories of actually designers doing working prototypes.

13:39
Locuteur

They

13:39
Présentateur

create the design and they actually hack it into QML and then it's actually a working prototype they can give to a developer and say, okay, now you have to implement the logic. The UI is made but implement the logic.

13:51
Locuteur

That

13:51
Présentateur

happened in KDE.

13:54
Locuteur

That's

13:55
Présentateur

what, so that's the last one. Empowers designer to actually create real application instead of a flash that's actually is useless for a developer which can't do anything with a in

14:05
Locuteur

KDE. That's all fresh. You You