Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QGraphicsPathItem / QGraphicsItem / QGraphicsSimpleTextItem #25

Closed
5k3105 opened this issue Apr 21, 2016 · 7 comments
Closed

QGraphicsPathItem / QGraphicsItem / QGraphicsSimpleTextItem #25

5k3105 opened this issue Apr 21, 2016 · 7 comments

Comments

@5k3105
Copy link
Contributor

5k3105 commented Apr 21, 2016

As an example using with QPainterPath:
http://stackoverflow.com/questions/16877667/qt-modify-pathitem

QGraphicsPathItem / QGraphicsItem is stubbed out.

@5k3105 5k3105 changed the title QGraphicsPathItem / QGraphicsItem QGraphicsPathItem / QGraphicsItem / QGraphicsSimpleTextItem Apr 21, 2016
@therecipe
Copy link
Owner

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

@5k3105
Copy link
Contributor Author

5k3105 commented Apr 22, 2016

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.

@therecipe
Copy link
Owner

It's implemented now 9049942

@5k3105
Copy link
Contributor Author

5k3105 commented Apr 25, 2016

    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

@therecipe
Copy link
Owner

therecipe commented Apr 26, 2016

They should work now (the bridge examples) 9689100

@therecipe
Copy link
Owner

They are implemented now c0571ee

@5k3105
Copy link
Contributor Author

5k3105 commented May 2, 2016

Thanks. It all works :)

@5k3105 5k3105 closed this as completed May 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants