-
Notifications
You must be signed in to change notification settings - Fork 0
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
Validate qml in Python #33
base: roomlist
Are you sure you want to change the base?
Conversation
…alidate-qml-in-py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall it looks good, aside from a couple of questions below.
def __init__(self, *args, **kwargs) -> None: | ||
super().__init__(*args, **kwargs) | ||
|
||
QtQml.qmlRegisterUncreatableType(Quotient.EventStatus, 'Quotient', 1, 0, 'EventStatus', 'EventStatus is not a creatable type') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose this doesn't work now that EventStatus
is a namespace (since yesterday in master - sorry for taking time to resolve this)?
# Resource object code (Python 3) | ||
# Created by: object code | ||
# Created by: The Resource Compiler for Qt version 6.1.1 | ||
# WARNING! All changes made in this file will be lost! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this file be under version control or does the build system recreate it every time the bindings are generated?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As we decide. Actually, it's not generated in build system, but it's easy to do so. Should I? It's autogenerated python wrapper for resources, so it makes sense, yes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed, let's make generation of this file a part of the build sequence; but please double-check with PySide people what they think about it.
…alidate-qml-in-py
…has not meta data and cannot be registered as qml type
Closes #24