salviati / go-qt5 Goto Github PK
View Code? Open in Web Editor NEWThis project forked from visualfc/go-ui
qt5 bindings for go
License: BSD 2-Clause "Simplified" License
This project forked from visualfc/go-ui
qt5 bindings for go
License: BSD 2-Clause "Simplified" License
Hello,
im trying to get this repo running on OSX 10.10.x El Capitain..
Looks good until i run "go install" in the qt5 folder.
It says:
github.com/salviati/go-qt5/qt5
ld: library not found for -lgoqt5drv
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Any ideas?
Some of the Qt classes, like QStandardItem do not inherit QObject. I was having trouble modifying makelib.lua to make this work and was hoping you could point me in the right direction. I am trying to work toward support for QListView and QTableView with this.
In file included from qtevent.cpp:16:
./cdrv.h:843:64: warning: unused parameter 'param' [-Wunused-parameter]
inline QtSignal* drvNewSignal(QObject *parent, void *fn, void *param = 0)
^
./cdrv.h:851:61: warning: unused parameter 'a2' [-Wunused-parameter]
inline void drvNewEvent(int type, void *a0, void *a1, void *a2 = 0)
^
qtevent.cpp:217:38: error: non-constant-expression cannot be narrowed from type 'Int' (aka 'unsigned int') to 'int' in initializer list [-Wc++11-narrowing]
wheel_event ev = {accept,e->modifiers(),e->orientation(),e->buttons(),gpt.x(),gpt.y(),pt.x(),pt.y(),e->delta()};
^~~~~~~~~~~~~~
qtevent.cpp:217:38: note: insert an explicit cast to silence this issue
wheel_event ev = {accept,e->modifiers(),e->orientation(),e->buttons(),gpt.x(),gpt.y(),pt.x(),pt.y(),e->delta()};
^~~~~~~~~~~~~~
static_cast<int>( )
qtevent.cpp:217:70: error: non-constant-expression cannot be narrowed from type 'Int' (aka 'unsigned int') to 'int' in initializer list [-Wc++11-narrowing]
wheel_event ev = {accept,e->modifiers(),e->orientation(),e->buttons(),gpt.x(),gpt.y(),pt.x(),pt.y(),e->delta()};
^~~~~~~~~~~~
qtevent.cpp:217:70: note: insert an explicit cast to silence this issue
wheel_event ev = {accept,e->modifiers(),e->orientation(),e->buttons(),gpt.x(),gpt.y(),pt.x(),pt.y(),e->delta()};
^~~~~~~~~~~~
static_cast<int>( )
2 warnings and 2 errors generated.
make: *** [qtevent.o] Error 1
The go get
instructions don't actually work.
Hi, @salviati.
Can I use it with golang.org/x/mobile/app package in order to create android app ?
I run QT.main in non-main thread, sometimes I get panic, but sometimes get warning but works.
first is panic, second is warning.
SIGSEGV: segmentation violation
PC=0x7f34fba7f38c
signal arrived during cgo execution
runtime.cgocall(0x401680, 0x7f35151b4e10)
/usr/lib/go/src/pkg/runtime/cgocall.c:149 +0x11b fp=0x7f35151b4df8
github.com/salviati/go-qt5/qt5._Cfunc_drv(0x100000001, 0x0, 0xdd9080, 0xc2100009b0, 0x0, ...)
github.com/salviati/go-qt5/qt5/_obj/_cgo_defun.c:51 +0x36 fp=0x7f35151b4e10
github.com/salviati/go-qt5/qt5._drv(0x1, 0x1, 0xdd9080, 0xc2100009b0, 0x0, ...)
/home/mike/go/src/github.com/salviati/go-qt5/qt5/cdrv.go:92 +0x93 fp=0x7f35151b4e68
github.com/salviati/go-qt5/qt5.(*app).AppMain(0xdd9080, 0x0)
/home/mike/go/src/github.com/salviati/go-qt5/qt5/uiobjs.go:1381 +0xa7 fp=0x7f35151b4ee0
github.com/salviati/go-qt5/qt5.Main(0xc2100be060, 0xc2100be060)
/home/mike/go/src/github.com/salviati/go-qt5/qt5/ui.go:22 +0x37 fp=0x7f35151b4ef8
github.com/ggaaooppeenngg/dic.GUITranslate(0xc2100009a8, 0x3, 0xc210039300)
/home/mike/go/src/github.com/ggaaooppeenngg/dic/dic.go:149 +0x10b fp=0x7f35151b4f88
runtime.goexit()
/usr/lib/go/src/pkg/runtime/proc.c:1394 fp=0x7f35151b4f90
created by github.com/ggaaooppeenngg/dic.Listener
/home/mike/go/src/github.com/ggaaooppeenngg/dic/listen.go:44 +0x485
rax 0x24a9900
rbx 0x250c5c0
rcx 0x24a16c0
rdx 0x18
rdi 0x250c5c0
rsi 0x250e620
rbp 0x250e620
rsp 0x7fffb9755020
r8 0x250e620
r9 0x0
r10 0x0
r11 0x7
r12 0x262ac60
r13 0x24459b8
r14 0x12232d9b
r15 0x0
rip 0x7f34fba7f38c
rflags 0x10206
cs 0x33
fs 0x0
gs 0x0
or sometimes
WARNING: QApplication was not created in the main() thread.
(d:7454): Gtk-CRITICAL **: IA__gtk_container_add: assertion `GTK_IS_CONTAINER (container)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_container_add: assertion `GTK_IS_CONTAINER (container)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_container_add: assertion `GTK_IS_CONTAINER (container)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_container_add: assertion `GTK_IS_CONTAINER (container)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_container_add: assertion `GTK_IS_CONTAINER (container)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_container_add: assertion `GTK_IS_CONTAINER (container)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_container_add: assertion `GTK_IS_CONTAINER (container)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_container_add: assertion `GTK_IS_CONTAINER (container)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_container_add: assertion `GTK_IS_CONTAINER (container)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_container_add: assertion `GTK_IS_CONTAINER (container)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_container_add: assertion `GTK_IS_CONTAINER (container)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_container_add: assertion `GTK_IS_CONTAINER (container)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_container_add: assertion `GTK_IS_CONTAINER (container)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_container_add: assertion `GTK_IS_CONTAINER (container)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_container_add: assertion `GTK_IS_CONTAINER (container)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_container_add: assertion `GTK_IS_CONTAINER (container)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_container_add: assertion `GTK_IS_CONTAINER (container)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_container_add: assertion `GTK_IS_CONTAINER (container)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_container_add: assertion `GTK_IS_CONTAINER (container)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_container_add: assertion `GTK_IS_CONTAINER (container)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_container_add: assertion `GTK_IS_CONTAINER (container)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_container_add: assertion `GTK_IS_CONTAINER (container)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_container_add: assertion `GTK_IS_CONTAINER (container)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(d:7454): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
My Code is like:
for somecoditon {
go run( done )
<- done
}
func run(done){
qt.Main(
go uimain(exit)
qt.Run()
exit<-true
)
done<-true
}
func uimain(exit){
//somecode to make ui
exit<true
}
I think the panic occurs when it runs to qt.Main again after I run qt.Main first. But I am sure qt.Main was called after qt.Main exit.
Hey,
http://pastebin.com/KqLWDLTp here is the basic code.
The problem is that after i right click to the systray icon and click away (losing focus), i got this: remove item &{Menu{0x18376380}}
.
And after this, whenever i right click on the systray the menu doesn't bring up since it's already disposed of.
#3 He had almost or the same problem.
D:\GoPath\src\github.com\salviati\go-qt5\examples>go run minimal.go
0.1.1
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
exit status 3
The go get
instructions don't actually work.
If you go run minimal.go and keep resizing the window for a while, you'll see that the memory usage goes up.
I'm not sure if you have windows, but if you open up a menu (like in examples/widgets.go) and then you close that menu by making it lose focus, the menubar completely disappears and I see a remove item &{Menu{0x12c342e0}}
in console. When you close the app, it panics:
panic: runtime error: call of nil func value
[signal 0xc0000005 code=0x0 addr=0x0 pc=0x0]
goroutine 1 [syscall]:
github.com/salviati/go-qt5/qt5._Cfunc_drv(0x8, 0x3)
C:/Users/outroot/AppData/Local/Temp/go-build940075959/github.com/salviati/go-qt5/qt5/_obj/_cgo_defun.c:42 +0x31
Excuse me if I can ask question here?
I use Qt5.7, go 1.7.1, have problem below.
Is it normal error or I make wrong way?
0.1.1
panic: runtime error: cgo argument has Go pointer to Go pointer
goroutine 1 [running]:
panic(0x4e74e0, 0xc42000c310)
/opt/data/data/clearsoft/go/src/runtime/panic.go:500 +0x1a1
github.com/salviati/go-qt5/qt5._cgoCheckPointer0(0x7af040, 0x0, 0x0, 0x0, 0x7fbdb20d6000)
github.com/salviati/go-qt5/qt5/_obj/_cgo_gotypes.go:40 +0x59
github.com/salviati/go-qt5/qt5._drv(0x1, 0x1, 0x7af040, 0xc42000c300, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/opt/data/data/proj/jkgo/src/github.com/salviati/go-qt5/qt5/cdrv.go:93 +0x5b
github.com/salviati/go-qt5/qt5.(*app).AppMain(0x7af040, 0x0)
/opt/data/data/proj/jkgo/src/github.com/salviati/go-qt5/qt5/uiobjs.go:1990 +0xb4
github.com/salviati/go-qt5/qt5.Main(0x520690, 0x1)
/opt/data/data/proj/jkgo/src/github.com/salviati/go-qt5/qt5/ui.go:22 +0x43
main.main()
/opt/data/data/proj/jkgo/src/github.com/salviati/go-qt5/examples/minimal.go:17 +0xaf
exit status 2
./cdrv.h:334:27: error: conversion from 'goInt' (aka 'long long') to 'QFlag' is
ambiguous
return (Qt::Alignment)((goInt)param);
^~~~~~~~~~~~~~~~
/Users/nzlov/Program/Qt/5.3/clang_64/lib/QtCore.framework/Headers/qflags.h:60:29: note:
candidate constructor
Q_DECL_CONSTEXPR inline QFlag(int ai) : i(ai) {}
^
/Users/nzlov/Program/Qt/5.3/clang_64/lib/QtCore.framework/Headers/qflags.h:61:29: note:
candidate constructor
Q_DECL_CONSTEXPR inline QFlag(uint ai) : i(int(ai)) {}
^
/Users/nzlov/Program/Qt/5.3/clang_64/lib/QtCore.framework/Headers/qflags.h:62:29: note:
candidate constructor
Q_DECL_CONSTEXPR inline QFlag(short ai) : i(int(ai)) {}
^
/Users/nzlov/Program/Qt/5.3/clang_64/lib/QtCore.framework/Headers/qflags.h:63:29: note:
candidate constructor
Q_DECL_CONSTEXPR inline QFlag(ushort ai) : i(int(uint(ai))) {}
^
/Users/nzlov/Program/Qt/5.3/clang_64/lib/QtCore.framework/Headers/qflags.h:108:42: note:
passing argument to parameter 'f' here
Q_DECL_CONSTEXPR inline QFlags(QFlag f) : i(f) {}
^
In file included from cdrv.cpp:15:
./cdrv.h:684:64: warning: unused parameter 'param' [-Wunused-parameter]
inline QtSignal* drvNewSignal(QObject parent, void *fn, void *param = 0)
^
./cdrv.h:692:61: warning: unused parameter 'a2' [-Wunused-parameter]
inline void drvNewEvent(int type, void *a0, void *a1, void *a2 = 0)
^
cdrv.cpp:1002:50: warning: unused parameter 'a2' [-Wunused-parameter]
int drv_app(int drvid, void *a0, void a1, void* a2, void* a3, void* a4...
^
cdrv.cpp:1002:60: warning: unused parameter 'a3' [-Wunused-parameter]
int drv_app(int drvid, void a0, void a1, void* a2, void* a3, void* a4...
^
cdrv.cpp:1002:70: warning: unused parameter 'a4' [-Wunused-parameter]
...drvid, void a0, void a1, void* a2, void* a3, void* a4, void* a5, void...
^
cdrv.cpp:1002:80: warning: unused parameter 'a5' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:1002:90: warning: unused parameter 'a6' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:1059:62: warning: unused parameter 'a3' [-Wunused-parameter]
int drv_timer(int drvid, void a0, void a1, void* a2, void* a3, void* a4, v...
^
cdrv.cpp:1059:72: warning: unused parameter 'a4' [-Wunused-parameter]
...drvid, void a0, void a1, void* a2, void* a3, void* a4, void* a5, void...
^
cdrv.cpp:1059:82: warning: unused parameter 'a5' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:1059:92: warning: unused parameter 'a6' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:1117:71: warning: unused parameter 'a4' [-Wunused-parameter]
...drvid, void a0, void a1, void* a2, void* a3, void* a4, void* a5, void...
^
cdrv.cpp:1117:81: warning: unused parameter 'a5' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:1117:91: warning: unused parameter 'a6' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:1268:93: warning: unused parameter 'a6' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:1361:51: warning: unused parameter 'a2' [-Wunused-parameter]
int drv_icon(int drvid, void a0, void a1, void* a2, void* a3, void* a4...
^
cdrv.cpp:1361:61: warning: unused parameter 'a3' [-Wunused-parameter]
int drv_icon(int drvid, void a0, void a1, void* a2, void* a3, void* a4...
^
cdrv.cpp:1361:71: warning: unused parameter 'a4' [-Wunused-parameter]
...drvid, void a0, void a1, void* a2, void* a3, void* a4, void* a5, void...
^
cdrv.cpp:1361:81: warning: unused parameter 'a5' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:1361:91: warning: unused parameter 'a6' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:1387:92: warning: unused parameter 'a6' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:1433:63: warning: unused parameter 'a3' [-Wunused-parameter]
int drv_widget(int drvid, void a0, void a1, void* a2, void* a3, void* a4, ...
^
cdrv.cpp:1433:73: warning: unused parameter 'a4' [-Wunused-parameter]
...drvid, void a0, void a1, void* a2, void* a3, void* a4, void* a5, void...
^
cdrv.cpp:1433:83: warning: unused parameter 'a5' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:1433:93: warning: unused parameter 'a6' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:1700:63: warning: unused parameter 'a3' [-Wunused-parameter]
int drv_action(int drvid, void a0, void a1, void* a2, void* a3, void* a4, ...
^
cdrv.cpp:1700:73: warning: unused parameter 'a4' [-Wunused-parameter]
...drvid, void a0, void a1, void* a2, void* a3, void* a4, void* a5, void...
^
cdrv.cpp:1700:83: warning: unused parameter 'a5' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:1700:93: warning: unused parameter 'a6' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:1790:68: warning: unused parameter 'a3' [-Wunused-parameter]
...drvid, void a0, void a1, void* a2, void* a3, void* a4, void* a5, void...
^
cdrv.cpp:1790:78: warning: unused parameter 'a4' [-Wunused-parameter]
...drvid, void a0, void a1, void* a2, void* a3, void* a4, void* a5, void...
^
cdrv.cpp:1790:88: warning: unused parameter 'a5' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:1790:98: warning: unused parameter 'a6' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:1848:61: warning: unused parameter 'a3' [-Wunused-parameter]
int drv_menu(int drvid, void a0, void a1, void* a2, void* a3, void* a4...
^
cdrv.cpp:1848:71: warning: unused parameter 'a4' [-Wunused-parameter]
...drvid, void a0, void a1, void* a2, void* a3, void* a4, void* a5, void...
^
cdrv.cpp:1848:81: warning: unused parameter 'a5' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:1848:91: warning: unused parameter 'a6' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:1938:64: warning: unused parameter 'a3' [-Wunused-parameter]
int drv_menubar(int drvid, void a0, void a1, void* a2, void* a3, void* a4...
^
cdrv.cpp:1938:74: warning: unused parameter 'a4' [-Wunused-parameter]
...drvid, void a0, void a1, void* a2, void* a3, void* a4, void* a5, void...
^
cdrv.cpp:1938:84: warning: unused parameter 'a5' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:1938:94: warning: unused parameter 'a6' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:1996:64: warning: unused parameter 'a3' [-Wunused-parameter]
int drv_toolbar(int drvid, void a0, void a1, void* a2, void* a3, void* a4...
^
cdrv.cpp:1996:74: warning: unused parameter 'a4' [-Wunused-parameter]
...drvid, void a0, void a1, void* a2, void* a3, void* a4, void* a5, void...
^
cdrv.cpp:1996:84: warning: unused parameter 'a5' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:1996:94: warning: unused parameter 'a6' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:2066:76: warning: unused parameter 'a4' [-Wunused-parameter]
...drvid, void a0, void a1, void* a2, void* a3, void* a4, void* a5, void...
^
cdrv.cpp:2066:86: warning: unused parameter 'a5' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:2066:96: warning: unused parameter 'a6' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:2120:67: warning: unused parameter 'a3' [-Wunused-parameter]
...drvid, void a0, void a1, void* a2, void* a3, void* a4, void* a5, void...
^
cdrv.cpp:2120:77: warning: unused parameter 'a4' [-Wunused-parameter]
...drvid, void a0, void a1, void* a2, void* a3, void* a4, void* a5, void...
^
cdrv.cpp:2120:87: warning: unused parameter 'a5' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:2120:97: warning: unused parameter 'a6' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:2166:87: warning: unused parameter 'a5' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:2166:97: warning: unused parameter 'a6' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:2228:86: warning: unused parameter 'a5' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:2228:96: warning: unused parameter 'a6' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:2314:84: warning: unused parameter 'a5' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:2314:94: warning: unused parameter 'a6' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:2400:67: warning: unused parameter 'a3' [-Wunused-parameter]
...drvid, void a0, void a1, void* a2, void* a3, void* a4, void* a5, void...
^
cdrv.cpp:2400:77: warning: unused parameter 'a4' [-Wunused-parameter]
...drvid, void a0, void a1, void* a2, void* a3, void* a4, void* a5, void...
^
cdrv.cpp:2400:87: warning: unused parameter 'a5' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:2400:97: warning: unused parameter 'a6' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:2454:76: warning: unused parameter 'a4' [-Wunused-parameter]
...drvid, void a0, void a1, void* a2, void* a3, void* a4, void* a5, void...
^
cdrv.cpp:2454:86: warning: unused parameter 'a5' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:2454:96: warning: unused parameter 'a6' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:2516:18: warning: unused variable 'self' [-Wunused-variable]
QHBoxLayout self = (QHBoxLayout)drvGetNative(a0);
^
cdrv.cpp:2514:47: warning: unused parameter 'a1' [-Wunused-parameter]
int drv_hboxlayout(int drvid, void a0, void a1, void* a2, void* a3, vo...
^
cdrv.cpp:2514:57: warning: unused parameter 'a2' [-Wunused-parameter]
int drv_hboxlayout(int drvid, void a0, void a1, void* a2, void* a3, vo...
^
cdrv.cpp:2514:67: warning: unused parameter 'a3' [-Wunused-parameter]
...drvid, void a0, void a1, void* a2, void* a3, void* a4, void* a5, void...
^
cdrv.cpp:2514:77: warning: unused parameter 'a4' [-Wunused-parameter]
...drvid, void a0, void a1, void* a2, void* a3, void* a4, void* a5, void...
^
cdrv.cpp:2514:87: warning: unused parameter 'a5' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:2514:97: warning: unused parameter 'a6' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:2530:18: warning: unused variable 'self' [-Wunused-variable]
QVBoxLayout self = (QVBoxLayout)drvGetNative(a0);
^
cdrv.cpp:2528:47: warning: unused parameter 'a1' [-Wunused-parameter]
int drv_vboxlayout(int drvid, void a0, void a1, void* a2, void* a3, vo...
^
cdrv.cpp:2528:57: warning: unused parameter 'a2' [-Wunused-parameter]
int drv_vboxlayout(int drvid, void a0, void a1, void* a2, void* a3, vo...
^
cdrv.cpp:2528:67: warning: unused parameter 'a3' [-Wunused-parameter]
...drvid, void a0, void a1, void* a2, void* a3, void* a4, void* a5, void...
^
cdrv.cpp:2528:77: warning: unused parameter 'a4' [-Wunused-parameter]
...drvid, void a0, void a1, void* a2, void* a3, void* a4, void* a5, void...
^
cdrv.cpp:2528:87: warning: unused parameter 'a5' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:2528:97: warning: unused parameter 'a6' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:2542:70: warning: unused parameter 'a3' [-Wunused-parameter]
...drvid, void a0, void a1, void* a2, void* a3, void* a4, void* a5, void...
^
cdrv.cpp:2542:80: warning: unused parameter 'a4' [-Wunused-parameter]
...drvid, void a0, void a1, void* a2, void* a3, void* a4, void* a5, void...
^
cdrv.cpp:2542:90: warning: unused parameter 'a5' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:2542:100: warning: unused parameter 'a6' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:2588:57: warning: unused parameter 'a2' [-Wunused-parameter]
int drv_basebutton(int drvid, void a0, void a1, void* a2, void* a3, vo...
^
cdrv.cpp:2588:67: warning: unused parameter 'a3' [-Wunused-parameter]
...drvid, void a0, void a1, void* a2, void* a3, void* a4, void* a5, void...
^
cdrv.cpp:2588:77: warning: unused parameter 'a4' [-Wunused-parameter]
...drvid, void a0, void a1, void* a2, void* a3, void* a4, void* a5, void...
^
cdrv.cpp:2588:87: warning: unused parameter 'a5' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:2588:97: warning: unused parameter 'a6' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:2638:63: warning: unused parameter 'a3' [-Wunused-parameter]
int drv_button(int drvid, void a0, void a1, void* a2, void* a3, void* a4, ...
^
cdrv.cpp:2638:73: warning: unused parameter 'a4' [-Wunused-parameter]
...drvid, void a0, void a1, void* a2, void* a3, void* a4, void* a5, void...
^
cdrv.cpp:2638:83: warning: unused parameter 'a5' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:2638:93: warning: unused parameter 'a6' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:2684:65: warning: unused parameter 'a3' [-Wunused-parameter]
int drv_checkbox(int drvid, void a0, void a1, void* a2, void* a3, void* a4...
^
cdrv.cpp:2684:75: warning: unused parameter 'a4' [-Wunused-parameter]
...drvid, void a0, void a1, void* a2, void* a3, void* a4, void* a5, void...
^
cdrv.cpp:2684:85: warning: unused parameter 'a5' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:2684:95: warning: unused parameter 'a6' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:2722:62: warning: unused parameter 'a3' [-Wunused-parameter]
int drv_radio(int drvid, void a0, void a1, void* a2, void* a3, void* a4, v...
^
cdrv.cpp:2722:72: warning: unused parameter 'a4' [-Wunused-parameter]
...drvid, void a0, void a1, void* a2, void* a3, void* a4, void* a5, void...
^
cdrv.cpp:2722:82: warning: unused parameter 'a5' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:2722:92: warning: unused parameter 'a6' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:2744:67: warning: unused parameter 'a3' [-Wunused-parameter]
...drvid, void a0, void a1, void* a2, void* a3, void* a4, void* a5, void...
^
cdrv.cpp:2744:77: warning: unused parameter 'a4' [-Wunused-parameter]
...drvid, void a0, void a1, void* a2, void* a3, void* a4, void* a5, void...
^
cdrv.cpp:2744:87: warning: unused parameter 'a5' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:2744:97: warning: unused parameter 'a6' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:2798:52: warning: unused parameter 'a2' [-Wunused-parameter]
int drv_frame(int drvid, void a0, void a1, void* a2, void* a3, void* a...
^
cdrv.cpp:2798:62: warning: unused parameter 'a3' [-Wunused-parameter]
int drv_frame(int drvid, void a0, void a1, void* a2, void* a3, void* a4, v...
^
cdrv.cpp:2798:72: warning: unused parameter 'a4' [-Wunused-parameter]
...drvid, void a0, void a1, void* a2, void* a3, void* a4, void* a5, void...
^
cdrv.cpp:2798:82: warning: unused parameter 'a5' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:2798:92: warning: unused parameter 'a6' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:2828:62: warning: unused parameter 'a3' [-Wunused-parameter]
int drv_label(int drvid, void a0, void a1, void* a2, void* a3, void* a4, v...
^
cdrv.cpp:2828:72: warning: unused parameter 'a4' [-Wunused-parameter]
...drvid, void a0, void a1, void* a2, void* a3, void* a4, void* a5, void...
^
cdrv.cpp:2828:82: warning: unused parameter 'a5' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:2828:92: warning: unused parameter 'a6' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:2928:55: warning: unused parameter 'a2' [-Wunused-parameter]
int drv_groupbox(int drvid, void a0, void a1, void* a2, void* a3, void...
^
cdrv.cpp:2928:65: warning: unused parameter 'a3' [-Wunused-parameter]
int drv_groupbox(int drvid, void a0, void a1, void* a2, void* a3, void* a4...
^
cdrv.cpp:2928:75: warning: unused parameter 'a4' [-Wunused-parameter]
...drvid, void a0, void a1, void* a2, void* a3, void* a4, void* a5, void...
^
cdrv.cpp:2928:85: warning: unused parameter 'a5' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:2928:95: warning: unused parameter 'a6' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:2954:63: warning: unused parameter 'a3' [-Wunused-parameter]
int drv_dialog(int drvid, void a0, void a1, void* a2, void* a3, void* a4, ...
^
cdrv.cpp:2954:73: warning: unused parameter 'a4' [-Wunused-parameter]
...drvid, void a0, void a1, void* a2, void* a3, void* a4, void* a5, void...
^
cdrv.cpp:2954:83: warning: unused parameter 'a5' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:2954:93: warning: unused parameter 'a6' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:3012:65: warning: unused parameter 'a3' [-Wunused-parameter]
int drv_combobox(int drvid, void a0, void a1, void* a2, void* a3, void* a4...
^
cdrv.cpp:3012:75: warning: unused parameter 'a4' [-Wunused-parameter]
...drvid, void a0, void a1, void* a2, void* a3, void* a4, void* a5, void...
^
cdrv.cpp:3012:85: warning: unused parameter 'a5' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:3012:95: warning: unused parameter 'a6' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:3094:65: warning: unused parameter 'a3' [-Wunused-parameter]
int drv_lineedit(int drvid, void a0, void a1, void* a2, void* a3, void* a4...
^
cdrv.cpp:3094:75: warning: unused parameter 'a4' [-Wunused-parameter]
...drvid, void a0, void a1, void* a2, void* a3, void* a4, void* a5, void...
^
cdrv.cpp:3094:85: warning: unused parameter 'a5' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:3094:95: warning: unused parameter 'a6' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:3241:67: warning: unused parameter 'a3' [-Wunused-parameter]
...drvid, void a0, void a1, void* a2, void* a3, void* a4, void* a5, void...
^
cdrv.cpp:3241:77: warning: unused parameter 'a4' [-Wunused-parameter]
...drvid, void a0, void a1, void* a2, void* a3, void* a4, void* a5, void...
^
cdrv.cpp:3241:87: warning: unused parameter 'a5' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:3241:97: warning: unused parameter 'a6' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:3348:53: warning: unused parameter 'a2' [-Wunused-parameter]
int drv_slider(int drvid, void a0, void a1, void* a2, void* a3, void* ...
^
cdrv.cpp:3348:63: warning: unused parameter 'a3' [-Wunused-parameter]
int drv_slider(int drvid, void a0, void a1, void* a2, void* a3, void* a4, ...
^
cdrv.cpp:3348:73: warning: unused parameter 'a4' [-Wunused-parameter]
...drvid, void a0, void a1, void* a2, void* a3, void* a4, void* a5, void...
^
cdrv.cpp:3348:83: warning: unused parameter 'a5' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:3348:93: warning: unused parameter 'a6' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:3380:17: warning: unused variable 'self' [-Wunused-variable]
QScrollBar self = (QScrollBar)drvGetNative(a0);
^
cdrv.cpp:3378:46: warning: unused parameter 'a1' [-Wunused-parameter]
int drv_scrollbar(int drvid, void a0, void a1, void* a2, void* a3, voi...
^
cdrv.cpp:3378:56: warning: unused parameter 'a2' [-Wunused-parameter]
int drv_scrollbar(int drvid, void a0, void a1, void* a2, void* a3, voi...
^
cdrv.cpp:3378:66: warning: unused parameter 'a3' [-Wunused-parameter]
int drv_scrollbar(int drvid, void a0, void a1, void* a2, void* a3, void* a...
^
cdrv.cpp:3378:76: warning: unused parameter 'a4' [-Wunused-parameter]
...drvid, void a0, void a1, void* a2, void* a3, void* a4, void* a5, void...
^
cdrv.cpp:3378:86: warning: unused parameter 'a5' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:3378:96: warning: unused parameter 'a6' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:3392:51: warning: unused parameter 'a2' [-Wunused-parameter]
int drv_dial(int drvid, void a0, void a1, void* a2, void* a3, void* a4...
^
cdrv.cpp:3392:61: warning: unused parameter 'a3' [-Wunused-parameter]
int drv_dial(int drvid, void a0, void a1, void* a2, void* a3, void* a4...
^
cdrv.cpp:3392:71: warning: unused parameter 'a4' [-Wunused-parameter]
...drvid, void a0, void a1, void* a2, void* a3, void* a4, void* a5, void...
^
cdrv.cpp:3392:81: warning: unused parameter 'a5' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:3392:91: warning: unused parameter 'a6' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:3434:52: warning: unused parameter 'a2' [-Wunused-parameter]
int drv_brush(int drvid, void a0, void a1, void* a2, void* a3, void* a...
^
cdrv.cpp:3434:62: warning: unused parameter 'a3' [-Wunused-parameter]
int drv_brush(int drvid, void a0, void a1, void* a2, void* a3, void* a4, v...
^
cdrv.cpp:3434:72: warning: unused parameter 'a4' [-Wunused-parameter]
...drvid, void a0, void a1, void* a2, void* a3, void* a4, void* a5, void...
^
cdrv.cpp:3434:82: warning: unused parameter 'a5' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:3434:92: warning: unused parameter 'a6' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:3468:50: warning: unused parameter 'a2' [-Wunused-parameter]
int drv_pen(int drvid, void a0, void a1, void* a2, void* a3, void* a4...
^
cdrv.cpp:3468:60: warning: unused parameter 'a3' [-Wunused-parameter]
int drv_pen(int drvid, void a0, void a1, void* a2, void* a3, void* a4...
^
cdrv.cpp:3468:70: warning: unused parameter 'a4' [-Wunused-parameter]
...drvid, void a0, void a1, void* a2, void* a3, void* a4, void* a5, void...
^
cdrv.cpp:3468:80: warning: unused parameter 'a5' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:3468:90: warning: unused parameter 'a6' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:3510:84: warning: unused parameter 'a5' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:3510:94: warning: unused parameter 'a6' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:3674:61: warning: unused parameter 'a2' [-Wunused-parameter]
int drv_listwidgetitem(int drvid, void a0, void a1, void* a2, void* a3...
^
cdrv.cpp:3674:71: warning: unused parameter 'a3' [-Wunused-parameter]
...drvid, void a0, void a1, void* a2, void* a3, void* a4, void* a5, void...
^
cdrv.cpp:3674:81: warning: unused parameter 'a4' [-Wunused-parameter]
...drvid, void a0, void a1, void* a2, void* a3, void* a4, void* a5, void...
^
cdrv.cpp:3674:91: warning: unused parameter 'a5' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:3674:101: warning: unused parameter 'a6' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:3776:67: warning: unused parameter 'a3' [-Wunused-parameter]
...drvid, void a0, void a1, void* a2, void* a3, void* a4, void* a5, void...
^
cdrv.cpp:3776:77: warning: unused parameter 'a4' [-Wunused-parameter]
...drvid, void a0, void a1, void* a2, void* a3, void* a4, void* a5, void...
^
cdrv.cpp:3776:87: warning: unused parameter 'a5' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:3776:97: warning: unused parameter 'a6' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:3870:67: warning: unused parameter 'a3' [-Wunused-parameter]
...drvid, void a0, void a1, void* a2, void* a3, void* a4, void* a5, void...
^
cdrv.cpp:3870:77: warning: unused parameter 'a4' [-Wunused-parameter]
...drvid, void a0, void a1, void* a2, void* a3, void* a4, void* a5, void...
^
cdrv.cpp:3870:87: warning: unused parameter 'a5' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:3870:97: warning: unused parameter 'a6' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:3928:95: warning: unused parameter 'a6' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:3998:77: warning: unused parameter 'a4' [-Wunused-parameter]
...drvid, void a0, void a1, void* a2, void* a3, void* a4, void* a5, void...
^
cdrv.cpp:3998:87: warning: unused parameter 'a5' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:3998:97: warning: unused parameter 'a6' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:4044:61: warning: unused parameter 'a2' [-Wunused-parameter]
int drv_basescrollarea(int drvid, void a0, void a1, void* a2, void* a3...
^
cdrv.cpp:4044:71: warning: unused parameter 'a3' [-Wunused-parameter]
...drvid, void a0, void a1, void* a2, void* a3, void* a4, void* a5, void...
^
cdrv.cpp:4044:81: warning: unused parameter 'a4' [-Wunused-parameter]
...drvid, void a0, void a1, void* a2, void* a3, void* a4, void* a5, void...
^
cdrv.cpp:4044:91: warning: unused parameter 'a5' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:4044:101: warning: unused parameter 'a6' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:4070:87: warning: unused parameter 'a5' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
cdrv.cpp:4070:97: warning: unused parameter 'a6' [-Wunused-parameter]
...void a0, void a1, void* a2, void* a3, void* a4, void* a5, void* a6)
^
187 warnings and 1 error generated.
make: *** [cdrv.o] Error 1
Hi,
I want to add some more Qt classes, namely for working with QML, but I have a hard time to understand all the "drv" magic. Can you explain it briefly, and explain some of the tags in the .lua files, for example:
Commentig one of the complex files will be best, for example widget.lua.
Thank you.
Perhaps people install several Qt in Linux box, such as Qt4 && Qt5, so it is better to set custom location for Qt5
https://github.com/xiangzhai/go-qt5/commit/cdb3d1666107d231ea07fe23312a0b54b3ef7feb
Just a couple of notes of getting this to work in windows.
First, it's probably good to note that this will only work with 32bit go and using a 32bit compiler like mingw.
set GOARCH=386
Also, I was having issues with it not working with libstdc++. I fixed this by statically linking to it by modifying goqtdrv5/qtdrv.pro and adding
QMAKE_LFLAGS = -static-libgcc -static-libstdc++
I also had to compile goqtdrv5 using the MSYS shell. Could not get it to work in window's cmd.
How to use .ui file ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.