QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
21 #include <QVBoxLayout>
22 #include <QDialogButtonBox>
35 QVBoxLayout *vLayout =
new QVBoxLayout();
39 mWidget = metadata->createSymbolWidget(
nullptr );
40 vLayout->addWidget( mWidget );
44 mButtonBox =
new QDialogButtonBox( QDialogButtonBox::Cancel | QDialogButtonBox::Ok, Qt::Horizontal );
45 connect( mButtonBox, &QDialogButtonBox::accepted,
this, &QDialog::accept );
46 connect( mButtonBox, &QDialogButtonBox::rejected,
this, &QDialog::reject );
47 vLayout->addStretch();
48 vLayout->addWidget( mButtonBox );
50 setWindowTitle( tr(
"3D Symbol" ) );
55 return mWidget ? mWidget->
symbol() :
nullptr;
Qgs3DSymbolDialog(const QgsAbstract3DSymbol *symbol, QWidget *parent=nullptr)
Constructor for Qgs3DSymbolDialog, initially showing the specified symbol.
QgsAbstract3DSymbol * symbol() const
Returns a new instance of the symbol defined by the dialog.
static Qgs3DSymbolRegistry * symbol3DRegistry()
Returns registry of available 3D symbols.
static void enableAutoGeometryRestore(QWidget *widget, const QString &key=QString())
Register the widget to allow its position to be automatically saved and restored when open and closed...
3 Abstract base class for 3D symbols that are used by VectorLayer3DRenderer objects.
virtual QString type() const =0
Returns identifier of symbol type. Each 3D symbol implementation should return a different type.
QDialogButtonBox * buttonBox() const
Returns a reference to the dialog's button box.