Más contenido relacionado La actualidad más candente (20) Similar a The Future of Qt Widgets (20) Más de account inactive (20) The Future of Qt Widgets2. • Marius Bugge Monsen (mbm)
• Qt Developer
• Qt Widget Team Lead
15. Window System Paint Painting Code
#include<QtGui>
int main(int argc, char
*argv[])
{
QApplication a
(argc,argv);
QWidget w;
w.show();
return a.exec();
}
Update
17. Window System Window Surface Painting Code
#include<QtGui>
int main(int argc, char
*argv[])
{
QApplication a
(argc,argv);
QWidget w;
w.show();
return a.exec();
}
18. • Window
• Widgets
• Procedural Painting
20. • Window
• Widgets
• Primitive Elements
31. Groove
Grip
Text Mouse
Region
Look & Feel
32. Groove
Grip Range
Control
Text Mouse
Region
Look & Feel Data & Logic
33. Groove minimum
Mouse maximum
Region Range
... Control
Text value
Grip position
Look & Feel Data & Logic
34. Image {
id: groove
property alias value: control.value
property int minimum: 25
property int maximum: 75
...
BorderImage {
id: grip
...
}
RangeControl {
id: control
minimumValue: groove.minimum
maximumValue: groove.maximum
minimumPosition: 0
maximumPosition: groove.width - grip.width
position: grip.x
}
}
36. Text 42
Grip
Dial
Mouse Region
37. Dial
Range
Text Grip Mouse Control
Region
Look & Feel Data & Logic
38. Image {
id: dial
property alias value: control.value
...
Image {
id: grip
...
}
Text {
id: text
text: control.value
...
}
MouseRegion {
id: input
...
}
RangeControl {
id: control
minimumValue: dial.minimum
maximumValue: dial.maximum
...
}
}
46. Image credits:
“The Elephant In The Room” by Nancee_art on flickr
“Tea Leaves” by allaboutgeorge on flickr
“Painting Detail” by katiew on flickr
“Mixerboard” by Manuel_P on flickr
“Talk Nerdy To Me” by Ian Farrell on flickr
“Impassable” by stuckincustoms on flickr