Skip to content

Transparent background for GameWidget? #2124

Answered by erickzanardo
ahndwon asked this question in Q&A
Discussion options

You must be logged in to vote

GameWidget does not have a background color.

The black background you are seeing is most probably the color of your game which is black by default.

Try overriding the backgroundColor method of your game class to return a transparent color

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@ahndwon
Comment options

Comment options

You must be logged in to vote
1 reply
@ahndwon
Comment options

Answer selected by ahndwon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants