1
<?xml version="1.0" encoding="UTF-8"?>
2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
5
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
<title>Qt Mobility 1.1: audiodevicesbase.ui Example File (audiodevices/audiodevicesbase.ui)</title>
7
<link rel="stylesheet" type="text/css" href="style/style.css"
9
<meta name="MSSmartTagsPreventParsing" content="true">
10
<meta http-equiv="imagetoolbar" content="no">
13
<link rel="stylesheet" type="text/css" href="style/style_ie6.css">
16
<link rel="stylesheet" type="text/css" href="style/style_ie7.css">
19
<link rel="stylesheet" type="text/css" href="style/style_ie8.css">
21
<script src="scripts/jquery.js" type="text/javascript"></script>
22
<script src="scripts/functions.js" type="text/javascript"></script>
23
<script src="./scripts/superfish.js" type="text/javascript"></script>
24
<script src="./scripts/narrow.js" type="text/javascript"></script>
25
<link rel="stylesheet" type="text/css" href="style/superfish.css" /> <link rel="stylesheet" type="text/css" href="style/narrow.css" /></head>
26
<body class="" onload="CheckEmptyAndLoadList();">
27
<div class="header" id="qtdocheader">
30
<a href="index.html">Home</a></div>
31
<a href="index.html" class="qtref"><span>Qt Mobility Reference Documentation</span></a>
32
<div id="narrowsearch"><form onsubmit="return false;" action="" id="qtdocsearchTop">
34
<input type="text" value="" id="pageType2" name="searchstring"/>
37
<div id="nav-topright">
39
<li class="nav-topright-home"><a href="http://qt.nokia.com/">Qt HOME</a></li>
40
<li class="nav-topright-dev"><a href="http://developer.qt.nokia.com/">DEV</a></li>
41
<li class="nav-topright-labs"><a href="http://labs.qt.nokia.com/blogs/">LABS</a></li>
42
<li class="nav-topright-doc nav-topright-doc-active"><a href="http://doc.qt.nokia.com/">
44
<li class="nav-topright-blog"><a href="http://blog.qt.nokia.com/">BLOG</a></li>
49
<li class="shortCut-topleft-inactive"><span><a href="index.html">Mobility 1.1</a></span></li>
50
<li class="shortCut-topleft-active"><a href="http://doc.qt.nokia.com">ALL VERSIONS </a></li>
53
<ul class="sf-menu sf-js-enabled sf-shadow" id="narrowmenu">
54
<li><a href="#">API Lookup</a>
56
<li><a href="classes.html">Class index</a></li>
57
<li><a href="functions.html">Function index</a></li>
58
<li><a href="modules.html">Modules</a></li>
61
<li><a href="#">Examples</a>
62
<ul id="topmenuexample">
63
<li><a href="all-examples.html">Examples</a></li>
73
<div class="bd group">
75
<div class="searchlabel">
78
<form id="qtdocsearch" action="" onsubmit="return false;">
80
<input type="text" name="searchstring" id="pageType" value="" />
84
<div class="box first bottombar" id="lookup">
85
<h2 title="API Lookup"><span></span>
87
<div id="list001" class="list">
89
<li class="defaultLink"><a href="classes.html">Class index</a></li>
90
<li class="defaultLink"><a href="functions.html">Function index</a></li>
91
<li class="defaultLink"><a href="modules.html">Modules</a></li>
92
<li class="defaultLink"><a href="index.html#platform-compatibility">Platform Compatibility</a></li>
93
<li class="defaultLink"><a href="qml-plugins.html">QML Plugins</a></li>
97
<div class="box bottombar" id="topics">
98
<h2 title="Qt Topics"><span></span>
100
<div id="list002" class="list">
102
<li class="defaultLink"><a href="http://doc.qt.nokia.com/4.7-snapshot/">Qt 4.7</a></li>
103
<li class="defaultLink"><a href="http://doc.qt.nokia.com/4.7-snapshot/qt-basic-concepts.html">Basic Qt architecture</a></li>
104
<li class="defaultLink"><a href="http://doc.qt.nokia.com/4.7-snapshot/declarativeui.html">Device UI's & Qt Quick</a></li>
105
<li class="defaultLink"><a href="http://doc.qt.nokia.com/4.7-snapshot/qt-gui-concepts.html">Desktop UI components</a></li>
106
<li class="defaultLink"><a href="http://doc.qt.nokia.com/4.7-snapshot/platform-specific.html">Platform-specific info</a></li>
110
<div class="box" id="examples">
111
<h2 title="Examples"><span></span>
113
<div id="list003" class="list">
115
<li class="defaultLink"><a href="all-examples.html">Examples</a></li>
121
<div class="toolbar">
122
<div class="breadcrumb toolblock">
124
<li class="first"><a href="index.html">Home</a></li>
125
<!-- Bread crumbs goes here -->
128
<div class="toolbuttons toolblock">
130
<li id="smallA" class="t_button">A</li>
131
<li id="medA" class="t_button active">A</li>
132
<li id="bigA" class="t_button">A</li>
133
<li id="print" class="t_button"><a href="javascript:this.print();">
134
<span>Print</span></a></li>
138
<div class="content">
139
<h1 class="title">audiodevicesbase.ui Example File</h1>
140
<span class="small-subtitle">audiodevices/audiodevicesbase.ui</span>
142
<pre class="highlightedCode brush: cpp"> <?xml version="1.0" encoding="UTF-8"?>
143
<ui version="4.0">
144
<class>AudioDevicesBase</class>
145
<widget class="QMainWindow" name="AudioDevicesBase">
146
<property name="geometry">
150
<width>679</width>
151
<height>598</height>
154
<property name="windowTitle">
155
<string>Audio Devices</string>
157
<widget class="QWidget" name="centralwidget">
158
<layout class="QVBoxLayout" name="verticalLayout">
160
<widget class="QScrollArea" name="scrollArea">
161
<property name="sizePolicy">
162
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
163
<horstretch>0</horstretch>
164
<verstretch>0</verstretch>
167
<property name="widgetResizable">
168
<bool>true</bool>
170
<widget class="QWidget" name="scrollAreaWidgetContents">
171
<property name="geometry">
175
<width>659</width>
176
<height>558</height>
179
<layout class="QGridLayout" name="gridLayout_4">
180
<item row="0" column="0">
181
<layout class="QGridLayout" name="gridLayout_2">
182
<item row="0" column="0">
183
<widget class="QLabel" name="modeLabel">
184
<property name="text">
185
<string>Mode</string>
189
<item row="0" column="1">
190
<widget class="QLabel" name="deviceLabel">
191
<property name="text">
192
<string>Device</string>
196
<item row="1" column="0">
197
<widget class="QComboBox" name="modeBox">
199
<property name="text">
200
<string>Input</string>
204
<property name="text">
205
<string>Output</string>
210
<item row="1" column="1">
211
<widget class="QComboBox" name="deviceBox"/>
213
<item row="2" column="0" colspan="2">
214
<widget class="QTabWidget" name="tabWidget">
215
<property name="currentIndex">
216
<number>0</number>
218
<widget class="QWidget" name="testFormatTab">
219
<attribute name="title">
220
<string>Test format</string>
222
<layout class="QGridLayout" name="gridLayout">
223
<item row="0" column="1">
224
<widget class="QLabel" name="actualLabel">
225
<property name="sizePolicy">
226
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
227
<horstretch>0</horstretch>
228
<verstretch>0</verstretch>
231
<property name="frameShape">
232
<enum>QFrame::NoFrame</enum>
234
<property name="frameShadow">
235
<enum>QFrame::Plain</enum>
237
<property name="text">
238
<string>&lt;i&gt;Actual Settings&lt;/i&gt;</string>
240
<property name="textFormat">
241
<enum>Qt::RichText</enum>
243
<property name="alignment">
244
<set>Qt::AlignCenter</set>
248
<item row="0" column="2">
249
<widget class="QLabel" name="nearestLabel">
250
<property name="sizePolicy">
251
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
252
<horstretch>0</horstretch>
253
<verstretch>0</verstretch>
256
<property name="frameShape">
257
<enum>QFrame::NoFrame</enum>
259
<property name="frameShadow">
260
<enum>QFrame::Plain</enum>
262
<property name="text">
263
<string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
264
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
265
p, li { white-space: pre-wrap; }
266
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;&quot;&gt;
267
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-style:italic;&quot;&gt;Nearest Settings&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
269
<property name="textFormat">
270
<enum>Qt::RichText</enum>
272
<property name="alignment">
273
<set>Qt::AlignCenter</set>
277
<item row="3" column="1">
278
<widget class="QComboBox" name="frequencyBox">
279
<property name="sizePolicy">
280
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
281
<horstretch>0</horstretch>
282
<verstretch>0</verstretch>
287
<item row="3" column="2">
288
<widget class="QLineEdit" name="nearestFreq">
289
<property name="enabled">
290
<bool>false</bool>
294
<item row="5" column="1">
295
<widget class="QComboBox" name="channelsBox"/>
297
<item row="5" column="2">
298
<widget class="QLineEdit" name="nearestChannel">
299
<property name="enabled">
300
<bool>false</bool>
304
<item row="9" column="1">
305
<widget class="QComboBox" name="sampleSizesBox"/>
307
<item row="9" column="2">
308
<widget class="QLineEdit" name="nearestSampleSize">
309
<property name="enabled">
310
<bool>false</bool>
314
<item row="14" column="1">
315
<widget class="QComboBox" name="endianBox"/>
317
<item row="14" column="2">
318
<widget class="QLineEdit" name="nearestEndian">
319
<property name="enabled">
320
<bool>false</bool>
324
<item row="15" column="1">
325
<widget class="QPushButton" name="testButton">
326
<property name="text">
327
<string>Test</string>
331
<item row="15" column="2">
332
<widget class="QLabel" name="testResult">
333
<property name="text">
338
<item row="3" column="0">
339
<widget class="QLabel" name="actualFreqLabel">
340
<property name="text">
341
<string>Frequency (Hz)</string>
345
<item row="5" column="0">
346
<widget class="QLabel" name="actualChannelLabel">
347
<property name="text">
348
<string>Channels</string>
352
<item row="9" column="0">
353
<widget class="QLabel" name="actualSampleSizeLabel">
354
<property name="text">
355
<string>Sample size (bits)</string>
359
<item row="14" column="0">
360
<widget class="QLabel" name="actualEndianLabel">
361
<property name="text">
362
<string>Endianess</string>
366
<item row="16" column="0" colspan="3">
367
<widget class="QLabel" name="label">
368
<property name="sizePolicy">
369
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
370
<horstretch>0</horstretch>
371
<verstretch>0</verstretch>
374
<property name="text">
375
<string>Note: an invalid codec 'audio/test' exists in order to allow an invalid format to be constructed, and therefore to trigger a 'nearest format' calculation.</string>
377
<property name="wordWrap">
378
<bool>true</bool>
382
<item row="2" column="0">
383
<widget class="QLabel" name="actualCodecLabel">
384
<property name="text">
385
<string>Codec</string>
389
<item row="2" column="2">
390
<widget class="QLineEdit" name="nearestCodec">
391
<property name="enabled">
392
<bool>false</bool>
396
<item row="2" column="1">
397
<widget class="QComboBox" name="codecsBox"/>
399
<item row="6" column="0">
400
<widget class="QLabel" name="actualSampleTypeLabel">
401
<property name="text">
402
<string>SampleType</string>
406
<item row="6" column="1">
407
<widget class="QComboBox" name="sampleTypesBox"/>
409
<item row="6" column="2">
410
<widget class="QLineEdit" name="nearestSampleType">
411
<property name="enabled">
412
<bool>false</bool>
418
<widget class="QWidget" name="tab">
419
<attribute name="title">
420
<string>All formats</string>
422
<layout class="QVBoxLayout" name="verticalLayout_2">
424
<widget class="QPushButton" name="populateTableButton">
425
<property name="text">
426
<string>Populate table</string>
431
<widget class="QTableWidget" name="allFormatsTable">
432
<property name="editTriggers">
433
<set>QAbstractItemView::NoEditTriggers</set>
435
<property name="dragDropOverwriteMode">
436
<bool>false</bool>
438
<property name="selectionMode">
439
<enum>QAbstractItemView::NoSelection</enum>
441
<property name="selectionBehavior">
442
<enum>QAbstractItemView::SelectItems</enum>
444
<property name="textElideMode">
445
<enum>Qt::ElideNone</enum>
447
<property name="sortingEnabled">
448
<bool>false</bool>
450
<property name="wordWrap">
451
<bool>false</bool>
453
<property name="cornerButtonEnabled">
454
<bool>false</bool>
456
<attribute name="horizontalHeaderHighlightSections">
457
<bool>false</bool>
459
<attribute name="verticalHeaderVisible">
460
<bool>false</bool>
462
<attribute name="verticalHeaderHighlightSections">
463
<bool>false</bool>
465
<attribute name="verticalHeaderVisible">
466
<bool>false</bool>
468
<attribute name="horizontalHeaderHighlightSections">
469
<bool>false</bool>
471
<attribute name="verticalHeaderHighlightSections">
472
<bool>false</bool>
475
<property name="text">
476
<string>Codec</string>
478
<property name="textAlignment">
479
<set>AlignHCenter|AlignVCenter|AlignCenter</set>
483
<property name="text">
484
<string>Frequency (Hz)</string>
486
<property name="textAlignment">
487
<set>AlignHCenter|AlignVCenter|AlignCenter</set>
491
<property name="text">
492
<string>Channels</string>
494
<property name="textAlignment">
495
<set>AlignHCenter|AlignVCenter|AlignCenter</set>
499
<property name="text">
500
<string>Sample type</string>
502
<property name="textAlignment">
503
<set>AlignHCenter|AlignVCenter|AlignCenter</set>
507
<property name="text">
508
<string>Sample size (bits)</string>
510
<property name="textAlignment">
511
<set>AlignHCenter|AlignVCenter|AlignCenter</set>
515
<property name="text">
516
<string>Endianness</string>
518
<property name="textAlignment">
519
<set>AlignHCenter|AlignVCenter|AlignCenter</set>
536
<widget class="QStatusBar" name="statusbar"/>
543
<div class="feedback t_button">
544
[+] Documentation Feedback</div>
554
<acronym title="Copyright">©</acronym> 2008-2010 Nokia Corporation and/or its
555
subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation
556
in Finland and/or other countries worldwide.</p>
558
All other trademarks are property of their respective owners. <a title="Privacy Policy"
559
href="http://qt.nokia.com/about/privacy-policy">Privacy Policy</a></p>
561
<div id="feedbackBox">
562
<div id="feedcloseX" class="feedclose t_button">X</div>
563
<form id="feedform" action="http://doc.qt.nokia.com/docFeedbck/feedback.php" method="get">
564
<p id="noteHead">Thank you for giving your feedback.</p> <div class="note"><p>Make sure it is related to this specific page. For more general bugs and
565
requests, please use the <a href="http://bugreports.qt.nokia.com/secure/Dashboard.jspa">Qt Bug Tracker</a>.</p></div>
566
<p><textarea id="feedbox" name="feedText" rows="5" cols="40"></textarea></p>
567
<p><input id="feedsubmit" class="feedclose" type="submit" name="feedback" /></p>
573
<script src="scripts/functions.js" type="text/javascript"></script>