Skip to content
This repository was archived by the owner on Apr 14, 2026. It is now read-only.

Validate qml in Python#33

Open
Aksem wants to merge 9 commits intoroomlistfrom
validate-qml-in-py
Open

Validate qml in Python#33
Aksem wants to merge 9 commits intoroomlistfrom
validate-qml-in-py

Conversation

@Aksem
Copy link
Copy Markdown
Collaborator

@Aksem Aksem commented Aug 18, 2021

Closes #24

@Aksem Aksem requested a review from KitsuneRal August 18, 2021 08:47
@Aksem Aksem changed the base branch from master to roomlist August 18, 2021 08:47
Copy link
Copy Markdown
Member

@KitsuneRal KitsuneRal left a 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')
Copy link
Copy Markdown
Member

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)?

Comment thread demo/resources.py
# 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!
Copy link
Copy Markdown
Member

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?

Copy link
Copy Markdown
Collaborator Author

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.

Copy link
Copy Markdown
Member

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Week 8: Validate Python/QML interface

2 participants