collagraph custom QtWidgets #104
jamesdbrock
started this conversation in
General
Replies: 3 comments
-
Do I have to add all the QtWidgets to the PySide renderer? https://github.com/fork-tongue/collagraph/blob/master/collagraph/renderers/pyside_renderer.py |
Beta Was this translation helpful? Give feedback.
0 replies
-
Oh here is an example collagraph/tests/pyside/test_pyside_renderer.py Lines 47 to 54 in c23e173 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Oh yes this works renderer = PySideRenderer(autoshow=False)
renderer.register("RichTextPushButton", RichTextPushButton)
cg.h(
"RichTextPushButton",
{
"text": "<h1>New Project</h1>",
},
), |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Suppose I want to use a custom QtWidget, like the
RichTextPushButton
in https://stackoverflow.com/questions/2990060/qt-qpushbutton-text-formatting/62893567#62893567Can I do something like this?
Beta Was this translation helpful? Give feedback.
All reactions