Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
abstractoptionspage.qdoc
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
3
4/*!
5 \class QDesignerOptionsPageInterface
6
7 \brief The QDesignerOptionsPageInterface provides an interface for integrating \QD's
8 options pages into IDE option dialogs.
9
10 Plugin-based IDE's typically have options dialogs for which the plugins can provide
11 widgets to be shown for example in a tab-widget. The widgets are created on
12 demand when the user activates a page.
13
14 In order to do this for \QD, a list of QDesignerOptionsPageInterface objects
15 can be obtained from QDesignerFormEditorInterface and registered with the option
16 dialog. When the respective tab is activated, createPage() is invoked to
17 create the widget. To apply the modified settings, apply() is called.
18 finish() is called when the dialog closes.
19
20 \sa QDesignerFormEditorInterface::optionsPages(), QDesignerFormEditorInterface::setOptionsPages()
21
22 \internal
23 \inmodule QtDesigner
24 \since 5.0
25*/
26
27/*!
28 \fn QDesignerOptionsPageInterface::~QDesignerOptionsPageInterface()
29
30 Destroys the QDesignerOptionsPageInterface object.
31*/
32
33/*!
34 \fn QString QDesignerOptionsPageInterface::name() const
35
36 Returns the name of the page, which can for example be used as a tab title.
37*/
38
39/*!
40 \fn QWidget *QDesignerOptionsPageInterface::createPage(QWidget *parent)
41
42 Creates the widget of the page parented on \a parent.
43*/
44
45/*!
46 \fn QDesignerOptionsPageInterface::apply()
47
48 This function should be called when the user clicks \gui{OK} or \gui{Apply} to
49 apply the modified settings.
50*/
51
52/*!
53 \fn QDesignerOptionsPageInterface::finish()
54
55 This function should be called when the option dialog is closed.
56*/