Question #274036 on Yade changed:
https://answers.launchpad.net/yade/+question/274036

Mark S. Bentley proposed the following answer:

It looks like setMargin was deprecated and one now uses setContentsMargin (see 
http://doc.qt.io/qt-5/qlayout.html#setContentsMargins). I got the inspector 
working by replacing setMargin with setContentsMargins - but instead of a 
single value, you have to provide the left, top, right, and bottom.

e.g. if you replace

grid.setMargin(0)

with

grid.setContentsMargins(0,0,0,0)

and so on, it seems to work OK (this is with PyQt5 on ubuntu 15.10).

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

_______________________________________________
Mailing list: https://launchpad.net/~yade-users
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp

Reply via email to