Font Sampler Example▲
Sélectionnez
&
lt;?xml version=
"1.0"
encoding=
"UTF-8"
?&
gt;
&
lt;ui version=
"4.0"
&
gt;
&
lt;class
&
gt;MainWindowBase&
lt;/
class
&
gt;
&
lt;widget class
=
"QMainWindow"
name=
"MainWindowBase"
&
gt;
&
lt;property name=
"geometry"
&
gt;
&
lt;rect&
gt;
&
lt;x&
gt;0
&
lt;/
x&
gt;
&
lt;y&
gt;0
&
lt;/
y&
gt;
&
lt;width&
gt;800
&
lt;/
width&
gt;
&
lt;height&
gt;345
&
lt;/
height&
gt;
&
lt;/
rect&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"windowTitle"
&
gt;
&
lt;string&
gt;Font Sampler&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;widget class
=
"QWidget"
name=
"centralwidget"
&
gt;
&
lt;layout class
=
"QVBoxLayout"
&
gt;
&
lt;property name=
"spacing"
&
gt;
&
lt;number&
gt;6
&
lt;/
number&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"margin"
&
gt;
&
lt;number&
gt;9
&
lt;/
number&
gt;
&
lt;/
property&
gt;
&
lt;item&
gt;
&
lt;widget class
=
"QTextEdit"
name=
"textEdit"
/&
gt;
&
lt;/
item&
gt;
&
lt;/
layout&
gt;
&
lt;/
widget&
gt;
&
lt;widget class
=
"QMenuBar"
name=
"menubar"
&
gt;
&
lt;property name=
"geometry"
&
gt;
&
lt;rect&
gt;
&
lt;x&
gt;0
&
lt;/
x&
gt;
&
lt;y&
gt;0
&
lt;/
y&
gt;
&
lt;width&
gt;800
&
lt;/
width&
gt;
&
lt;height&
gt;18
&
lt;/
height&
gt;
&
lt;/
rect&
gt;
&
lt;/
property&
gt;
&
lt;widget class
=
"QMenu"
name=
"menu_Selection"
&
gt;
&
lt;property name=
"title"
&
gt;
&
lt;string&
gt;&
amp;amp;Selection&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;addaction name=
"markAction"
/&
gt;
&
lt;addaction name=
"unmarkAction"
/&
gt;
&
lt;addaction name=
"clearAction"
/&
gt;
&
lt;/
widget&
gt;
&
lt;widget class
=
"QMenu"
name=
"menu_File"
&
gt;
&
lt;property name=
"title"
&
gt;
&
lt;string&
gt;&
amp;amp;File&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;addaction name=
"printPreviewAction"
/&
gt;
&
lt;addaction name=
"printAction"
/&
gt;
&
lt;addaction name=
"quitAction"
/&
gt;
&
lt;/
widget&
gt;
&
lt;addaction name=
"menu_File"
/&
gt;
&
lt;addaction name=
"menu_Selection"
/&
gt;
&
lt;/
widget&
gt;
&
lt;widget class
=
"QStatusBar"
name=
"statusbar"
/&
gt;
&
lt;widget class
=
"QDockWidget"
name=
"dockWidget"
&
gt;
&
lt;property name=
"features"
&
gt;
&
lt;set&
gt;QDockWidget::
DockWidgetFloatable|
QDockWidget::
DockWidgetMovable&
lt;/
set&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"windowTitle"
&
gt;
&
lt;string&
gt;Available Fonts&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;attribute name=
"dockWidgetArea"
&
gt;
&
lt;number&
gt;1
&
lt;/
number&
gt;
&
lt;/
attribute&
gt;
&
lt;widget class
=
"QWidget"
name=
"dockWidgetContents"
&
gt;
&
lt;layout class
=
"QVBoxLayout"
&
gt;
&
lt;property name=
"spacing"
&
gt;
&
lt;number&
gt;6
&
lt;/
number&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"margin"
&
gt;
&
lt;number&
gt;9
&
lt;/
number&
gt;
&
lt;/
property&
gt;
&
lt;item&
gt;
&
lt;widget class
=
"QTreeWidget"
name=
"fontTree"
&
gt;
&
lt;property name=
"selectionMode"
&
gt;
&
lt;enum
&
gt;QAbstractItemView::
ExtendedSelection&
lt;/
enum
&
gt;
&
lt;/
property&
gt;
&
lt;column&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string notr=
"true"
&
gt;1
&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;/
column&
gt;
&
lt;/
widget&
gt;
&
lt;/
item&
gt;
&
lt;/
layout&
gt;
&
lt;/
widget&
gt;
&
lt;/
widget&
gt;
&
lt;action name=
"printAction"
&
gt;
&
lt;property name=
"enabled"
&
gt;
&
lt;bool
&
gt;false
&
lt;/
bool
&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;&
amp;amp;Print...&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"shortcut"
&
gt;
&
lt;string&
gt;Ctrl+
P&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;/
action&
gt;
&
lt;action name=
"quitAction"
&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;E&
amp;amp;xit&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"shortcut"
&
gt;
&
lt;string&
gt;Ctrl+
Q&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;/
action&
gt;
&
lt;action name=
"markAction"
&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;&
amp;amp;Mark&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"shortcut"
&
gt;
&
lt;string&
gt;Ctrl+
M&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;/
action&
gt;
&
lt;action name=
"unmarkAction"
&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;&
amp;amp;Unmark&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"shortcut"
&
gt;
&
lt;string&
gt;Ctrl+
U&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;/
action&
gt;
&
lt;action name=
"clearAction"
&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;&
amp;amp;Clear&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;/
action&
gt;
&
lt;action name=
"printPreviewAction"
&
gt;
&
lt;property name=
"enabled"
&
gt;
&
lt;bool
&
gt;false
&
lt;/
bool
&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;Print Preview...&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;/
action&
gt;
&
lt;/
widget&
gt;
&
lt;resources/&
gt;
&
lt;connections/&
gt;
&
lt;/
ui&
gt;