Class: QgsSublayersDialog

class qgis.gui.QgsSublayersDialog(providerType: QgsSublayersDialog.ProviderType, name: str, parent: QWidget = None, fl: Union[Qt.WindowFlags, Qt.WindowType] = 0)

Bases: PyQt5.QtWidgets.QDialog

Constructor for QgsSublayersDialog

Parameters
Gdal = 1
class LayerDefinition

Bases: sip.wrapper

QgsSublayersDialog.LayerDefinition(QgsSublayersDialog.LayerDefinition)

count
description
layerId
layerName
type
Ogr = 0
class ProviderType

Bases: int

Vsifile = 2
actionEvent()
addToGroupCheckbox(self) → bool

If we should add layers in a group

New in version 3.0.

Return type

bool

changeEvent()
childEvent()
closeEvent()
connectNotify()
contextMenuEvent()
countColumn(self) → int

Returns column with count or -1

New in version 3.0.

Return type

int

create()
customEvent()
destroy()
disconnectNotify()
dragEnterEvent()
dragLeaveEvent()
dragMoveEvent()
dropEvent()
enterEvent()
event()
eventFilter()
exec(self) → int
Return type

int

focusInEvent()
focusNextChild()
focusNextPrevChild()
focusOutEvent()
focusPreviousChild()
hideEvent()
initPainter()
inputMethodEvent()
isSignalConnected()
keyPressEvent()
keyReleaseEvent()
leaveEvent()
metric()
mouseDoubleClickEvent()
mouseMoveEvent()
mousePressEvent()
mouseReleaseEvent()
moveEvent()
nativeEvent()
paintEvent()
populateLayerTable(self, list: Iterable[QgsSublayersDialog.LayerDefinition])

Populate the table with layers

New in version 2.16.

Parameters

list (Iterable[QgsSublayersDialog.LayerDefinition]) –

receivers()
resizeEvent()
selection(self) → List[QgsSublayersDialog.LayerDefinition]

Returns list of selected layers

New in version 2.16.

Return type

List[QgsSublayersDialog.LayerDefinition]

sender()
senderSignalIndex()
setShowAddToGroupCheckbox(self, showAddToGroupCheckbox: bool)

Set if we should display the add to group checkbox

New in version 3.0.

Parameters

showAddToGroupCheckbox (bool) –

sharedPainter()
showAddToGroupCheckbox(self) → bool

If we should display the add to group checkbox

New in version 3.0.

Return type

bool

showEvent()
tabletEvent()
timerEvent()
updateMicroFocus()
wheelEvent()