View Single Post
Posts: 339 | Thanked: 1,623 times | Joined on Oct 2013 @ France
#82
Originally Posted by rinigus View Post
Any ideas? If we go with the library approach, how do I register it in the QML to make it available?
I am no specialist of Python, so I took a look on the net, and saw that some people are registering objects to QML from python, like we do in C++:
Code:
QtDeclarative.qmlRegisterType(Graph, 'myPyQtGraph', 1, 0, 'PyQtGraph')
(Exemple taken from https://stackoverflow.com/questions/...nerated-window)

Wouldn't that be enough ?

Originally Posted by rinigus View Post
PS: Zeta, margins are now a property through QRectF class.
Good ! I will take a look !
 

The Following 2 Users Say Thank You to Zeta For This Useful Post: