Custom Qt interface and connecting maya attributes

Hello,

I am starting to look into coding qt interfaces by hand and was wondering if there was a good way to connect a QlineEdit to a Maya attribute so that when you change one it changes the other. previously I was using attrFieldSliderGrp() in pymel to achieve the same thing. Any help here would be awesome.

As far as I know you’d have to connect a scriptjob from the attribute back to the qt widget to go from maya to qt and a simple signal connection to go from qt to maya.