本文整理汇总了Golang中github.com/therecipe/qt/core.PointerFromQObject函数的典型用法代码示例。如果您正苦于以下问题:Golang PointerFromQObject函数的具体用法?Golang PointerFromQObject怎么用?Golang PointerFromQObject使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了PointerFromQObject函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Golang代码示例。
示例1: RegisterObject
func (ptr *QWebChannel) RegisterObject(id string, object core.QObject_ITF) {
defer qt.Recovering("QWebChannel::registerObject")
if ptr.Pointer() != nil {
C.QWebChannel_RegisterObject(ptr.Pointer(), C.CString(id), core.PointerFromQObject(object))
}
}
开发者ID:mouse225,项目名称:qt,代码行数:7,代码来源:webchannel.go
示例2: DeregisterObject
func (ptr *QWebChannel) DeregisterObject(object core.QObject_ITF) {
defer qt.Recovering("QWebChannel::deregisterObject")
if ptr.Pointer() != nil {
C.QWebChannel_DeregisterObject(ptr.Pointer(), core.PointerFromQObject(object))
}
}
开发者ID:mouse225,项目名称:qt,代码行数:7,代码来源:webchannel.go
示例3: CreateAction
func (ptr *QUiLoader) CreateAction(parent core.QObject_ITF, name string) *widgets.QAction {
defer qt.Recovering("QUiLoader::createAction")
if ptr.Pointer() != nil {
return widgets.NewQActionFromPointer(C.QUiLoader_CreateAction(ptr.Pointer(), core.PointerFromQObject(parent), C.CString(name)))
}
return nil
}
开发者ID:mouse225,项目名称:qt,代码行数:8,代码来源:uitools.go
示例4: RegisterNdefMessageHandler2
func (ptr *QNearFieldManager) RegisterNdefMessageHandler2(typeNameFormat QNdefRecord__TypeNameFormat, ty core.QByteArray_ITF, object core.QObject_ITF, method string) int {
if ptr.Pointer() != nil {
return int(C.QNearFieldManager_RegisterNdefMessageHandler2(ptr.Pointer(), C.int(typeNameFormat), core.PointerFromQByteArray(ty), core.PointerFromQObject(object), C.CString(method)))
}
return 0
}
开发者ID:xland,项目名称:qt,代码行数:6,代码来源:qnearfieldmanager.go
示例5: NewQQmlApplicationEngine2
func NewQQmlApplicationEngine2(url core.QUrl_ITF, parent core.QObject_ITF) *QQmlApplicationEngine {
return NewQQmlApplicationEngineFromPointer(C.QQmlApplicationEngine_NewQQmlApplicationEngine2(core.PointerFromQUrl(url), core.PointerFromQObject(parent)))
}
开发者ID:xland,项目名称:qt,代码行数:3,代码来源:qqmlapplicationengine.go
示例6: NewQQmlApplicationEngine
func NewQQmlApplicationEngine(parent core.QObject_ITF) *QQmlApplicationEngine {
return NewQQmlApplicationEngineFromPointer(C.QQmlApplicationEngine_NewQQmlApplicationEngine(core.PointerFromQObject(parent)))
}
开发者ID:xland,项目名称:qt,代码行数:3,代码来源:qqmlapplicationengine.go
示例7: NewQMediaPlaylist
func NewQMediaPlaylist(parent core.QObject_ITF) *QMediaPlaylist {
return NewQMediaPlaylistFromPointer(C.QMediaPlaylist_NewQMediaPlaylist(core.PointerFromQObject(parent)))
}
开发者ID:xland,项目名称:qt,代码行数:3,代码来源:qmediaplaylist.go
示例8: AreaMonitor
func (ptr *QGeoPositionInfoSourceFactory) AreaMonitor(parent core.QObject_ITF) *QGeoAreaMonitorSource {
if ptr.Pointer() != nil {
return NewQGeoAreaMonitorSourceFromPointer(C.QGeoPositionInfoSourceFactory_AreaMonitor(ptr.Pointer(), core.PointerFromQObject(parent)))
}
return nil
}
开发者ID:xland,项目名称:qt,代码行数:6,代码来源:qgeopositioninfosourcefactory.go
示例9: Notify
func (ptr *QGuiApplication) Notify(object core.QObject_ITF, event core.QEvent_ITF) bool {
if ptr.Pointer() != nil {
return C.QGuiApplication_Notify(ptr.Pointer(), core.PointerFromQObject(object), core.PointerFromQEvent(event)) != 0
}
return false
}
开发者ID:xland,项目名称:qt,代码行数:6,代码来源:qguiapplication.go
示例10: NewQAudioOutput2
func NewQAudioOutput2(audioDevice QAudioDeviceInfo_ITF, format QAudioFormat_ITF, parent core.QObject_ITF) *QAudioOutput {
return NewQAudioOutputFromPointer(C.QAudioOutput_NewQAudioOutput2(PointerFromQAudioDeviceInfo(audioDevice), PointerFromQAudioFormat(format), core.PointerFromQObject(parent)))
}
开发者ID:xland,项目名称:qt,代码行数:3,代码来源:qaudiooutput.go
示例11: NewQMediaPlayer
func NewQMediaPlayer(parent core.QObject_ITF, flags QMediaPlayer__Flag) *QMediaPlayer {
return NewQMediaPlayerFromPointer(C.QMediaPlayer_NewQMediaPlayer(core.PointerFromQObject(parent), C.int(flags)))
}
开发者ID:xland,项目名称:qt,代码行数:3,代码来源:qmediaplayer.go
示例12: NewQScriptEngineDebugger
func NewQScriptEngineDebugger(parent core.QObject_ITF) *QScriptEngineDebugger {
defer qt.Recovering("QScriptEngineDebugger::QScriptEngineDebugger")
return newQScriptEngineDebuggerFromPointer(C.QScriptEngineDebugger_NewQScriptEngineDebugger(core.PointerFromQObject(parent)))
}
开发者ID:mouse225,项目名称:qt,代码行数:5,代码来源:scripttools.go
示例13: NewQVideoProbe
func NewQVideoProbe(parent core.QObject_ITF) *QVideoProbe {
return NewQVideoProbeFromPointer(C.QVideoProbe_NewQVideoProbe(core.PointerFromQObject(parent)))
}
开发者ID:xland,项目名称:qt,代码行数:3,代码来源:qvideoprobe.go
示例14: NewQRadioTuner
func NewQRadioTuner(parent core.QObject_ITF) *QRadioTuner {
return NewQRadioTunerFromPointer(C.QRadioTuner_NewQRadioTuner(core.PointerFromQObject(parent)))
}
开发者ID:xland,项目名称:qt,代码行数:3,代码来源:qradiotuner.go
示例15: NewQHelpEngineCore
func NewQHelpEngineCore(collectionFile string, parent core.QObject_ITF) *QHelpEngineCore {
return NewQHelpEngineCoreFromPointer(C.QHelpEngineCore_NewQHelpEngineCore(C.CString(collectionFile), core.PointerFromQObject(parent)))
}
开发者ID:xland,项目名称:qt,代码行数:3,代码来源:qhelpenginecore.go
示例16: NewQBluetoothLocalDevice
func NewQBluetoothLocalDevice(parent core.QObject_ITF) *QBluetoothLocalDevice {
return NewQBluetoothLocalDeviceFromPointer(C.QBluetoothLocalDevice_NewQBluetoothLocalDevice(core.PointerFromQObject(parent)))
}
开发者ID:xland,项目名称:qt,代码行数:3,代码来源:qbluetoothlocaldevice.go
示例17: NewQBluetoothLocalDevice2
func NewQBluetoothLocalDevice2(address QBluetoothAddress_ITF, parent core.QObject_ITF) *QBluetoothLocalDevice {
return NewQBluetoothLocalDeviceFromPointer(C.QBluetoothLocalDevice_NewQBluetoothLocalDevice2(PointerFromQBluetoothAddress(address), core.PointerFromQObject(parent)))
}
开发者ID:xland,项目名称:qt,代码行数:3,代码来源:qbluetoothlocaldevice.go
示例18: NewQAudioOutput
func NewQAudioOutput(format QAudioFormat_ITF, parent core.QObject_ITF) *QAudioOutput {
return NewQAudioOutputFromPointer(C.QAudioOutput_NewQAudioOutput(PointerFromQAudioFormat(format), core.PointerFromQObject(parent)))
}
开发者ID:xland,项目名称:qt,代码行数:3,代码来源:qaudiooutput.go
示例19: NewQSensorGestureManager
func NewQSensorGestureManager(parent core.QObject_ITF) *QSensorGestureManager {
return NewQSensorGestureManagerFromPointer(C.QSensorGestureManager_NewQSensorGestureManager(core.PointerFromQObject(parent)))
}
开发者ID:xland,项目名称:qt,代码行数:3,代码来源:qsensorgesturemanager.go
示例20: NewQQmlComponent4
func NewQQmlComponent4(engine QQmlEngine_ITF, fileName string, mode QQmlComponent__CompilationMode, parent core.QObject_ITF) *QQmlComponent {
return NewQQmlComponentFromPointer(C.QQmlComponent_NewQQmlComponent4(PointerFromQQmlEngine(engine), C.CString(fileName), C.int(mode), core.PointerFromQObject(parent)))
}
开发者ID:xland,项目名称:qt,代码行数:3,代码来源:qqmlcomponent.go
注:本文中的github.com/therecipe/qt/core.PointerFromQObject函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论