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


Golang core.PointerFromQUrl函数代码示例

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


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

示例1: Open

func (ptr *QWebSocket) Open(url core.QUrl_ITF) {
	defer qt.Recovering("QWebSocket::open")

	if ptr.Pointer() != nil {
		C.QWebSocket_Open(ptr.Pointer(), core.PointerFromQUrl(url))
	}
}
开发者ID:mouse225,项目名称:qt,代码行数:7,代码来源:websockets.go

示例2: NewQMediaContent7

func NewQMediaContent7(playlist QMediaPlaylist_ITF, contentUrl core.QUrl_ITF, takeOwnership bool) *QMediaContent {
	return NewQMediaContentFromPointer(C.QMediaContent_NewQMediaContent7(PointerFromQMediaPlaylist(playlist), core.PointerFromQUrl(contentUrl), C.int(qt.GoBoolToInt(takeOwnership))))
}
开发者ID:xland,项目名称:qt,代码行数:3,代码来源:qmediacontent.go

示例3: Load

func (ptr *QQmlApplicationEngine) Load(url core.QUrl_ITF) {
	if ptr.Pointer() != nil {
		C.QQmlApplicationEngine_Load(ptr.Pointer(), core.PointerFromQUrl(url))
	}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qqmlapplicationengine.go

示例4: Save

func (ptr *QMediaPlaylist) Save(location core.QUrl_ITF, format string) bool {
	if ptr.Pointer() != nil {
		return C.QMediaPlaylist_Save(ptr.Pointer(), core.PointerFromQUrl(location), C.CString(format)) != 0
	}
	return false
}
开发者ID:xland,项目名称:qt,代码行数:6,代码来源:qmediaplaylist.go

示例5: NewQQmlComponent5

func NewQQmlComponent5(engine QQmlEngine_ITF, url core.QUrl_ITF, parent core.QObject_ITF) *QQmlComponent {
	return NewQQmlComponentFromPointer(C.QQmlComponent_NewQQmlComponent5(PointerFromQQmlEngine(engine), core.PointerFromQUrl(url), core.PointerFromQObject(parent)))
}
开发者ID:xland,项目名称:qt,代码行数:3,代码来源:qqmlcomponent.go

示例6: SetData

func (ptr *QQmlComponent) SetData(data core.QByteArray_ITF, url core.QUrl_ITF) {
	if ptr.Pointer() != nil {
		C.QQmlComponent_SetData(ptr.Pointer(), core.PointerFromQByteArray(data), core.PointerFromQUrl(url))
	}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qqmlcomponent.go

示例7: LoadUrl

func (ptr *QQmlComponent) LoadUrl(url core.QUrl_ITF) {
	if ptr.Pointer() != nil {
		C.QQmlComponent_LoadUrl(ptr.Pointer(), core.PointerFromQUrl(url))
	}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qqmlcomponent.go

示例8: SetQuery3

func (ptr *QXmlQuery) SetQuery3(sourceCode string, documentURI core.QUrl_ITF) {
	if ptr.Pointer() != nil {
		C.QXmlQuery_SetQuery3(ptr.Pointer(), C.CString(sourceCode), core.PointerFromQUrl(documentURI))
	}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qxmlquery.go

示例9: SetUrl

func (ptr *QNetworkProxyQuery) SetUrl(url core.QUrl_ITF) {
	if ptr.Pointer() != nil {
		C.QNetworkProxyQuery_SetUrl(ptr.Pointer(), core.PointerFromQUrl(url))
	}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qnetworkproxyquery.go

示例10: SetDirectoryUrl

func (ptr *QFileDialog) SetDirectoryUrl(directory core.QUrl_ITF) {
	if ptr.Pointer() != nil {
		C.QFileDialog_SetDirectoryUrl(ptr.Pointer(), core.PointerFromQUrl(directory))
	}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qfiledialog.go

示例11: SelectUrl

func (ptr *QFileDialog) SelectUrl(url core.QUrl_ITF) {
	if ptr.Pointer() != nil {
		C.QFileDialog_SelectUrl(ptr.Pointer(), core.PointerFromQUrl(url))
	}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qfiledialog.go

示例12: Resource

func (ptr *QTextDocument) Resource(ty int, name core.QUrl_ITF) *core.QVariant {
	if ptr.Pointer() != nil {
		return core.NewQVariantFromPointer(C.QTextDocument_Resource(ptr.Pointer(), C.int(ty), core.PointerFromQUrl(name)))
	}
	return nil
}
开发者ID:xland,项目名称:qt,代码行数:6,代码来源:qtextdocument.go

示例13: 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

示例14: SetBaseUrl

func (ptr *QTextDocument) SetBaseUrl(url core.QUrl_ITF) {
	if ptr.Pointer() != nil {
		C.QTextDocument_SetBaseUrl(ptr.Pointer(), core.PointerFromQUrl(url))
	}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qtextdocument.go

示例15: NewQMediaContent2

func NewQMediaContent2(url core.QUrl_ITF) *QMediaContent {
	return NewQMediaContentFromPointer(C.QMediaContent_NewQMediaContent2(core.PointerFromQUrl(url)))
}
开发者ID:xland,项目名称:qt,代码行数:3,代码来源:qmediacontent.go


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