~oif-team/ubuntu/natty/qt4-x11/xi2.1

« back to all changes in this revision

Viewing changes to doc/html/designer-to-know.html

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2009-11-02 18:30:08 UTC
  • mfrom: (1.2.2 upstream)
  • mto: (15.2.5 experimental)
  • mto: This revision was merged to the branch mainline in revision 88.
  • Revision ID: james.westby@ubuntu.com-20091102183008-b6a4gcs128mvfb3m
Tags: upstream-4.6.0~beta1
ImportĀ upstreamĀ versionĀ 4.6.0~beta1

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
<!DOCTYPE html
3
3
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
4
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
 
<!-- /fasttmp/mkdist-qt-4.5.2-1245473805/qt-x11-opensource-src-4.5.2/doc/src/designer-manual.qdoc -->
 
5
<!-- designer-manual.qdoc -->
6
6
<head>
7
 
  <title>Qt 4.5: Getting to Know Qt Designer</title>
 
7
  <title>Qt 4.6: Getting to Know Qt Designer</title>
8
8
  <link rel="contents" href="designer-manual.html" />
9
9
  <link href="classic.css" rel="stylesheet" type="text/css" />
10
10
</head>
11
11
<body>
12
12
<table border="0" cellpadding="0" cellspacing="0" width="100%">
13
13
<tr>
14
 
<td align="left" valign="top" width="32"><a href="http://qtsoftware.com/products/qt"><img src="images/qt-logo.png" align="left" border="0" /></a></td>
15
 
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="namespaces.html"><font color="#004faf">All&nbsp;Namespaces</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="mainclasses.html"><font color="#004faf">Main&nbsp;Classes</font></a>&nbsp;&middot; <a href="groups.html"><font color="#004faf">Grouped&nbsp;Classes</font></a>&nbsp;&middot; <a href="modules.html"><font color="#004faf">Modules</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">Functions</font></a></td>
16
 
<td align="right" valign="top" width="230"></td></tr></table><p>
 
14
<td align="left" valign="top" width="32"><a href="http://qt.nokia.com/"><img src="images/qt-logo.png" align="left" border="0" /></a></td>
 
15
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">All&nbsp;Functions</font></a>&nbsp;&middot; <a href="overviews.html"><font color="#004faf">Overviews</font></a></td><td class="searchBar" align="right" valign="center"><form action="http://www.google.com/cse" id="cse-search-box"><div><input type="hidden" name="cx" value="000136343326384750312:dhbxnqlakyu" /><input type="hidden" name="ie" value="UTF-8" /><input type="text" name="q" size="31" /><input type="submit" name="sa" value="Search" /></div></form></td>
 
16
</tr></table><p>
17
17
[<a href="designer-manual.html">Contents</a>]
18
18
</p>
19
19
<h1 class="title">Getting to Know Qt Designer<br /><span class="subtitle"></span>
34
34
<h2>The User Interface</h2>
35
35
<p>When used as a standalone application, <i>Qt Designer</i>'s user interface can be configured to provide either a multi-window user interface (the default mode), or it can be used in docked window mode. When used from within an integrated development environment (IDE) only the multi-window user interface is available. You can switch modes in the <b>Preferences</b> dialog from the <b>Edit</b> menu.</p>
36
36
<p>In multi-window mode, you can arrange each of the tool windows to suit your working style. The main window consists of a menu bar, a tool bar, and a widget box that contains the widgets you can use to create your user interface.</p>
37
 
<a name="mainwindow"></a><p><table align="center" cellpadding="2" cellspacing="1" border="0">
 
37
<a name="mainwindow"></a><p><table class="generic" align="center" cellpadding="2" cellspacing="1" border="0">
38
38
<tr valign="top" class="odd"><td><img src="images/designer-main-window.png" /></td><td><b>Qt Designer's Main Window</b><p>The menu bar provides all the standard actions for managing forms, using the clipboard, and accessing application-specific help. The current editing mode, the tool windows, and the forms in use can also be accessed via the menu bar.</p>
39
39
<p>The tool bar displays common actions that are used when editing a form. These are also available via the main menu.</p>
40
40
<p>The widget box provides common widgets and layouts that are used to design components. These are grouped into categories that reflect their uses or features.</p>
41
41
</td></tr>
42
42
</table></p>
43
43
<p>Most features of <i>Qt Designer</i> are accessible via the menu bar, the tool bar, or the widget box. Some features are also available through context menus that can be opened over the form windows. On most platforms, the right mouse is used to open context menus.</p>
44
 
