本文整理汇总了Golang中github.com/therecipe/qt/core.PointerFromQVariant函数的典型用法代码示例。如果您正苦于以下问题:Golang PointerFromQVariant函数的具体用法?Golang PointerFromQVariant怎么用?Golang PointerFromQVariant使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了PointerFromQVariant函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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))
}
}
示例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))
}
}
示例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))
}
}
示例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))
}
}
示例5: SetVariant
func (ptr *QDBusVariant) SetVariant(variant core.QVariant_ITF) {
if ptr.Pointer() != nil {
C.QDBusVariant_SetVariant(ptr.Pointer(), core.PointerFromQVariant(variant))
}
}
示例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))
}
}
示例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
}
示例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))
}
}
示例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
}
示例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
}
示例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
}
示例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))
}
}
示例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
}
示例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))
}
}
示例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))
}
}