Hi Marcus, sorry for the late reply.

Say I am not going for the technicality/ code changed that is happening 
behind the scene. But rather trying to create a QLineEdit that is the same 
as the one you see in Maya.

I tried the following:
my_icon="full_keyed.png" #this is the red color label that we see in maya
self.ui.transX_lineedit.addAction(my_icon,QLineEdit.LeadingPosition)

As a start, this replication design is somewhat close to the ones we see in 
Maya, however, (see attached), I am having some issues such as:
* note the 'small' spacing between the left-outermost edge of the QLineEdit 
and the red icon
* Icon size is wrong - the image is saved with a 10x16 pixel size, I am 
expecting it to be a rectangular than squarish..

[image: lineedit_test.jpg]


Any insights?

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/eefc3480-e450-47cd-a61f-2d345be1be2d%40googlegroups.com.

Reply via email to