本文整理汇总了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))
}
}
示例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))))
}
示例3: Load
func (ptr *QQmlApplicationEngine) Load(url core.QUrl_ITF) {
if ptr.Pointer() != nil {
C.QQmlApplicationEngine_Load(ptr.Pointer(), core.PointerFromQUrl(url))
}
}
示例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
}
示例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)))
}
示例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))
}
}
示例7: LoadUrl
func (ptr *QQmlComponent) LoadUrl(url core.QUrl_ITF) {
if ptr.Pointer() != nil {
C.QQmlComponent_LoadUrl(ptr.Pointer(), core.PointerFromQUrl(url))
}
}
示例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))
}
}
示例9: SetUrl
func (ptr *QNetworkProxyQuery) SetUrl(url core.QUrl_ITF) {
if ptr.Pointer() != nil {
C.QNetworkProxyQuery_SetUrl(ptr.Pointer(), core.PointerFromQUrl(url))
}
}
示例10: SetDirectoryUrl
func (ptr *QFileDialog) SetDirectoryUrl(directory core.QUrl_ITF) {
if ptr.Pointer() != nil {
C.QFileDialog_SetDirectoryUrl(ptr.Pointer(), core.PointerFromQUrl(directory))
}
}
示例11: SelectUrl
func (ptr *QFileDialog) SelectUrl(url core.QUrl_ITF) {
if ptr.Pointer() != nil {
C.QFileDialog_SelectUrl(ptr.Pointer(), core.PointerFromQUrl(url))
}
}
示例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
}
示例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))
}
}
示例14: SetBaseUrl
func (ptr *QTextDocument) SetBaseUrl(url core.QUrl_ITF) {
if ptr.Pointer() != nil {
C.QTextDocument_SetBaseUrl(ptr.Pointer(), core.PointerFromQUrl(url))
}
}
示例15: NewQMediaContent2
func NewQMediaContent2(url core.QUrl_ITF) *QMediaContent {
return NewQMediaContentFromPointer(C.QMediaContent_NewQMediaContent2(core.PointerFromQUrl(url)))
}