1
<?xml version="1.0" encoding="iso-8859-1"?>
3
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
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 -->
7
<title>Qt 4.5: What's New in Qt Designer 4.5</title>
8
<link rel="contents" href="designer-manual.html" />
9
<link href="classic.css" rel="stylesheet" type="text/css" />
12
<table border="0" cellpadding="0" cellspacing="0" width="100%">
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"> </td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a> · <a href="namespaces.html"><font color="#004faf">All Namespaces</font></a> · <a href="classes.html"><font color="#004faf">All Classes</font></a> · <a href="mainclasses.html"><font color="#004faf">Main Classes</font></a> · <a href="groups.html"><font color="#004faf">Grouped Classes</font></a> · <a href="modules.html"><font color="#004faf">Modules</font></a> · <a href="functions.html"><font color="#004faf">Functions</font></a></td>
16
<td align="right" valign="top" width="230"></td></tr></table><p>
17
[<a href="designer-manual.html">Contents</a>]
19
<h1 class="title">What's New in Qt Designer 4.5<br /><span class="subtitle"></span>
21
<a name="general-changes"></a>
22
<h2>General Changes</h2>
23
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
24
<thead><tr valign="top" class="qt-style"><th>Widget Filter Box</th><th>Widget Morphing</th><th>Disambiguation Field</th></tr></thead>
25
<tr valign="top" class="odd"><td><img src="images/designer-widget-filter.png" /></td><td><img src="images/designer-widget-morph.png" /></td><td><img src="images/designer-disambiguation.png" /></td></tr>
28
<li>Displaying only icons in the <b>Widget Box</b>: It is now possible for the <b>Widget Box</b> to display icons only. Simply select <b>Icon View</b> from the context menu.</li>
29
<li>Filter for <b>Widget Box</b>: A filter is now provided to quickly locate the widget you need. If you use a particular widget frequently, you can always add it to the <a href="designer-to-know.html#widgetbox">scratch pad</a>.</li>
30
<li>Support for <a href="qbuttongroup.html">QButtonGroup</a>: It is available via the context menu of a selection of <a href="qabstractbutton.html">QAbstractButton</a> objects.</li>
31
<li>Improved support for item widgets: The item widgets' (e.g., <a href="qlistwidget.html">QListWidget</a>, <a href="qtablewidget.html">QTableWidget</a>, and <a href="qtreewidget.html">QTreeWidget</a>) contents dialogs have been improved. You can now add translation comments and also modify the header properties.</li>
32
<li>Widget morphing: A widget can now be morphed from one type to another with its layout and properties preserved. To begin, click on your widget and select <b>Morph into</b> from the context menu.</li>
33
<li>Disambiguation field: The property editor now shows this extra field under the <b>accessibleDescription</b> property. This field has been introduced to aid translators in the case of two source texts being the same but used for different purposes. For example, a dialog could have two <b>Add</b> buttons for two different reasons. <b>Note:</b> To maintain compatibility, comments in <tt>.ui</tt> files created prior to Qt 4.5 will be listed in the <b>Disambiguation</b> field.</li>
35
<a name="improved-shortcuts-for-the-editing-mode"></a>
36
<h2>Improved Shortcuts for the Editing Mode</h2>
38
<li>The <b>Shift+Click</b> key combination now selects the ancestor for nested layouts. This iterates from one ancestor to the other.</li>
39
<li>The <b>Ctrl</b> key is now used to toggle and copy drag. Previously this was done with the <b>Shift</b> key but is now changed to conform to standards.</li>
40
<li>The left mouse button does rubber band selection for form windows; the middle mouse button does rubber band selection everywhere.</li>
42
<a name="layouts"></a>
45
<li>It is now possible to switch a widget's layout without breaking it first. Simply select the existing layout and change it to another type using the context menu or the layout buttons on the toolbar.</li>
46
<li>To quickly populate a <b>Form Layout</b>, you can now use the <b>Add form layout row...</b> item available in the context menu or double-click on the red layout.</li>
48
<a name="support-for-embedded-design"></a>
49
<h2>Support for Embedded Design</h2>
50
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
51
<thead><tr valign="top" class="qt-style"><th>Comboboxes to Select a Device Profile</th></tr></thead>
52
<tr valign="top" class="odd"><td><img src="images/designer-embedded-preview.png" /></td></tr>
54
<p>It is now possible to specify embedded device profiles, e.g., Style, Font, Screen DPI, resolution, default font, etc., in <b>Preferences</b>. These settings will affect the <b>Form Editor</b>. The profiles will also be visible with <b>Preview</b>.</p>
55
<a name="related-classes"></a>
56
<h2>Related Classes</h2>
58
<li><a href="quiloader.html">QUiLoader</a> — forms loaded with this class will now react to <a href="qevent.html#Type-enum">QEvent::LanguageChange</a> if <a href="quiloader.html#setLanguageChangeEnabled">QUiLoader::setLanguageChangeEnabled</a>() or <a href="quiloader.html#isLanguageChangeEnabled">QUiLoader::isLanguageChangeEnabled</a>() is set to true.</li>
59
<li><a href="qdesignercustomwidgetinterface.html">QDesignerCustomWidgetInterface</a> — the <a href="qdesignercustomwidgetinterface.html#domXml">domXml()</a> function now has new attributes for its <tt><ui></tt> element. These attributes are <tt>language</tt> and <tt>displayname</tt>. The <tt>language</tt> element can be one of the following "", "c++", "jambi". If this element is specified, it must match the language in which Designer is running. Otherwise, this element will not be available. The <tt>displayname</tt> element represents the name that will be displayed in the <b>Widget Box</b>. Previously this was hardcoded to be the class name.</li>
60
<li><a href="qwizard.html">QWizard</a> — <a href="qwizard.html">QWizard</a>'s page now has a string <tt>id</tt> attribute that can be used to fill in enumeration values to be used by the <tt>uic</tt>. However, this attribute has no effect on <a href="quiloader.html">QUiLoader</a>.</li>
63
[<a href="designer-manual.html">Contents</a>]
65
<p /><address><hr /><div align="center">
66
<table width="100%" cellspacing="0" border="0"><tr class="address">
67
<td width="30%" align="left">Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies)</td>
68
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
69
<td width="30%" align="right"><div align="right">Qt 4.5.2</div></td>
70
</tr></table></div></address></body>