<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.trinitydesktop.net/index.php?action=history&amp;feed=atom&amp;title=Structured_graphics_%28KDE3_Architecture%29</id>
	<title>Structured graphics (KDE3 Architecture) - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.trinitydesktop.net/index.php?action=history&amp;feed=atom&amp;title=Structured_graphics_%28KDE3_Architecture%29"/>
	<link rel="alternate" type="text/html" href="https://wiki.trinitydesktop.net/index.php?title=Structured_graphics_(KDE3_Architecture)&amp;action=history"/>
	<updated>2026-05-24T23:54:11Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.13</generator>
	<entry>
		<id>https://wiki.trinitydesktop.net/index.php?title=Structured_graphics_(KDE3_Architecture)&amp;diff=2250&amp;oldid=prev</id>
		<title>Blu256: + KDE3</title>
		<link rel="alternate" type="text/html" href="https://wiki.trinitydesktop.net/index.php?title=Structured_graphics_(KDE3_Architecture)&amp;diff=2250&amp;oldid=prev"/>
		<updated>2022-04-21T16:38:00Z</updated>

		<summary type="html">&lt;p&gt;+ KDE3&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:38, 21 April 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-addedline diff-side-added&quot;&gt;&lt;div&gt;{{KDE3}}&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-addedline diff-side-added&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-context diff-side-deleted&quot;&gt;&lt;div&gt;QPainter offers a powerful imaging model for painting on widgets and pixmaps.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-context diff-side-added&quot;&gt;&lt;div&gt;QPainter offers a powerful imaging model for painting on widgets and pixmaps.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-context diff-side-deleted&quot;&gt;&lt;div&gt;However, it can also be cumbersome to use. Each time your widget receives&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-context diff-side-added&quot;&gt;&lt;div&gt;However, it can also be cumbersome to use. Each time your widget receives&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Blu256</name></author>
	</entry>
	<entry>
		<id>https://wiki.trinitydesktop.net/index.php?title=Structured_graphics_(KDE3_Architecture)&amp;diff=666&amp;oldid=prev</id>
		<title>imported&gt;Eliddell: Created page with &quot;QPainter offers a powerful imaging model for painting on widgets and pixmaps. However, it can also be cumbersome to use. Each time your widget receives a paint event, it has t...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.trinitydesktop.net/index.php?title=Structured_graphics_(KDE3_Architecture)&amp;diff=666&amp;oldid=prev"/>
		<updated>2014-05-29T21:15:53Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;QPainter offers a powerful imaging model for painting on widgets and pixmaps. However, it can also be cumbersome to use. Each time your widget receives a paint event, it has t...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;QPainter offers a powerful imaging model for painting on widgets and pixmaps.&lt;br /&gt;
However, it can also be cumbersome to use. Each time your widget receives&lt;br /&gt;
a paint event, it has to analyze the QPaintEvent::region() or &lt;br /&gt;
QPaintEvent::rect() which has to be redrawn. Then it has to setup a&lt;br /&gt;
QPainter and paint all objects which overlap with that region. For example,&lt;br /&gt;
image a vector graphics program which allows to drag objects like polygons,&lt;br /&gt;
circles and groups of them around. Each time those objects move a bit, the&lt;br /&gt;
widget&amp;#039;s mouse event handler triggers a paint event for the whole area covered &lt;br /&gt;
by the objects in their old position and in their new position. Figuring&lt;br /&gt;
out the necessary redraws and doing them in an efficient way can be difficult,&lt;br /&gt;
and it may also conflict with the object-oriented structure of the program&amp;#039;s&lt;br /&gt;
source code.&lt;br /&gt;
&lt;br /&gt;
As an alternative, Qt contains the class&lt;br /&gt;
QCanvas in which you put&lt;br /&gt;
graphical objects like polygons, text, pixmaps. You may also provide additional &lt;br /&gt;
items by subclassing &lt;br /&gt;
QCanvasItem or one of&lt;br /&gt;
its more specialized subclasses. A canvas can be shown on the screen by one or &lt;br /&gt;
more widgets of the class&lt;br /&gt;
QCanvasView which you have&lt;br /&gt;
to subclass in order to handle user interactions. Qt takes care of all repaints&lt;br /&gt;
of objects in the view, whether they are caused by the widget being exposed,&lt;br /&gt;
new objects being created or modified or other things. By using double buffering, &lt;br /&gt;
this can be done in an efficient and flicker-free way.&lt;br /&gt;
&lt;br /&gt;
Canvas items can overlap each other. In this case, the visible one depends on&lt;br /&gt;
the z order which can be assigned by QCanvasItem::setZ(). Items can also be&lt;br /&gt;
made visible or invisible. You can also provide a background to be drawn &lt;br /&gt;
&amp;quot;behind&amp;quot; all items and a foreground. For associating mouse events with objects,&lt;br /&gt;
in the canvas, there is the method QCanvas::collisions() which returns a list&lt;br /&gt;
of items overlapping with a given point. Here we show a screenshot of a canvas&lt;br /&gt;
view in action:&lt;br /&gt;
&lt;br /&gt;
[[Image:q3canvas-demo.png|frame|center|QCanvas screenshot]]&lt;br /&gt;
&lt;br /&gt;
Here, the mesh is drawn in the background. Furthermore, there is a&lt;br /&gt;
QCanvasText item and a violet QCanvasPolygon. The butterfly is a&lt;br /&gt;
QCanvasPixmap. It has transparent areas, so you can see the underlying&lt;br /&gt;
items through it.&lt;br /&gt;
&lt;br /&gt;
A tutorial on using QCanvas for writing sprite-based games can be&lt;br /&gt;
found [https://web.archive.org/web/20100706151444/http://zez.org/article/articleview/2/1/ here].&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Initial Author:&amp;#039;&amp;#039; [mailto:bernd@kdevelop.org Bernd Gehrmann]&lt;br /&gt;
&lt;br /&gt;
[[Category:KDE3]]&lt;br /&gt;
[[Category:Architecture]]&lt;br /&gt;
[[Category:Developers]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Eliddell</name></author>
	</entry>
</feed>