Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Classes principales  ·  Annotées  ·  Classes groupées  ·  Modules  ·  Fonctions  · 

QDesignerFormEditorInterface Class Reference
[QtDesigner module]

The QDesignerFormEditorInterface class allows you to access Qt Designer's various components. More...

 #include <QDesignerFormEditorInterface>

Inherits QObject.

Public Functions

  • 29 public functions inherited from QObject

Additional Inherited Members

  • 1 property inherited from QObject
  • 1 public slot inherited from QObject
  • 1 signal inherited from QObject
  • 5 static public members inherited from QObject
  • 7 protected functions inherited from QObject

Detailed Description

The QDesignerFormEditorInterface class allows you to access Qt Designer's various components.

Qt Designer's current QDesignerFormEditorInterface object holds information about all Qt Designer's components: The action editor, the object inspector, the property editor, the widget box, and the extension and form window managers. QDesignerFormEditorInterface contains a collection of functions that provides interfaces to all these components. They are typically used to query (and manipulate) the respective component. For example:

 QDesignerObjectInspectorInterface *objectInspector = 0;
 objectInspector = formEditor->objectInspector();

 QDesignerFormWindowManagerInterface *manager = 0;
 manager = formEditor->formWindowManager();

 objectInspector->setFormWindow(manager->formWindow(0));

QDesignerFormEditorInterface is not intended to be instantiated directly. A pointer to Qt Designer's current QDesignerFormEditorInterface object (formEditor in the example above) is provided by the QDesignerCustomWidgetInterface::initialize() function's parameter. When implementing a custom widget plugin, you must subclass the QDesignerCustomWidgetInterface to expose your plugin to Qt Designer.

QDesignerFormEditorInterface also provides functions that can set the action editor, property editor, object inspector and widget box. These are only useful if you want to provide your own custom components.

Finally, QDesignerFormEditorInterface provides the topLevel() function that returns Qt Designer's top-level widget.

See also QDesignerCustomWidgetInterface.


Member Function Documentation

QDesignerFormEditorInterface::QDesignerFormEditorInterface ( QObject * parent = 0 )

Constructs a QDesignerFormEditorInterface object with the given parent.

QDesignerFormEditorInterface::~QDesignerFormEditorInterface ()   [virtual]

Destroys the QDesignerFormEditorInterface object.

QDesignerActionEditorInterface * QDesignerFormEditorInterface::actionEditor () const

Returns an interface to Qt Designer's action editor.

See also setActionEditor().

QExtensionManager * QDesignerFormEditorInterface::extensionManager () const

Returns an interface to Qt Designer's extension manager.

QDesignerFormWindowManagerInterface * QDesignerFormEditorInterface::formWindowManager () const

Returns an interface to Qt Designer's form window manager.

QDesignerObjectInspectorInterface * QDesignerFormEditorInterface::objectInspector () const

Returns an interface to Qt Designer's object inspector.

See also setObjectInspector().

QDesignerPropertyEditorInterface * QDesignerFormEditorInterface::propertyEditor () const

Returns an interface to Qt Designer's property editor.

See also setPropertyEditor().

void QDesignerFormEditorInterface::setActionEditor ( QDesignerActionEditorInterface * actionEditor )

Sets Qt Designer's action editor to be the specified actionEditor.

See also actionEditor().

void QDesignerFormEditorInterface::setObjectInspector ( QDesignerObjectInspectorInterface * objectInspector )

Sets Qt Designer's object inspector to be the specified objectInspector.

See also objectInspector().

void QDesignerFormEditorInterface::setPropertyEditor ( QDesignerPropertyEditorInterface * propertyEditor )

Sets Qt Designer's property editor to be the specified propertyEditor.

See also propertyEditor().

void QDesignerFormEditorInterface::setWidgetBox ( QDesignerWidgetBoxInterface * widgetBox )

Sets Qt Designer's widget box to be the specified widgetBox.

See also widgetBox().

QWidget * QDesignerFormEditorInterface::topLevel () const

Returns Qt Designer's top-level widget.

QDesignerWidgetBoxInterface * QDesignerFormEditorInterface::widgetBox () const

Returns an interface to Qt Designer's widget box.

See also setWidgetBox().

Publicité

Best Of

Actualités les plus lues

Semaine
Mois
Année
  1. « Quelque chose ne va vraiment pas avec les développeurs "modernes" », un développeur à "l'ancienne" critique la multiplication des bibliothèques 64
  2. Apercevoir la troisième dimension ou l'utilisation multithreadée d'OpenGL dans Qt, un article des Qt Quarterly traduit par Guillaume Belz 0
  3. Les développeurs ignorent-ils trop les failles découvertes dans leur code ? Prenez-vous en compte les remarques des autres ? 17
  4. BlackBerry 10 : premières images du prochain OS de RIM qui devrait intégrer des widgets et des tuiles inspirées de Windows Phone 0
  5. Quelles nouveautés de C++11 Visual C++ doit-il rapidement intégrer ? Donnez-nous votre avis 10
  6. Adieu qmake, bienvenue qbs : Qt Building Suite, un outil déclaratif et extensible pour la compilation de projets Qt 17
  7. La rubrique Qt a besoin de vous ! 1
Page suivante

Le Qt Developer Network au hasard

Logo

Comment fermer une application

Le Qt Developer Network est un réseau de développeurs Qt anglophone, où ils peuvent partager leur expérience sur le framework. Lire l'article.

Communauté

Ressources

Liens utiles

Contact

  • Vous souhaitez rejoindre la rédaction ou proposer un tutoriel, une traduction, une question... ? Postez dans le forum Contribuez ou contactez-nous par MP ou par email (voir en bas de page).

Qt dans le magazine

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.2
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 !
 
 
 
 
Partenaires

Hébergement Web