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

Documentation for adding colored RectItem not clear #164

Open
isaacgerg opened this issue Jun 19, 2018 · 0 comments
Open

Documentation for adding colored RectItem not clear #164

isaacgerg opened this issue Jun 19, 2018 · 0 comments

Comments

@isaacgerg
Copy link

isaacgerg commented Jun 19, 2018

I would like to add several classes which are colored differently using the RectItem as a base class. However, I cannot get any of them to work after following the instructions. Is there an example somewhere of how to do this? I am running into dependency issues (e.g. Can't find my new class or classes derived from it).

        return QRectF(float(model_item[self.prefix() + 'x']),
                      float(model_item[self.prefix() + 'y']),
                      float(model_item[self.prefix() + 'width']),
                      float(model_item[self.prefix() + 'height']))

self.prefix() is None.

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