yatsen1

Results 83 comments of yatsen1

I am not very sure too. I think goirc will ping timeout for shortly, but sometime the disconnect event emit too long.

这个比较底层,没测试到。目前还是以现有的widget为主的。

发现问题原因,目前有一个可用的补救方法,只是真正修正还需要在考虑一下。 pointerStep := func(p unsafe.Pointer, offset uintptr) unsafe.Pointer { return unsafe.Pointer(uintptr(p) + offset) } // this offset can used for both Qt4 and Qt5, but only can used for get...

w := qtwidgets.NewQWidget() w.InheritMousePressEvent(func(ev *qtgui.QMouseEvent) { }) override protected method: w.Inheritxxxx(func) it's works, although not look like as C++.

In short, No. The latest code already comment this two symbols: https://github.com/kitech/dl/blob/fa7e1b9bab3dc216669acf2215c8a88cb3675ddc/dl.go#L21 So just update kitech/dl is fine, `go get -u github.com/kitech/dl` So how you get a old version package?...

Try disable go module support. Not test too much.

prebuild version here: https://github.com/kitech/qt.inline/releases/tag/v1.0-rc.1

* windows document: https://github.com/kitech/qt.go/blob/master/install.md * Makefile: really not need on windows, but if there is a PS one, that good * Compiler toolchains: see install.md, mingw64 gcc is used. *...

Does this works for you? But I know this cannot work on linux anymore.

应该是封装方式造成的,用go struct封装了C++类型的指针,所以要想看到真实的指针需要多执行一步取地操作,obj.GetCthis()函数可以取到底层C++类型的指针。 在当时实现的时候曾考虑过另一种封装方式,直接使用unsafe.Pointer的别名,这样封装后的对象还是原来的C++指针。还没有测试过这种方式,不知道是否能实现现在所有的功能,只是为了保险选用了现在的struct封装方式。如果有兴趣多讨论一下,考虑一下,或者帮着试一试