QTableWidget
Creates and item-based table view.
This class is a JS wrapper around Qt's QTableWidget class
Example
const { QTableWidget, QMainWindow, QTableWidgetItem } = require("@nodegui/nodegui");
const win = new QMainWindow();
const table = new QTableWidget(2, 3);
table.setHorizontalHeaderLabels(['first', 'second', 'third']);
const cell00 = new QTableWidgetItem('C00');
const cell01 = new QTableWidgetItem('C01');
const cell10 = new QTableWidgetItem('C10');
const cell11 = new QTableWidgetItem('C11');
table.setItem(0, 0, cell00);
table.setItem(0, 1, cell01);
table.setItem(1, 0, cell10);
table.setItem(1, 1, cell11);
win.setCentralWidget(table);
win.show();
(global as any).win = win;
Hierarchy
↳ QTableView‹QTableWidgetSignals›
↳ QTableWidget
Index
Constructors
Properties
Methods
- _id
- acceptDrops
- accessibleDescription
- accessibleName
- activateWindow
- addAction
- addEventListener
- adjustSize
- alternatingRowColors
- autoFillBackground
- autoScrollMargin
- baseSize
- cellWidget
- childAt
- children
- childrenRect
- clear
- clearContents
- clearFocus
- clearMask
- clearSelection
- clearSpans
- close
- closePersistentEditor
- colorCount
- column
- columnAt
- columnCount
- columnSpan
- columnViewportPosition
- columnWidth
- contentsRect
- contextMenuPolicy
- currentColumn
- currentIndex
- currentItem
- currentRow
- defaultDropAction
- delete
- deleteLater
- depth
- devicePixelRatio
- devicePixelRatioF
- dragDropMode
- dragDropOverwriteMode
- dragEnabled
- dumpObjectInfo
- dumpObjectTree
- edit
- editItem
- editTriggers
- ensurePolished
- eventProcessed
- findItems
- focusProxy
- focusWidget
- font
- frameGeometry
- frameRect
- frameShadow
- frameShape
- frameSize
- frameStyle
- frameWidth
- geometry
- getFlexNode
- grab
- grabKeyboard
- grabMouse
- gridStyle
- hasAutoScroll
- hasFocus
- hasHeightForWidth
- hasMouseTracking
- hasTabletTracking
- height
- heightForWidth
- heightMM
- hide
- hideColumn
- hideRow
- horizontalHeader
- horizontalScrollBar
- horizontalScrollMode
- iconSize
- indexAt
- indexWidget
- inherits
- inputMethodHints
- insertColumn
- insertRow
- isActiveWindow
- isAncestorOf
- isColumnHidden
- isCornerButtonEnabled
- isEnabled
- isEnabledTo
- isFullScreen
- isHidden
- isMaximized
- isMinimized
- isModal
- isPersistentEditorOpen
- isRowHidden
- isSortingEnabled
- isVisible
- isVisibleTo
- isWindow
- isWindowModified
- item
- itemAt
- keyboardSearch
- killTimer
- layout
- lineWidth
- logicalDpiX
- logicalDpiY
- lower
- mapFrom
- mapFromGlobal
- mapFromParent
- mapTo
- mapToGlobal
- mapToParent
- maximumHeight
- maximumSize
- maximumViewportSize
- maximumWidth
- midLineWidth
- minimumHeight
- minimumSize
- minimumSizeHint
- minimumWidth
- move
- nativeParentWidget
- nextInFocusChain
- normalGeometry
- objectName
- openPersistentEditor
- paintingActive
- parent
- parentWidget
- physicalDpiX
- physicalDpiY
- pos
- previousInFocusChain
- property
- raise
- rect
- releaseKeyboard
- releaseMouse
- releaseShortcut
- removeAction
- removeCellWidget
- removeColumn
- removeEventListener
- removeRow
- repaint
- repolish
- reset
- resetHorizontalScrollMode
- resetVerticalScrollMode
- resize
- resizeColumnToContents
- resizeColumnsToContents
- resizeRowToContents
- resizeRowsToContents
- rootIndex
- row
- rowAt
- rowCount
- rowHeight
- rowSpan
- rowViewportPosition
- scrollTo
- scrollToBottom
- scrollToItem
- scrollToTop
- selectAll
- selectColumn
- selectRow
- selectedRanges
- selectionBehavior
- selectionMode
- selectionModel
- setAcceptDrops
- setAccessibleDescription
- setAccessibleName
- setAlternatingRowColors
- setAttribute
- setAutoFillBackground
- setAutoScroll
- setAutoScrollMargin
- setBaseSize
- setCellWidget
- setColumnCount
- setColumnHidden
- setColumnWidth
- setContentsMargins
- setContextMenuPolicy
- setCornerButtonEnabled
- setCurrentCell
- setCurrentIndex
- setCurrentItem
- setCursor
- setDefaultDropAction
- setDisabled
- setDragDropMode
- setDragDropOverwriteMode
- setDragEnabled
- setDropIndicatorShown
- setEditTriggers
- setEnabled
- setEventProcessed
- setFixedHeight
- setFixedSize
- setFixedWidth
- setFlexNodeSizeControlled
- setFocus
- setFocusPolicy
- setFocusProxy
- setFont
- setFrameRect
- setFrameShadow
- setFrameShape
- setFrameStyle
- setGeometry
- setGraphicsEffect
- setGridStyle
- setHidden
- setHorizontalHeaderItem
- setHorizontalHeaderLabels
- setHorizontalScrollBar
- setHorizontalScrollBarPolicy
- setHorizontalScrollMode
- setIconSize
- setIndexWidget
- setInlineStyle
- setInputMethodHints
- setItem
- setItemDelegate
- setItemDelegateForColumn
- setItemDelegateForRow
- setLayout
- setLineWidth
- setMaximumHeight
- setMaximumSize
- setMaximumWidth
- setMidLineWidth
- setMinimumHeight
- setMinimumSize
- setMinimumWidth
- setModel
- setMouseTracking
- setObjectName
- setParent
- setProperty
- setRootIndex
- setRowCount
- setRowHeight
- setRowHidden
- setSelectionBehavior
- setSelectionMode
- setShortcutAutoRepeat
- setShortcutEnabled
- setShowGrid
- setSizeIncrement
- setSizePolicy
- setSortingEnabled
- setSpan
- setStatusTip
- setStyleSheet
- setTabKeyNavigation
- setTabletTracking
- setTextElideMode
- setToolTip
- setToolTipDuration
- setUpdatesEnabled
- setVerticalHeaderItem
- setVerticalHeaderLabels
- setVerticalScrollBar
- setVerticalScrollBarPolicy
- setVerticalScrollMode
- setViewport
- setVisible
- setWhatsThis
- setWindowFilePath
- setWindowFlag
- setWindowIcon
- setWindowModified
- setWindowOpacity
- setWindowRole
- setWindowState
- setWindowTitle
- setWordWrap
- show
- showColumn
- showDropIndicator
- showFullScreen
- showGrid
- showMaximized
- showMinimized
- showNormal
- showRow
- size
- sizeHint
- sizeHintForIndex
- sizeIncrement
- sortByColumn
- sortItems
- stackUnder
- startTimer
- statusTip
- style
- styleSheet
- tabKeyNavigation
- takeItem
- testAttribute
- textElideMode
- toolTip
- toolTipDuration
- underMouse
- unsetCursor
- unsetLayoutDirection
- unsetLocale
- update
- updateGeometry
- updateMicroFocus
- updatesEnabled
- verticalHeader
- verticalScrollBar
- verticalScrollMode
- viewport
- visualColumn
- visualItemRect
- visualRect
- visualRow
- whatsThis
- width
- widthMM
- winId
- window
- windowFilePath
- windowHandle
- windowIcon
- windowOpacity
- windowRole
- windowState
- windowTitle
- wordWrap
- x
- y
Constructors
constructor
+ new QTableWidget(rowsOrNativeOrParent
: QWidget | NativeElement | number, columns?
: number, parent?
: QWidget): QTableWidget
Overrides QTableView.constructor
Parameters:
Name | Type |
---|---|
rowsOrNativeOrParent | QWidget | NativeElement | number |
columns? | number |
parent? | QWidget |
Returns: QTableWidget
Properties
_rawInlineStyle
• _rawInlineStyle: string
Inherited from QMenu._rawInlineStyle
items
• items: Set‹NativeElement | Component›
native
• native: NativeElement | null
Inherited from Component.native
type
• type: string
Methods
_id
▸ _id(): number
Get an ID identifying the underlying C++ object.
This can be useful when debugging memory problems with help from
setLogCreateQObject()
and setLogDestroyQObject()
. The number is
hash of the memory address of the C++ object.
Returns: number
a unique number which is valid for the lifetime of the C++ object.
acceptDrops
▸ acceptDrops(): boolean
Inherited from QMenu.acceptDrops
Returns: boolean
accessibleDescription
▸ accessibleDescription(): string
Inherited from QMenu.accessibleDescription
Returns: string
accessibleName
▸ accessibleName(): string
Inherited from QMenu.accessibleName
Returns: string
activateWindow
▸ activateWindow(): void
Inherited from QMenu.activateWindow
Returns: void
addAction
▸ addAction(action
: QAction | string): QAction
Inherited from QMenu.addAction
Parameters:
Name | Type |
---|---|
action | QAction | string |
Returns: QAction
addEventListener
▸ addEventListener‹SignalType›(signalType
: SignalType, callback
: QTableWidgetSignals[SignalType], options?
: EventListenerOptions): void
Inherited from EventWidget.addEventListener
Type parameters:
▪ SignalType: keyof QTableWidgetSignals
Parameters:
Name | Type | Description |
---|---|---|
signalType | SignalType | SignalType is a signal from the widgets signals interface. |
callback | QTableWidgetSignals[SignalType] | Corresponding callback for the signal as mentioned in the widget's signal interface |
options? | EventListenerOptions | Extra optional options controlling how this event listener is added. |
Returns: void
void
For example in the case of QPushButton:
const button = new QPushButton();
button.addEventListener('clicked',(checked)=>console.log("clicked"));
// here clicked is a value from QPushButtonSignals interface
▸ addEventListener(eventType
: WidgetEventTypes, callback
: function, options?
: EventListenerOptions): void
Inherited from EventWidget.addEventListener
Parameters:
▪ eventType: WidgetEventTypes
▪ callback: function
▸ (event?
: NativeRawPointer‹"QEvent"›): void
Parameters:
Name | Type |
---|---|
event? | NativeRawPointer‹"QEvent"› |
▪Optional
options: EventListenerOptions
Extra optional options controlling how this event listener is added.
For example in the case of QPushButton:
const button = new QPushButton();
button.addEventListener(WidgetEventTypes.HoverEnter,()=>console.log("hovered"));
Returns: void
adjustSize
▸ adjustSize(): void
Inherited from QMenu.adjustSize
Returns: void
alternatingRowColors
▸ alternatingRowColors(): boolean
Inherited from QAbstractItemView.alternatingRowColors
Returns: boolean
autoFillBackground
▸ autoFillBackground(): boolean
Inherited from QMenu.autoFillBackground
Returns: boolean
autoScrollMargin
▸ autoScrollMargin(): number
Inherited from QAbstractItemView.autoScrollMargin
Returns: number
baseSize
▸ baseSize(): QSize
Returns: QSize
cellWidget
▸ cellWidget(row
: number, column
: number): QWidget
Parameters:
Name | Type | Default |
---|---|---|
row | number | 0 |
column | number | 0 |
Returns: QWidget
childAt
▸ childAt(x
: number, y
: number): QWidget
Parameters:
Name | Type |
---|---|
x | number |
y | number |
Returns: QWidget
children
▸ children(): QObject[]
Inherited from QObject.children
Returns: QObject[]
childrenRect
▸ childrenRect(): QRect
Inherited from QMenu.childrenRect
Returns: QRect
clear
▸ clear(): void
Returns: void
clearContents
▸ clearContents(): void
Returns: void
clearFocus
▸ clearFocus(): void
Inherited from QMenu.clearFocus
Returns: void
clearMask
▸ clearMask(): void
Inherited from QMenu.clearMask
Returns: void
clearSelection
▸ clearSelection(): void
Inherited from QAbstractItemView.clearSelection
Returns: void
clearSpans
▸ clearSpans(): void
Inherited from QTableView.clearSpans
Returns: void
close
▸ close(): boolean
Returns: boolean
closePersistentEditor
▸ closePersistentEditor(itemOrIndex
: QTableWidgetItem | QModelIndex): void
Overrides QAbstractItemView.closePersistentEditor
Parameters:
Name | Type |
---|---|
itemOrIndex | QTableWidgetItem | QModelIndex |
Returns: void
colorCount
▸ colorCount(): number
Inherited from QMenu.colorCount
Returns: number
column
▸ column(item
: QTableWidgetItem): number
Parameters:
Name | Type |
---|---|
item | QTableWidgetItem |
Returns: number
columnAt
▸ columnAt(x
: number): number
Inherited from QTableView.columnAt
Parameters:
Name | Type |
---|---|
x | number |
Returns: number
columnCount
▸ columnCount(): number
Returns: number
columnSpan
▸ columnSpan(row
: number, column
: number): number
Inherited from QTableView.columnSpan
Parameters:
Name | Type |
---|---|
row | number |
column | number |
Returns: number
columnViewportPosition
▸ columnViewportPosition(column
: number): number
Inherited from QTableView.columnViewportPosition
Parameters:
Name | Type |
---|---|
column | number |
Returns: number
columnWidth
▸ columnWidth(column
: number): number
Inherited from QTableView.columnWidth
Parameters:
Name | Type |
---|---|
column | number |
Returns: number
contentsRect
▸ contentsRect(): QRect
Inherited from QMenu.contentsRect
Returns: QRect
contextMenuPolicy
▸ contextMenuPolicy(): ContextMenuPolicy
Inherited from QMenu.contextMenuPolicy
Returns: ContextMenuPolicy
currentColumn
▸ currentColumn(): number
Returns: number
currentIndex
▸ currentIndex(): QModelIndex
Inherited from QAbstractItemView.currentIndex
Returns: QModelIndex
currentItem
▸ currentItem(): QTableWidgetItem
Returns: QTableWidgetItem
currentRow
▸ currentRow(): number
Returns: number
defaultDropAction
▸ defaultDropAction(): DropAction
Inherited from QAbstractItemView.defaultDropAction
Returns: DropAction
delete
▸ delete(): void
Returns: void
deleteLater
▸ deleteLater(): void
Inherited from QObject.deleteLater
Returns: void
depth
▸ depth(): number
Returns: number
devicePixelRatio
▸ devicePixelRatio(): number
Inherited from QMenu.devicePixelRatio
Returns: number
devicePixelRatioF
▸ devicePixelRatioF(): number
Inherited from QMenu.devicePixelRatioF
Returns: number
dragDropMode
▸ dragDropMode(): DragDropMode
Inherited from QAbstractItemView.dragDropMode
Returns: DragDropMode
dragDropOverwriteMode
▸ dragDropOverwriteMode(): boolean
Inherited from QAbstractItemView.dragDropOverwriteMode
Returns: boolean
dragEnabled
▸ dragEnabled(): boolean
Inherited from QAbstractItemView.dragEnabled
Returns: boolean
dumpObjectInfo
▸ dumpObjectInfo(): void
Inherited from QObject.dumpObjectInfo
Returns: void
dumpObjectTree
▸ dumpObjectTree(): void
Inherited from QObject.dumpObjectTree
Returns: void
edit
▸ edit(index
: QModelIndex): void
Inherited from QAbstractItemView.edit
Parameters:
Name | Type |
---|---|
index | QModelIndex |
Returns: void
editItem
▸ editItem(item
: Component): void
Parameters:
Name | Type |
---|---|
item | Component |
Returns: void
editTriggers
▸ editTriggers(): number
Inherited from QAbstractItemView.editTriggers
Returns: number
ensurePolished
▸ ensurePolished(): void
Inherited from QMenu.ensurePolished
Returns: void
eventProcessed
▸ eventProcessed(): boolean
Inherited from EventWidget.eventProcessed
Get the state of the event processed flag
See setEventProcessed()
.
Returns: boolean
boolean True if the current event is flagged as processed.
findItems
▸ findItems(text
: string, flags
: MatchFlag): QTableWidgetItem[]
Parameters:
Name | Type |
---|---|
text | string |
flags | MatchFlag |
Returns: QTableWidgetItem[]
focusProxy
▸ focusProxy(): QWidget
Inherited from QMenu.focusProxy
Returns: QWidget
focusWidget
▸ focusWidget(): QWidget
Inherited from QMenu.focusWidget
Returns: QWidget
font
▸ font(): QFont
Returns: QFont
frameGeometry
▸ frameGeometry(): QRect
Inherited from QMenu.frameGeometry
Returns: QRect
frameRect
▸ frameRect(): QRect
Inherited from QFrame.frameRect
Returns: QRect
frameShadow
▸ frameShadow(): Shadow
Inherited from QFrame.frameShadow
Returns: Shadow
frameShape
▸ frameShape(): Shape
Inherited from QFrame.frameShape
Returns: Shape
frameSize
▸ frameSize(): QSize
Inherited from QMenu.frameSize
Returns: QSize
frameStyle
▸ frameStyle(): number
Inherited from QFrame.frameStyle
Returns: number
frameWidth
▸ frameWidth(): number
Inherited from QFrame.frameWidth
Returns: number
geometry
▸ geometry(): QRect
Returns: QRect
getFlexNode
▸ getFlexNode(): FlexNode
Inherited from YogaWidget.getFlexNode
Returns: FlexNode
grab
Parameters:
Name | Type |
---|---|
rect? | QRect |
Returns: QPixmap
grabKeyboard
▸ grabKeyboard(): void
Inherited from QMenu.grabKeyboard
Returns: void
grabMouse
▸ grabMouse(): void
Inherited from QMenu.grabMouse
Returns: void
gridStyle
▸ gridStyle(): PenStyle
Inherited from QTableView.gridStyle
Returns: PenStyle
hasAutoScroll
▸ hasAutoScroll(): boolean
Inherited from QAbstractItemView.hasAutoScroll
Returns: boolean
hasFocus
▸ hasFocus(): boolean
Returns: boolean
hasHeightForWidth
▸ hasHeightForWidth(): boolean
Inherited from QMenu.hasHeightForWidth
Returns: boolean
hasMouseTracking
▸ hasMouseTracking(): boolean
Inherited from QMenu.hasMouseTracking
Returns: boolean
hasTabletTracking
▸ hasTabletTracking(): boolean
Inherited from QMenu.hasTabletTracking
Returns: boolean
height
▸ height(): number
Returns: number
heightForWidth
▸ heightForWidth(w
: number): number
Inherited from QMenu.heightForWidth
Parameters:
Name | Type |
---|---|
w | number |
Returns: number
heightMM
▸ heightMM(): number
Returns: number
hide
▸ hide(): void
Returns: void
hideColumn
▸ hideColumn(column
: number): void
Inherited from QTableView.hideColumn
Parameters:
Name | Type |
---|---|
column | number |
Returns: void
hideRow
▸ hideRow(row
: number): void
Inherited from QTableView.hideRow
Parameters:
Name | Type |
---|---|
row | number |
Returns: void
horizontalHeader
▸ horizontalHeader(): QHeaderView
Inherited from QTableView.horizontalHeader
Returns: QHeaderView
horizontalScrollBar
▸ horizontalScrollBar(): QScrollBar
Inherited from QAbstractScrollArea.horizontalScrollBar
Returns: QScrollBar
horizontalScrollMode
▸ horizontalScrollMode(): ScrollMode
Inherited from QAbstractItemView.horizontalScrollMode
Returns: ScrollMode
iconSize
▸ iconSize(): QSize
Inherited from QAbstractItemView.iconSize
Returns: QSize
indexAt
▸ indexAt(point
: QPoint): QModelIndex
Inherited from QAbstractItemView.indexAt
Parameters:
Name | Type |
---|---|
point | QPoint |
Returns: QModelIndex
indexWidget
▸ indexWidget(index
: QModelIndex): QWidget
Inherited from QAbstractItemView.indexWidget
Parameters:
Name | Type |
---|---|
index | QModelIndex |
Returns: QWidget
inherits
▸ inherits(className
: string): boolean
Inherited from QObject.inherits
Parameters:
Name | Type |
---|---|
className | string |
Returns: boolean
inputMethodHints
▸ inputMethodHints(): number
Inherited from QMenu.inputMethodHints
Returns: number
insertColumn
▸ insertColumn(column
: number): void
Parameters:
Name | Type |
---|---|
column | number |
Returns: void
insertRow
▸ insertRow(row
: number): void
Parameters:
Name | Type |
---|---|
row | number |
Returns: void
isActiveWindow
▸ isActiveWindow(): boolean
Inherited from QMenu.isActiveWindow
Returns: boolean
isAncestorOf
▸ isAncestorOf(child
: QWidget): boolean
Inherited from QMenu.isAncestorOf
Parameters:
Name | Type |
---|---|
child | QWidget |
Returns: boolean
isColumnHidden
▸ isColumnHidden(column
: number): boolean
Inherited from QTableView.isColumnHidden
Parameters:
Name | Type |
---|---|
column | number |
Returns: boolean
isCornerButtonEnabled
▸ isCornerButtonEnabled(): boolean
Inherited from QTableView.isCornerButtonEnabled
Returns: boolean
isEnabled
▸ isEnabled(): boolean
Inherited from QMenu.isEnabled
Returns: boolean
isEnabledTo
▸ isEnabledTo(ancestor
: QWidget): boolean
Inherited from QMenu.isEnabledTo
Parameters:
Name | Type |
---|---|
ancestor | QWidget |
Returns: boolean
isFullScreen
▸ isFullScreen(): boolean
Inherited from QMenu.isFullScreen
Returns: boolean
isHidden
▸ isHidden(): boolean
Returns: boolean
isMaximized
▸ isMaximized(): boolean
Inherited from QMenu.isMaximized
Returns: boolean
isMinimized
▸ isMinimized(): boolean
Inherited from QMenu.isMinimized
Returns: boolean
isModal
▸ isModal(): boolean
Returns: boolean
isPersistentEditorOpen
▸ isPersistentEditorOpen(itemOrIndex
: QTableWidgetItem | QModelIndex): boolean
Overrides QAbstractItemView.isPersistentEditorOpen
Parameters:
Name | Type |
---|---|
itemOrIndex | QTableWidgetItem | QModelIndex |
Returns: boolean
isRowHidden
▸ isRowHidden(row
: number): boolean
Inherited from QTableView.isRowHidden
Parameters:
Name | Type |
---|---|
row | number |
Returns: boolean
isSortingEnabled
▸ isSortingEnabled(): boolean
Inherited from QTableView.isSortingEnabled
Returns: boolean
isVisible
▸ isVisible(): boolean
Inherited from QMenu.isVisible
Returns: boolean
isVisibleTo
▸ isVisibleTo(ancestor
: QWidget): boolean
Inherited from QMenu.isVisibleTo
Parameters:
Name | Type |
---|---|
ancestor | QWidget |
Returns: boolean
isWindow
▸ isWindow(): boolean
Returns: boolean
isWindowModified
▸ isWindowModified(): boolean
Inherited from QMenu.isWindowModified
Returns: boolean
item
▸ item(row
: number, column
: number): QTableWidgetItem
Parameters:
Name | Type | Default |
---|---|---|
row | number | 0 |
column | number | 0 |
Returns: QTableWidgetItem
itemAt
▸ itemAt(x
: number, y
: number): QTableWidgetItem
Parameters:
Name | Type | Default |
---|---|---|
x | number | 0 |
y | number | 0 |
Returns: QTableWidgetItem
keyboardSearch
▸ keyboardSearch(search
: string): void
Inherited from QAbstractItemView.keyboardSearch
Parameters:
Name | Type |
---|---|
search | string |
Returns: void
killTimer
▸ killTimer(timerId
: number): void
Inherited from QObject.killTimer
Parameters:
Name | Type |
---|---|
timerId | number |
Returns: void
layout
▸ layout(): QLayout | null
Returns: QLayout | null
lineWidth
▸ lineWidth(): number
Inherited from QFrame.lineWidth
Returns: number
logicalDpiX
▸ logicalDpiX(): number
Inherited from QMenu.logicalDpiX
Returns: number
logicalDpiY
▸ logicalDpiY(): number
Inherited from QMenu.logicalDpiY
Returns: number
lower
▸ lower(): void
Returns: void
mapFrom
▸ mapFrom(parent
: QWidget, pos
: QPoint): QPoint
Parameters:
Name | Type |
---|---|
parent | QWidget |
pos | QPoint |
Returns: QPoint
mapFromGlobal
▸ mapFromGlobal(pos
: QPoint): QPoint
Inherited from QMenu.mapFromGlobal
Parameters:
Name | Type |
---|---|
pos | QPoint |
Returns: QPoint
mapFromParent
▸ mapFromParent(pos
: QPoint): QPoint
Inherited from QMenu.mapFromParent
Parameters:
Name | Type |
---|---|
pos | QPoint |
Returns: QPoint
mapTo
▸ mapTo(parent
: QWidget, pos
: QPoint): QPoint
Parameters:
Name | Type |
---|---|
parent | QWidget |
pos | QPoint |
Returns: QPoint
mapToGlobal
▸ mapToGlobal(pos
: QPoint): QPoint
Inherited from QMenu.mapToGlobal
Parameters:
Name | Type |
---|---|
pos | QPoint |
Returns: QPoint
mapToParent
▸ mapToParent(pos
: QPoint): QPoint
Inherited from QMenu.mapToParent
Parameters:
Name | Type |
---|---|
pos | QPoint |
Returns: QPoint