<a name="widgetbox"></a><p><table align="center" cellpadding="2" cellspacing="1" border="0">
 
44
<a name="widgetbox"></a><p><table class="generic" align="center" cellpadding="2" cellspacing="1" border="0">
45
45
<tr valign="top" class="odd"><td><img src="images/designer-widget-box.png" /></td><td><b>Qt Designer's Widget Box</b><p>The widget box provides a selection of standard Qt widgets, layouts, and other objects that can be used to create user interfaces on forms. Each of the categories in the widget box contain widgets with similar uses or related features.</p>
46
46
<p><b>Note:</b> Since Qt 4.4, new widgets have been included, e.g&#x2e;, <a href="qplaintextedit.html">QPlainTextEdit</a>, <a href="qcommandlinkbutton.html">QCommandLinkButton</a>, <a href="qscrollarea.html">QScrollArea</a>, <a href="qmdiarea.html">QMdiArea</a>, and <a href="qwebview.html">QWebView</a>.</p>
47
47
<p>You can display all of the available objects in a category by clicking on the handle next to the category label. When in <a href="designer-widget-mode.html">Widget Editing Mode</a>, you can add objects to a form by dragging the appropriate items from the widget box onto the form, and dropping them in the required locations.</p>
63
63
</ol>
64
64
<p>So, you no longer have to worry about rearranging widgets for different platforms, settings, and languages.</p>
65
65
<p>The example below shows how different localizations can affect the user interface. When a localization requires more space for longer text strings the Qt layout automatically scales to accommodate this, while ensuring that the user interface looks presentable and still matches the platform guidelines.</p>
66
 
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
 
66
<p><table class="generic" align="center" cellpadding="2" cellspacing="1" border="0">
67
67
<thead><tr valign="top" class="qt-style"><th>A Dialog in English</th><th>A Dialog in French</th></tr></thead>
68
68
<tr valign="top" class="odd"><td><p align="center"><img src="images/designer-english-dialog.png" /></p></td><td><p align="center"><img src="images/designer-french-dialog.png" /></p></td></tr>
69
69
</table></p>
70
70
<p>The process of laying out widgets consists of creating the layout hierarchy while setting as few widget size constraints as possible.</p>
71
 
<p>For a more technical perspective on Qt's layout classes, refer to the <a href="layout.html">Layout Classes</a> document.</p>
 
71
<p>For a more technical perspective on Qt's layout classes, refer to the <a href="layout.html">Layout Management</a> documentation.</p>
72
72
<p>
73
73
[<a href="designer-manual.html">Contents</a>]
74
74
</p>
75
75
<p /><address><hr /><div align="center">
76
76
<table width="100%" cellspacing="0" border="0"><tr class="address">
77
 
<td width="30%" align="left">Copyright &copy; 2009 Nokia Corporation and/or its subsidiary(-ies)</td>
78
 
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
79
 
<td width="30%" align="right"><div align="right">Qt 4.5.2</div></td>
80
 
</tr></table></div></address></body>
 
77
<td width="40%" align="left">Copyright &copy; 2009 Nokia Corporation and/or its subsidiary(-ies)</td>
 
78
<td width="20%" align="center"><a href="trademarks.html">Trademarks</a></td>
 
79
<td width="40%" align="right"><div align="right">Qt 4.6.0</div></td>
 
80
<script type="text/javascript" src="http://www.google.com/jsapi"></script><script type="text/javascript">google.load("elements", "1", {packages: "transliteration"});</script><script type="text/javascript" src="http://www.google.com/coop/cse/t13n?form=cse-search-box&t13n_langs=en"></script><script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&lang=en"></script></tr></table></div></address></body>
81
81
</html>