therecipe / qt

Qt binding for Go (Golang) with support for Windows / macOS / Linux / FreeBSD / Android / iOS / Sailfish OS / Raspberry Pi / AsteroidOS / Ubuntu Touch / JavaScript / WebAssembly
GNU Lesser General Public License v3.0
10.41k stars 741 forks source link

How do I use of QInpitmethodEvent::Attribute #632

Open akiyosi opened 6 years ago

akiyosi commented 6 years ago

I want to use the go-binding of the member in QInputMethodEvent::Attribute.

I greped those corresponding to these go-binding from the source and found type of QInputMethodEvent__AttributeType in gui/gui.go:20954, but I do not know how to use these specifically.

therecipe commented 6 years ago

Hey

I looked into this, but haven't found an easy way to get it working yet.

akiyosi commented 6 years ago

I want to draw something like identifying words that are the current candidate word to convert. I was considering QInputMethodEvent::Attribute as one option to order to achieve it.

Here is the image converting word in japanese.

Are there any other implementation means?