<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://maemo.octonezd.me/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=200.251.58.190</id>
	<title>Maemo Wiki Mirror - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://maemo.octonezd.me/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=200.251.58.190"/>
	<link rel="alternate" type="text/html" href="https://maemo.octonezd.me/index.php/Special:Contributions/200.251.58.190"/>
	<updated>2026-04-21T23:18:52Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://maemo.octonezd.me/index.php?title=MADDE/Qt_example&amp;diff=14872</id>
		<title>MADDE/Qt example</title>
		<link rel="alternate" type="text/html" href="https://maemo.octonezd.me/index.php?title=MADDE/Qt_example&amp;diff=14872"/>
		<updated>2011-12-10T20:16:06Z</updated>

		<summary type="html">&lt;p&gt;200.251.58.190: /* Compile &amp;amp; build */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{MADDE}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Introduction ===&lt;br /&gt;
&lt;br /&gt;
This example requires a working configuration of [[MADDE]]. At least one target has to be installed and set as &#039;default&#039;. The basic steps to do this are described in this [[MADDE/Configuration | guide]]. If you want to run the example on the device, please install the Qt Gui library. This example will show how to:&lt;br /&gt;
&lt;br /&gt;
* start a project in MADDE &lt;br /&gt;
* use template-projects for developing&lt;br /&gt;
* compile a project in MADDE&lt;br /&gt;
* build a package&lt;br /&gt;
&lt;br /&gt;
=== Templates ===&lt;br /&gt;
&lt;br /&gt;
Templates are used in MADDE to simplify the set up of the basic skeleton for a project. The following command shows the list of available templates:&lt;br /&gt;
&lt;br /&gt;
 mad pscreate -l&lt;br /&gt;
&lt;br /&gt;
:The command gives following output:&lt;br /&gt;
&lt;br /&gt;
 TEMPLATE NAME    TYPE     DESCRIPTION&lt;br /&gt;
 empty            prog     Empty project&lt;br /&gt;
 lib_simple       lib      Simple example for C/C++ libraries&lt;br /&gt;
 qt_lib_simple    qtlib    Simple example for Qt libraries&lt;br /&gt;
 qt_simple        qtprog   Simple example for Qt programs&lt;br /&gt;
 simple           prog     Simple example for C/C++ programs&lt;br /&gt;
&lt;br /&gt;
=== Start the project ===&lt;br /&gt;
&lt;br /&gt;
The goal of this example is to create a simple Qt application. Therefore we can use the &amp;quot;qt_simple&amp;quot; template out of the list. The following command creates a project using the &amp;quot;qt_simple&amp;quot; template and named as &amp;quot;qthello&amp;quot; (In Windows MADDE Terminal this template seems to be qt-simple)&lt;br /&gt;
&lt;br /&gt;
 mad pscreate -t qt_simple qthello&lt;br /&gt;
&lt;br /&gt;
Afterwards the skeleton is created with the following subdirectories:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;src&#039;&#039;&#039;:qtmain.cpp - a simple hello world in Qt&lt;br /&gt;
* &#039;&#039;&#039;debian&#039;&#039;&#039;:configuration files, which are needed to create the package later on&lt;br /&gt;
* &#039;&#039;&#039;uis&#039;&#039;&#039;:empty folder for ui files, which are created with Qt Designer.&lt;br /&gt;
&lt;br /&gt;
Further it contains a file named &amp;quot;qtprog.pro&amp;quot;, which is a [http://doc.trolltech.com/4.5/qmake-project-files.html project file], needed to create the Makefile with qmake.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 /*&lt;br /&gt;
 * Created: 05/25/09-15:51:27&lt;br /&gt;
 * Author: username&lt;br /&gt;
 */&lt;br /&gt;
 #include &amp;lt;QApplication&amp;gt;&lt;br /&gt;
 #include &amp;lt;QPushButton&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 int main(int argc, char *argv[])&lt;br /&gt;
 {&lt;br /&gt;
        QApplication app(argc, argv);&lt;br /&gt;
 &lt;br /&gt;
        QPushButton hello(&amp;quot;Hello world!&amp;quot;);&lt;br /&gt;
 &lt;br /&gt;
        hello.show();&lt;br /&gt;
        return app.exec();&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
I had no idea how to approach this berfoe-now I&#039;m locked and loaded.&lt;/div&gt;</summary>
		<author><name>200.251.58.190</name></author>
	</entry>
</feed>