Go and Qt Meta-Object Compiler

76 views
Skip to first unread message

Anselmo Catorce

unread,
Dec 22, 2015, 5:50:10 PM12/22/15
to go-qml
Newbie question: I am choosing a library to start learning gui programming in Go, and I am considering go-qml. I have read bad things about the MOC (Meta-Object Compiler) of Qt as a thing a KISS programmer would not want to use. My question is:

Is the MOC even used when programming with golang and go-qml? Or it is only for C++ Qt programming?

I would like to not use something complicated (moc) for gui programming in Go.

Thanks

Ben Campbell

unread,
Feb 29, 2016, 4:33:26 PM2/29/16
to go-qml
On Wednesday, December 23, 2015 at 11:50:10 AM UTC+13, Anselmo Catorce wrote:

Is the MOC even used when programming with golang and go-qml? Or it is only for C++ Qt programming?

I've not encountered MOC at all so far using go-qml.
Generally I've found that I provide a Go object with all the core operations I want to be able to perform (the "business logic" if you like. Ugh). This is basically the API I want expose to QML.
Then the gui itself is all implemented in QML. I've found it separates out pretty tidily - you can keep GUI concerns separated from your core logic and vice versa.

I could imagine that if you're doing anything really complex (ie a very specific, custom control or view) then you might need to deal with MOC. But by then you're firmly in C++ land anyway, and MOC isn't really _that_ big a deal by then :-)


Reply all
Reply to author
Forward
Message has been deleted
0 new messages