QXlib update. Implement weightpoint calculation