QDesignerFormWindowInterface *QDesignerFormWindowManagerInterface:: createFormWindow( QWidget * parent = nullptr, Qt::WindowFlags flags = Qt::WindowFlags())Ĭreates a form window with the given parent and the given window flags. Returns a pointer to Qt Designer's current QDesignerFormEditorInterface object. QDesignerFormEditorInterface *QDesignerFormWindowManagerInterface:: core() const void QDesignerFormWindowManagerInterface:: closeAllPreviews() void QDesignerFormWindowManagerInterface:: addFormWindow( QDesignerFormWindowInterface * formWindow)Īdds the given formWindow to the collection of windows that Qt Designer's form window manager maintains. A pointer to the currently active formWindow is passed as an argument. This signal is emitted when the contents of the currently active form window in Qt Designer's workspace changed. void QDesignerFormWindowManagerInterface:: activeFormWindowChanged( QDesignerFormWindowInterface * formWindow) See also setActiveFormWindow() and removeFormWindow(). Returns the currently active form window in Qt Designer's workspace. QDesignerFormWindowInterface *QDesignerFormWindowManagerInterface:: activeFormWindow() const Returns the action group specified by the enumeration value actionGroup. QActionGroup *QDesignerFormWindowManagerInterface:: actionGroup( QDesignerFormWindowManagerInterface::ActionGroup actionGroup) const Obsoletes the action accessors of Qt 4.X. Returns the action specified by the enumeration value action. QAction *QDesignerFormWindowManagerInterface:: action( QDesignerFormWindowManagerInterface::Action action) const QDesignerFormWindowManagerInterface:: ~QDesignerFormWindowManagerInterface()ĭestroys the interface for the form window manager. Member Function Documentation QDesignerFormWindowManagerInterface:: QDesignerFormWindowManagerInterface( QObject * parent = nullptr)Ĭonstructs an interface with the given parent for the form window manager. Specifies an action group of Qt Designer. enum QDesignerFormWindowManagerInterface:: ActionGroup QDesignerFormWindowManagerInterface::FormWindowSettingsDialogAction QDesignerFormWindowManagerInterface::DefaultPreviewAction QDesignerFormWindowManagerInterface::SimplifyLayoutAction QDesignerFormWindowManagerInterface::AdjustSizeAction QDesignerFormWindowManagerInterface::BreakLayoutAction QDesignerFormWindowManagerInterface::FormLayoutAction QDesignerFormWindowManagerInterface::GridLayoutAction QDesignerFormWindowManagerInterface::SplitVerticalAction QDesignerFormWindowManagerInterface::SplitHorizontalAction QDesignerFormWindowManagerInterface::VerticalLayoutAction QDesignerFormWindowManagerInterface::HorizontalLayoutAction ![]() QDesignerFormWindowManagerInterface::RedoAction QDesignerFormWindowManagerInterface::UndoAction ![]() QDesignerFormWindowManagerInterface::RaiseAction QDesignerFormWindowManagerInterface::LowerAction QDesignerFormWindowManagerInterface::SelectAllAction QDesignerFormWindowManagerInterface::DeleteAction QDesignerFormWindowManagerInterface::PasteAction QDesignerFormWindowManagerInterface::CopyAction QDesignerFormWindowManagerInterface::CutAction See also QDesignerFormEditorInterface and QDesignerFormWindowInterface. All the signals carry the form window in question as their parameter. ![]() All these functions return the original action, making it possible to propagate the function further after intervention.įinally, the interface provides three signals which are emitted when a form window is added, when the currently selected form window changes, or when a form window is removed, respectively. In addition, QDesignerFormWindowManagerInterface contains a collection of functions that enables you to intervene and control Qt Designer's form editing actions. The removeFormWindow() slot allows you to reduce the number of form windows the manager must maintain, and the setActiveFormWindow() slot allows you to change the form window focus in Qt Designer's workspace. It also provides the formWindowCount() function returning the number of form windows currently under the manager's control, the formWindow() function returning the form window associated with a given index, and the activeFormWindow() function returning the currently selected form window. The form window manager interface provides the createFormWindow() function that enables you to create a new form window which you can add to the collection of form windows that the manager maintains, using the addFormWindow() slot. You must subclass the QDesignerCustomWidgetInterface to expose your plugin to Qt Designer. When implementing a custom widget plugin, a pointer to Qt Designer's current QDesignerFormEditorInterface object ( formEditor in the example above) is provided by the QDesignerCustomWidgetInterface::initialize() function's parameter. Manager - >setActiveFormWindow(formWindow) Auto *manager = formEditor - >formWindowManager() Īuto *formWindow = manager - >formWindow( 0)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |