go-qml / qml

QML support for the Go language
Other
1.96k stars 189 forks source link

WIP: Add types package #145

Closed luna-duclos closed 9 years ago

luna-duclos commented 9 years ago

This is just a basic overview of the intention of my change with adding a types package. The idea is to have a seperate package that allows closer integration with types that are not directly accessibly through QML. Such as WebView. My intent is to add the following types in the package for now: QWebView, QNetworkAccessManager, QNetworkCookieJar & QNetworkCookie.

To do this I'd need to expose unpackDataValue and packDataValue, as duplicating this logic in the types package seems somewhat silly. For this I intend to use an internal package.

Is this an acceptable way to go or do I need to change things ?

niemeyer commented 9 years ago

Being brainstormed online.