[Previous: Creating Main Windows in Qt Designer] [Contents] [Next: Using Stylesheets with Qt Designer] Editing Resources with Qt Designer
|
![]() | Resource Files Within the resource browser, you can open existing resource files or create new ones. Click the Edit Resources button |
Once a resource file is loaded, you can create or remove entries in it using the given Add Files and Remove Files
buttons, and specify resources (e.g., images) using the Add Files button
. Note that these resources must reside within the current resource file's directory or one of its subdirectories.
![]() | Editing Resource Files Press the You can remove resources by selecting the corresponding entry in the resource editor, and pressing the |
Once 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.
![]() | Using Resources When changing properties with values that may be defined within a resource file, Qt Designer's property editor allows you to specify a resource in addition to the option of selecting a source file in the ordinary way. |
![]() | Selecting a Resource You can open the resource selector by clicking Choose Resource... to add resources any time during the design process. |
[Previous: Creating Main Windows in Qt Designer] [Contents] [Next: Using Stylesheets with Qt Designer]
Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) | Trademarks | Qt 4.5.2 |
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |