Giter Site home page Giter Site logo

Comments (7)

therecipe avatar therecipe commented on August 28, 2024

QGraphicsItem is an abstract class, so maybe it's related to #24.
I will look into these.

from qt.

5k3105 avatar 5k3105 commented on August 28, 2024

For QGraphicsSimpleTextItem, I think I can use QGraphicsScene.AddSimpleText however, if I want to position it I'd need to use QGrapicsItem.SetPos which is not implemented.

from qt.

therecipe avatar therecipe commented on August 28, 2024

It's implemented now 9049942

from qt.

5k3105 avatar 5k3105 commented on August 28, 2024
    if 0 NEQ 0 exit /b 0

    go run C:\goworksp/src/github.com/therecipe/qt/internal/setup/test.go
    _________________________Test-desktop__________________________
    widgets\line_edits             35s
    widgets\video_player           41s
    widgets\graphicsscene          35s
    quick\bridge

    test.quick\bridge
    output:

    build
    output:# github.com/therecipe/qt/internal/examples/quick/bridge
    C:\windows\go-build065537034\github.com\therecipe\qt\internal\examples\quick\bridge\_obj\_cgo_main.c: In function 'crosscall2':
    C:\windows\go-build065537034\github.com\therecipe\qt\internal\examples\quick\bridge\_obj\_cgo_main.c:2:23: warning: unused parameter 'fn' [-Wunused-parameter]
     void crosscall2(void(*fn)(void*, int), void *a, int c) { }
                           ^
    C:\windows\go-build065537034\github.com\therecipe\qt\internal\examples\quick\bridge\_obj\_cgo_main.c:2:46: warning: unused parameter 'a' [-Wunused-parameter]
     void crosscall2(void(*fn)(void*, int), void *a, int c) { }
                                                  ^
    C:\windows\go-build065537034\github.com\therecipe\qt\internal\examples\quick\bridge\_obj\_cgo_main.c:2:53: warning: unused parameter 'c' [-Wunused-parameter]
     void crosscall2(void(*fn)(void*, int), void *a, int c) { }
                                                         ^
    C:\windows\go-build065537034\github.com\therecipe\qt\internal\examples\quick\bridge\_obj\_cgo_main.c: In function '_cgo_allocate':
    C:\windows\go-build065537034\github.com\therecipe\qt\internal\examples\quick\bridge\_obj\_cgo_main.c:5:26: warning: unused parameter 'a' [-Wunused-parameter]
     void _cgo_allocate(void *a, int c) { }
                              ^
    C:\windows\go-build065537034\github.com\therecipe\qt\internal\examples\quick\bridge\_obj\_cgo_main.c:5:33: warning: unused parameter 'c' [-Wunused-parameter]
     void _cgo_allocate(void *a, int c) { }
                                     ^
    C:\windows\go-build065537034\github.com\therecipe\qt\internal\examples\quick\bridge\_obj\_cgo_main.c: In function '_cgo_panic':
    C:\windows\go-build065537034\github.com\therecipe\qt\internal\examples\quick\bridge\_obj\_cgo_main.c:6:23: warning: unused parameter 'a' [-Wunused-parameter]
     void _cgo_panic(void *a, int c) { }
                           ^
    C:\windows\go-build065537034\github.com\therecipe\qt\internal\examples\quick\bridge\_obj\_cgo_main.c:6:30: warning: unused parameter 'c' [-Wunused-parameter]
     void _cgo_panic(void *a, int c) { }
                                  ^
    # github.com/therecipe/qt/internal/examples/quick/bridge
    .\moc.go:313: cannot use signal (type interface {}) as type unsafe.Pointer in argument to core.NewQMetaMethodFromPointer: need type assertion
    .\moc.go:315: cannot use signal (type interface {}) as type unsafe.Pointer in argument to core.NewQMetaMethodFromPointer: need type assertion
    .\moc.go:403: cannot use signal (type interface {}) as type unsafe.Pointer in argument to core.NewQMetaMethodFromPointer: need type assertion
    .\moc.go:405: cannot use signal (type interface {}) as type unsafe.Pointer in argument to core.NewQMetaMethodFromPointer: need type assertion

    error:exit status 2


    error:exit status 1

    exit status 1

from qt.

therecipe avatar therecipe commented on August 28, 2024

They should work now (the bridge examples) 9689100

from qt.

therecipe avatar therecipe commented on August 28, 2024

They are implemented now c0571ee

from qt.

5k3105 avatar 5k3105 commented on August 28, 2024

Thanks. It all works :)

from qt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.