本文整理汇总了Golang中github.com/therecipe/qt/core.PointerFromQVariant函数的典型用法代码示例。如果您正苦于以下问题:Golang PointerFromQVariant函数的具体用法?Golang PointerFromQVariant怎么用?Golang PointerFromQVariant使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了PointerFromQVariant函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Golang代码示例。
示例1: SetValue2
func (ptr *QSqlRecord) SetValue2(name string, val core.QVariant_ITF) {
if ptr.Pointer() != nil {
C.QSqlRecord_SetValue2(ptr.Pointer(), C.CString(name), core.PointerFromQVariant(val))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qsqlrecord.go
示例2: SetEncodingOption
func (ptr *QImageEncoderSettings) SetEncodingOption(option string, value core.QVariant_ITF) {
if ptr.Pointer() != nil {
C.QImageEncoderSettings_SetEncodingOption(ptr.Pointer(), C.CString(option), core.PointerFromQVariant(value))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qimageencodersettings.go
示例3: SetHeader
func (ptr *QNetworkProxy) SetHeader(header QNetworkRequest__KnownHeaders, value core.QVariant_ITF) {
if ptr.Pointer() != nil {
C.QNetworkProxy_SetHeader(ptr.Pointer(), C.int(header), core.PointerFromQVariant(value))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qnetworkproxy.go
示例4: SetData
func (ptr *QTreeWidgetItem) SetData(column int, role int, value core.QVariant_ITF) {
if ptr.Pointer() != nil {
C.QTreeWidgetItem_SetData(ptr.Pointer(), C.int(column), C.int(role), core.PointerFromQVariant(value))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qtreewidgetitem.go
示例5: SetVariant
func (ptr *QDBusVariant) SetVariant(variant core.QVariant_ITF) {
if ptr.Pointer() != nil {
C.QDBusVariant_SetVariant(ptr.Pointer(), core.PointerFromQVariant(variant))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qdbusvariant.go
示例6: SetProperty
func (ptr *QVideoSurfaceFormat) SetProperty(name string, value core.QVariant_ITF) {
if ptr.Pointer() != nil {
C.QVideoSurfaceFormat_SetProperty(ptr.Pointer(), C.CString(name), core.PointerFromQVariant(value))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qvideosurfaceformat.go
示例7: CustomValue
func (ptr *QHelpEngineCore) CustomValue(key string, defaultValue core.QVariant_ITF) *core.QVariant {
if ptr.Pointer() != nil {
return core.NewQVariantFromPointer(C.QHelpEngineCore_CustomValue(ptr.Pointer(), C.CString(key), core.PointerFromQVariant(defaultValue)))
}
return nil
}
开发者ID:xland,项目名称:qt,代码行数:6,代码来源:qhelpenginecore.go
示例8: SetData
func (ptr *QListWidgetItem) SetData(role int, value core.QVariant_ITF) {
if ptr.Pointer() != nil {
C.QListWidgetItem_SetData(ptr.Pointer(), C.int(role), core.PointerFromQVariant(value))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qlistwidgetitem.go
示例9: QQmlProperty_Write3
func QQmlProperty_Write3(object core.QObject_ITF, name string, value core.QVariant_ITF, ctxt QQmlContext_ITF) bool {
return C.QQmlProperty_QQmlProperty_Write3(core.PointerFromQObject(object), C.CString(name), core.PointerFromQVariant(value), PointerFromQQmlContext(ctxt)) != 0
}
开发者ID:xland,项目名称:qt,代码行数:3,代码来源:qqmlproperty.go
示例10: SetData
func (ptr *QFileSystemModel) SetData(idx core.QModelIndex_ITF, value core.QVariant_ITF, role int) bool {
if ptr.Pointer() != nil {
return C.QFileSystemModel_SetData(ptr.Pointer(), core.PointerFromQModelIndex(idx), core.PointerFromQVariant(value), C.int(role)) != 0
}
return false
}
开发者ID:xland,项目名称:qt,代码行数:6,代码来源:qfilesystemmodel.go
示例11: Extension
func (ptr *QScriptClass) Extension(extension QScriptClass__Extension, argument core.QVariant_ITF) *core.QVariant {
if ptr.Pointer() != nil {
return core.NewQVariantFromPointer(C.QScriptClass_Extension(ptr.Pointer(), C.int(extension), core.PointerFromQVariant(argument)))
}
return nil
}
开发者ID:xland,项目名称:qt,代码行数:6,代码来源:qscriptclass.go
示例12: SetField
func (ptr *QWizard) SetField(name string, value core.QVariant_ITF) {
if ptr.Pointer() != nil {
C.QWizard_SetField(ptr.Pointer(), C.CString(name), core.PointerFromQVariant(value))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qwizard.go
示例13: SetData
func (ptr *QSqlRelationalTableModel) SetData(index core.QModelIndex_ITF, value core.QVariant_ITF, role int) bool {
if ptr.Pointer() != nil {
return C.QSqlRelationalTableModel_SetData(ptr.Pointer(), core.PointerFromQModelIndex(index), core.PointerFromQVariant(value), C.int(role)) != 0
}
return false
}
开发者ID:xland,项目名称:qt,代码行数:6,代码来源:qsqlrelationaltablemodel.go
示例14: SetValue
func (ptr *QSqlRecord) SetValue(index int, val core.QVariant_ITF) {
if ptr.Pointer() != nil {
C.QSqlRecord_SetValue(ptr.Pointer(), C.int(index), core.PointerFromQVariant(val))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qsqlrecord.go
示例15: SetProperty
func (ptr *QTextFormat) SetProperty(propertyId int, value core.QVariant_ITF) {
if ptr.Pointer() != nil {
C.QTextFormat_SetProperty(ptr.Pointer(), C.int(propertyId), core.PointerFromQVariant(value))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qtextformat.go
示例16: QQmlProperty_Write4
func QQmlProperty_Write4(object core.QObject_ITF, name string, value core.QVariant_ITF, engine QQmlEngine_ITF) bool {
return C.QQmlProperty_QQmlProperty_Write4(core.PointerFromQObject(object), C.CString(name), core.PointerFromQVariant(value), PointerFromQQmlEngine(engine)) != 0
}
开发者ID:xland,项目名称:qt,代码行数:3,代码来源:qqmlproperty.go
示例17: AddResource
func (ptr *QTextDocument) AddResource(ty int, name core.QUrl_ITF, resource core.QVariant_ITF) {
if ptr.Pointer() != nil {
C.QTextDocument_AddResource(ptr.Pointer(), C.int(ty), core.PointerFromQUrl(name), core.PointerFromQVariant(resource))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qtextdocument.go
示例18: Write
func (ptr *QQmlProperty) Write(value core.QVariant_ITF) bool {
if ptr.Pointer() != nil {
return C.QQmlProperty_Write(ptr.Pointer(), core.PointerFromQVariant(value)) != 0
}
return false
}
开发者ID:xland,项目名称:qt,代码行数:6,代码来源:qqmlproperty.go
示例19: SetTabData
func (ptr *QTabBar) SetTabData(index int, data core.QVariant_ITF) {
if ptr.Pointer() != nil {
C.QTabBar_SetTabData(ptr.Pointer(), C.int(index), core.PointerFromQVariant(data))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qtabbar.go
示例20: SetValue
func (ptr *QSqlField) SetValue(value core.QVariant_ITF) {
if ptr.Pointer() != nil {
C.QSqlField_SetValue(ptr.Pointer(), core.PointerFromQVariant(value))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qsqlfield.go
注:本文中的github.com/therecipe/qt/core.PointerFromQVariant函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论