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

Setting the style text-align: center; on a <text> element has no effect. #3

Closed
shirakaba opened this issue Jan 30, 2021 · 1 comment

Comments

@shirakaba
Copy link
Collaborator

It is suggested that this is one of the CSS properties that should apply to all widgets:

https://doc.qt.io/qt-5/stylesheet-reference.html#list-of-properties

Using quotes, i.e. text-align: 'center'; (see https://github.com/shirakaba/svelte-nodegui/issues/1), does not improve things, either.

Note that QLabel does support an alignment attribute, though React NodeGUI does not implement this prop for .

@shirakaba
Copy link
Collaborator Author

Duplicate of #7 (can't style elements) and #4 (CSS values need to be quoted). We'll continue the discussions there.

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

1 participant