Редактирование: Qt:Документация 4.3.2/designer-resources

Материал из Wiki.crossplatform.ru

Перейти к: навигация, поиск
Внимание: Вы не представились системе. Ваш IP-адрес будет записан в историю изменений этой страницы.
Правка может быть отменена. Пожалуйста, просмотрите сравнение версий, чтобы убедиться, что это именно те изменения, которые вас интересуют, и нажмите «Записать страницу», чтобы изменения вступили в силу.
Текущая версия Ваш текст
Строка 7: Строка 7:
''Qt Designer'' fully supports the [[Qt:Документация 4.3.2/resources | Qt Resource System]], allowing resources to be specified alongside forms as they are designed. To help designers and developers manage the resources that are needed by applications, ''Qt Designer'''s resource editor allows resources to be defined on a per-form basis.
''Qt Designer'' fully supports the [[Qt:Документация 4.3.2/resources | Qt Resource System]], allowing resources to be specified alongside forms as they are designed. To help designers and developers manage the resources that are needed by applications, ''Qt Designer'''s resource editor allows resources to be defined on a per-form basis.
-
<div id="defining-a-resource-file"></div>
+
 
==Defining a Resource File==
==Defining a Resource File==
To specify a resource file you must enable the resorce editor by opening the '''Tools''' menu, and switching on the '''Resource Editor''' option.
To specify a resource file you must enable the resorce editor by opening the '''Tools''' menu, and switching on the '''Resource Editor''' option.
-
<div id="resourcefiles"></div>
+
 
{|  align="center" cellpadding="2" cellspacing="1" border="0"
{|  align="center" cellpadding="2" cellspacing="1" border="0"
Строка 21: Строка 21:
Once a resource file is loaded, you can create or remove entries in the file using the provided '''+''' and '''-''' buttons, and specify resources (for example images) using the '''Add Files''' button. Note that these resources must reside within the current resource file's directory or one of its subdirectories.
Once a resource file is loaded, you can create or remove entries in the file using the provided '''+''' and '''-''' buttons, and specify resources (for example images) using the '''Add Files''' button. Note that these resources must reside within the current resource file's directory or one of its subdirectories.
-
<div id="editresource"></div>
+
 
{|  align="center" cellpadding="2" cellspacing="1" border="0"
{|  align="center" cellpadding="2" cellspacing="1" border="0"
Строка 32: Строка 32:
|}
|}
-
<div id="using-the-resources"></div>
+
 
==Using the Resources==
==Using the Resources==
When the resources are defined you can use them actively when composing your form. For example, you might want to create a tool button using an icon specified in the resource file.
When the resources are defined you can use them actively when composing your form. For example, you might want to create a tool button using an icon specified in the resource file.
-
<div id="usingresources"></div>
+
 
{|  align="center" cellpadding="2" cellspacing="1" border="0"
{|  align="center" cellpadding="2" cellspacing="1" border="0"
Строка 46: Строка 46:
To quickly assign icon pixmaps to actions or pixmap properties, you may drag the pixmap from the resource editor to the action editor, or to the pixmap property in the property editor.
To quickly assign icon pixmaps to actions or pixmap properties, you may drag the pixmap from the resource editor to the action editor, or to the pixmap property in the property editor.
-
 
|}
|}

Пожалуйста, обратите внимание, что все ваши добавления могут быть отредактированы или удалены другими участниками. Если вы не хотите, чтобы кто-либо изменял ваши тексты, не помещайте их сюда.
Вы также подтверждаете, что являетесь автором вносимых дополнений, или скопировали их из источника, допускающего свободное распространение и изменение своего содержимого (см. Wiki.crossplatform.ru:Авторское право). НЕ РАЗМЕЩАЙТЕ БЕЗ РАЗРЕШЕНИЯ ОХРАНЯЕМЫЕ АВТОРСКИМ ПРАВОМ МАТЕРИАЛЫ!


Шаблоны, использованные на текущей версии страницы: