Editing Resources with Qt DesignerQt Designer fully supports the Qt Resource System, enabling resources to be specified together with forms as they are designed. To aid designers and developers manage resources for their applications, Qt Designer's resource editor allows resources to be defined on a per-form basis. In other words, each form can have a separate resource file. Defining a Resource FileTo specify a resource file you must enable the resource editor by opening the Tools menu, and switching on the Resource Browser option.
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.
Using the ResourcesOnce 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.
[Previous: Creating Main Windows in Qt Designer] [Next: Using Stylesheets with Qt Designer] © 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide. All other trademarks are property of their respective owners. Privacy Policy Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia. Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. |