![]() Registered Member ![]()
|
I am working on a simple change, but not sure what direction I need to go from a coding standpoint. This is the result I have so far.
http://www.scottpetrovic.com/uploads/kr ... change.jpg I just swapped out the "x" box appearance with an unlock/lock icon. The code still uses a QCheckbox widget, but I just added a stylesheet in code to change the display like this:
Adding that bit is all that is needed. My questions... 1. Is this direction ok for styling checkboxes with different appearances? 2. What is the best way to reference the location of the image resources? Is the location stored somewhere? |
![]() KDE Developer ![]()
|
We use KisIcon.h/KoIcon.h for retrieving images, you can find an example in the layers docker.
for example 'koIcon("locked").pixmap(16, 16);' gives the lock icon. These can be found in krita/pics. |
Registered users: Bing [Bot], claydoh, Evergrowing, Google [Bot], rblackwell