当前位置: 首页>>代码示例>>Golang>>正文


Golang core.PointerFromQModelIndex函数代码示例

本文整理汇总了Golang中github.com/therecipe/qt/core.PointerFromQModelIndex函数的典型用法代码示例。如果您正苦于以下问题:Golang PointerFromQModelIndex函数的具体用法?Golang PointerFromQModelIndex怎么用?Golang PointerFromQModelIndex使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了PointerFromQModelIndex函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。

示例1: Data

func (ptr *QFileSystemModel) Data(index core.QModelIndex_ITF, role int) *core.QVariant {
	if ptr.Pointer() != nil {
		return core.NewQVariantFromPointer(C.QFileSystemModel_Data(ptr.Pointer(), core.PointerFromQModelIndex(index), C.int(role)))
	}
	return nil
}
开发者ID:xland,项目名称:qt,代码行数:6,代码来源:qfilesystemmodel.go

示例2: SetRowHidden

func (ptr *QTreeView) SetRowHidden(row int, parent core.QModelIndex_ITF, hide bool) {
	if ptr.Pointer() != nil {
		C.QTreeView_SetRowHidden(ptr.Pointer(), C.int(row), core.PointerFromQModelIndex(parent), C.int(qt.GoBoolToInt(hide)))
	}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qtreeview.go

示例3: Expand

func (ptr *QTreeView) Expand(index core.QModelIndex_ITF) {
	if ptr.Pointer() != nil {
		C.QTreeView_Expand(ptr.Pointer(), core.PointerFromQModelIndex(index))
	}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qtreeview.go

示例4: ScrollTo

func (ptr *QTreeView) ScrollTo(index core.QModelIndex_ITF, hint QAbstractItemView__ScrollHint) {
	if ptr.Pointer() != nil {
		C.QTreeView_ScrollTo(ptr.Pointer(), core.PointerFromQModelIndex(index), C.int(hint))
	}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qtreeview.go

示例5: SetFirstColumnSpanned

func (ptr *QTreeView) SetFirstColumnSpanned(row int, parent core.QModelIndex_ITF, span bool) {
	if ptr.Pointer() != nil {
		C.QTreeView_SetFirstColumnSpanned(ptr.Pointer(), C.int(row), core.PointerFromQModelIndex(parent), C.int(qt.GoBoolToInt(span)))
	}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qtreeview.go

示例6: UpdateEditorGeometry

func (ptr *QItemDelegate) UpdateEditorGeometry(editor QWidget_ITF, option QStyleOptionViewItem_ITF, index core.QModelIndex_ITF) {
	if ptr.Pointer() != nil {
		C.QItemDelegate_UpdateEditorGeometry(ptr.Pointer(), PointerFromQWidget(editor), PointerFromQStyleOptionViewItem(option), core.PointerFromQModelIndex(index))
	}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qitemdelegate.go

示例7: IsFirstColumnSpanned

func (ptr *QTreeView) IsFirstColumnSpanned(row int, parent core.QModelIndex_ITF) bool {
	if ptr.Pointer() != nil {
		return C.QTreeView_IsFirstColumnSpanned(ptr.Pointer(), C.int(row), core.PointerFromQModelIndex(parent)) != 0
	}
	return false
}
开发者ID:xland,项目名称:qt,代码行数:6,代码来源:qtreeview.go

示例8: LastModified

func (ptr *QFileSystemModel) LastModified(index core.QModelIndex_ITF) *core.QDateTime {
	if ptr.Pointer() != nil {
		return core.NewQDateTimeFromPointer(C.QFileSystemModel_LastModified(ptr.Pointer(), core.PointerFromQModelIndex(index)))
	}
	return nil
}
开发者ID:xland,项目名称:qt,代码行数:6,代码来源:qfilesystemmodel.go

示例9: Mkdir

func (ptr *QFileSystemModel) Mkdir(parent core.QModelIndex_ITF, name string) *core.QModelIndex {
	if ptr.Pointer() != nil {
		return core.NewQModelIndexFromPointer(C.QFileSystemModel_Mkdir(ptr.Pointer(), core.PointerFromQModelIndex(parent), C.CString(name)))
	}
	return nil
}
开发者ID:xland,项目名称:qt,代码行数:6,代码来源:qfilesystemmodel.go

示例10: HasChildren

func (ptr *QFileSystemModel) HasChildren(parent core.QModelIndex_ITF) bool {
	if ptr.Pointer() != nil {
		return C.QFileSystemModel_HasChildren(ptr.Pointer(), core.PointerFromQModelIndex(parent)) != 0
	}
	return false
}
开发者ID:xland,项目名称:qt,代码行数:6,代码来源:qfilesystemmodel.go

示例11: Index

func (ptr *QFileSystemModel) Index(row int, column int, parent core.QModelIndex_ITF) *core.QModelIndex {
	if ptr.Pointer() != nil {
		return core.NewQModelIndexFromPointer(C.QFileSystemModel_Index(ptr.Pointer(), C.int(row), C.int(column), core.PointerFromQModelIndex(parent)))
	}
	return nil
}
开发者ID:xland,项目名称:qt,代码行数:6,代码来源:qfilesystemmodel.go

示例12: Flags

func (ptr *QFileSystemModel) Flags(index core.QModelIndex_ITF) core.Qt__ItemFlag {
	if ptr.Pointer() != nil {
		return core.Qt__ItemFlag(C.QFileSystemModel_Flags(ptr.Pointer(), core.PointerFromQModelIndex(index)))
	}
	return 0
}
开发者ID:xland,项目名称:qt,代码行数:6,代码来源:qfilesystemmodel.go

示例13: FetchMore

func (ptr *QFileSystemModel) FetchMore(parent core.QModelIndex_ITF) {
	if ptr.Pointer() != nil {
		C.QFileSystemModel_FetchMore(ptr.Pointer(), core.PointerFromQModelIndex(parent))
	}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qfilesystemmodel.go

示例14: DropMimeData

func (ptr *QFileSystemModel) DropMimeData(data core.QMimeData_ITF, action core.Qt__DropAction, row int, column int, parent core.QModelIndex_ITF) bool {
	if ptr.Pointer() != nil {
		return C.QFileSystemModel_DropMimeData(ptr.Pointer(), core.PointerFromQMimeData(data), C.int(action), C.int(row), C.int(column), core.PointerFromQModelIndex(parent)) != 0
	}
	return false
}
开发者ID:xland,项目名称:qt,代码行数:6,代码来源:qfilesystemmodel.go

示例15: SetEditorData

func (ptr *QItemDelegate) SetEditorData(editor QWidget_ITF, index core.QModelIndex_ITF) {
	if ptr.Pointer() != nil {
		C.QItemDelegate_SetEditorData(ptr.Pointer(), PointerFromQWidget(editor), core.PointerFromQModelIndex(index))
	}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qitemdelegate.go


注:本文中的github.com/therecipe/qt/core.PointerFromQModelIndex函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。