goqt icon indicating copy to clipboard operation
goqt copied to clipboard

calculator and codeedit do not work

Open mixedCase opened this issue 9 years ago • 16 comments

Running Arch Linux/amd64. All examples work, excepting calculator and codeedit (and "application doesn't show any icons in toolbar, not sure if bug or it's on my end).

calculator stdout is "error load ui"

codeedit creates a window but it's fully transparent (no content, frozen).

According to examples/version: GoQt version is 0.1.1 Qt version is 5.5.1 Go version is 1.5.2

mixedCase avatar Jan 05 '16 02:01 mixedCase

fix it https://github.com/visualfc/goqt/commit/43bd8ecbaedeb27eb0d1ef828c10900523ee47f4 please update 0.1.2 or last

visualfc avatar Jan 06 '16 07:01 visualfc

Updated. Now running ./build.sh makes goqt_rcc generate a comment at the beginning of calculatorbuilder_qrc.go with special spanish utf-8 characters (I'm running a spanish locale) and makes the Go build process crash with "illegal UTF-8 encoding" message.

If I remove the comment and skip goqt_rcc step in build.sh, I still get "error load ui".

mixedCase avatar Jan 06 '16 08:01 mixedCase

check and run on liteide or other utf8 system test.

visualfc avatar Jan 06 '16 13:01 visualfc

My locale is UTF-8 compliant. es_UY.UTF-8 to be more precise

I don't see how running your script from LiteIDE would change anything, I wouldn't know how to do it either, I use the command line Go utilities.

mixedCase avatar Jan 06 '16 13:01 mixedCase

Today I'm install ArchLinux64 and fix GoQt to 0.1.2. The shell build examples is normal. LiteIDE filesystem build.bash right context menu to execute is normal.

visualfc avatar Jan 06 '16 14:01 visualfc

Try installing Arch Linux with an es_UY.UTF-8 locale, although I'm sure you will reproduce this with other locales who use accents and similar characters.

You can also try, without needing to do a full system install, after generating with rcc the calculatorbuilder_qrc.go file, replace the header at the start with the one my system generates:

/****************************************************************************
** Resource object code
**
** Created: mié. ene. 6 11:22:04 2016
**      by: The Resource Compiler for Qt version 5.5.1
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

The "é" character is the one triggering the crash.

However, even if I remove that character, and successfully compile the application afterwards with go build -ldflags "-r ." -o ../../bin/calculatorbuilder; when running the binary I get the error load ui message:

2016/01/06 11:25:30 error load ui

mixedCase avatar Jan 06 '16 14:01 mixedCase

Please upload full qrc.go file

visualfc avatar Jan 06 '16 15:01 visualfc

I just deleted an upload of the edited version without the é character. Here's the correct one:

https://www.mediafire.com/?1bygm1qun1r160s

The file won't even upload using a gist application because of the incorrect UTF-8 character.

mixedCase avatar Jan 06 '16 15:01 mixedCase

please update to lastest and check.

https://github.com/visualfc/goqt/commits/master

visualfc avatar Jan 07 '16 02:01 visualfc

Still getting "error load ui" on calculator.

However, I'm not sure what commit did it, but codeedit is now working.

mixedCase avatar Jan 07 '16 14:01 mixedCase

Please make latest goqt rcc and upload build qrc.go file

visualfc avatar Jan 07 '16 15:01 visualfc

https://gist.github.com/anonymous/74841e8947daf79d3eab

mixedCase avatar Jan 07 '16 15:01 mixedCase

hello, I download the complete zip file just 2 days, so possibly i have the latest copies. i tried executing the examples but none of them seem to work for me. i get the following errors, runtime.main: undefined: main.init runtime.main: undefined: main.main

i have not added any new file with *_test.go I am using linux mint and go 1.5.2

kindly let me know how i can fix this issue

rahul-goqt avatar Feb 09 '16 15:02 rahul-goqt

@rahul-goqt That seems like a different problem. You should probably post it as a new issue.

mixedCase avatar Feb 09 '16 15:02 mixedCase

Pinging @visualfc

Any news on this?

mixedCase avatar Feb 14 '16 21:02 mixedCase

Failed to get calculatorbuilder example working (fails with error load ui message), also icons are missing in application example (I guess same issue with loading resources). Tested on OS X 10.11.3, Ubuntu 14.04 32-bit, Ubuntu 15.10 64-bit; QT 5.5.1; Go versions 1.5.3 & 1.6.2rc2 (both on each OS above)

UPD: I've tried same configurations but with two additional QT versions. It works fine with QT 4.8.6 but fails to load UI with QT 5.2.1 and QT 5.5.1

qrc.go produced by QT 4 that works even with QT 5: https://gist.github.com/zlowred/5067e0872ef844e37483 qrc.go produced by QT 5 that fails to load UI: https://gist.github.com/zlowred/73812c5df897619b6397

zlowred avatar Feb 15 '16 06:02 zlowred