QDesignerFormWindowInterface Class Reference |
Constant | Value | Description |
---|---|---|
QDesignerFormWindowInterface::EditFeature | 0x01 | Form editing |
QDesignerFormWindowInterface::GridFeature | 0x02 | Grid display and snap-to-grid facilities for editing |
QDesignerFormWindowInterface::TabOrderFeature | 0x04 | Tab order management |
QDesignerFormWindowInterface::DefaultFeature | EditFeature | GridFeature | Support for default features (form editing and grid) |
The Feature type is a typedef for QFlags<FeatureFlag>. It stores an OR combination of FeatureFlag values.
See also hasFeature().
Constructs a form window interface with the given parent and specified window flags.
Destroys the form window interface.
This signal is emitted whenever a widget on the form is about to become unmanaged. When this signal is emitted, the specified widget is still managed, and a widgetUnmanaged() signal will follow, indicating when it is no longer managed.
Returns the absolute location of the directory containing the form shown in the form window.
This signal is emitted whenever a widget is activated on the form. The activated widget is specified by widget.
Adds the resource file at the given path to those used by the form.
Returns details of the author or creator of the form currently being displayed in the window.
See also setAuthor().
This signal is emitted whenever a form is changed.
Clears the current selection in the form window.
Returns comments about the form currently being displayed in the window.
See also setComment().
Returns details of the contents of the form currently being displayed in the window.
See also setContents().
Returns the core form editor interface associated with this interface.
Returns the cursor interface used by the form window.
Emits the selectionChanged() signal.
Returns the export macro associated with the form currently being displayed in the window. The export macro is used when the form is compiled to create a widget plugin.
See also setExportMacro() and Creating Custom Widgets for Qt Designer.
This signal is emitted whenever a feature changes in the form. The new feature is specified by feature.
Returns a combination of the features provided by the form window associated with the interface. The value returned can be tested against the Feature enum values to determine which features are supported by the window.
See also setFeatures().
Returns the file name of the .ui file that describes the form currently being shown.
See also setFileName().
This signal is emitted whenever the file name of the form changes. The new file name is specified by fileName.
Returns the form window interface for the given widget.
This signal is emitted whenever the form's geometry changes.
See also selectionChanged().
Returns the grid spacing used by the form window.
See also setGrid().
Returns true if the form window offers the specified feature; otherwise returns false.
Returns a list of hints.
See also setIncludeHints().
Returns true if the form window is "dirty" (is modified but not saved); otherwise returns false.
See also setDirty().
Returns true if the specified widget is managed by the form window; otherwise returns false.
Fills in the default margin and spacing for the form's default layout in the margin and spacing variables specified.
See also setLayoutDefault().
Fills in the current margin and spacing for the form's layout in the margin and spacing variables specified.
See also setLayoutFunction().
Returns the main container widget for the form window.
See also setMainContainer().
This signal is emitted whenever the main container changes. The new container is specified by mainContainer.
Instructs the form window to manage the specified widget.
See also isManaged().
Returns the name of the function used to generate a pixmap for the form window.
See also setPixmapFunction().
Removes the resource file at the specified path from the list of those used by the form.
Returns a list of paths to resource files that are currently being used by the form window.
This signal is emitted whenever the list of resource files used by the form changes.
If select is true, the given widget is selected; otherwise the widget is deselected.
This signal is emitted whenever the selection in the form changes.
See also geometryChanged().
Sets the details for the author or creator of the form to the author specified.
See also author().
Sets the information about the form to the comment specified. This information should be a human-readable comment about the form.
See also comment().
Sets the form's contents using data obtained from the given device.
Data can be read from QFile objects or any other subclass of QIODevice.
See also contents().
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Sets the contents of the form using data read from the specified contents string.
If dirty is true, the form window is marked as dirty, meaning that it has been modified but not saved. If dirty is false, the form window is considered to be unmodified.
See also isDirty().
Sets the form window's export macro to exportMacro. The export macro is used when building a widget plugin to export the form's interface to other components.
See also exportMacro().
Enables the specified features for the form window.
See also features().
Sets the file name for the form to the given fileName.
See also fileName().
Sets the grid size for the form window to the point specified by grid. In this function, the coordinates in the QPoint are used to specify the dimensions of a rectangle in the grid.
See also grid().
Sets the include hints used by the form to the list specified by includeHints.
See also includeHints().
Sets the default margin and spacing for the form's layout.
See also layoutDefault().
Sets the margin and spacing for the form's layout.
See also layoutFunction().
Sets the main container widget on the form to the specified mainContainer.
See also mainContainer().
Sets the function used to generate the pixmap for the form window to the given pixmapFunction.
See also pixmapFunction().
Returns an interface to the tool with the given index.
Instructs the form window not to manage the specified widget.
See also aboutToUnmanageWidget() and widgetUnmanaged().
This signal is emitted whenever a widget on the form becomes managed. The newly managed widget is specified by widget.
This signal is emitted whenever a widget is removed from the form. The widget that was removed is specified by widget.
This signal is emitted whenever a widget on the form becomes unmanaged. The newly released widget is specified by widget.
Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. | Qt 4.0 | |
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD. | ||
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP ! |
Copyright © 2000-2012 - www.developpez.com