[Interest] Add margin spacing between QComboBox item icon and text ?

Bo Thorsen bo at vikingsoft.eu
Wed Jan 20 15:26:57 CET 2016


Den 20-01-2016 kl. 15:23 skrev Edward Sutton:
>>> I don't know what you did, but that's not how it normally looks. Obviously not.
>
> You are correct. My mistake.
>
> I could not reproduce when I made a new app using both SVG and PNG image sources.
>
> The root cause was my icon sizes were too big for the QComboBox::iconSize.  I had also found some stylesheet commands I had added to the QComboBox.
>
> I do not remember why I added a styleSheet.  Perhaps to make it more fat-finger touch-friendly for Android or iOS.  Anyway, I must re-think and re-test.

I always tell my customers to stay away from style sheets. They are way 
more trouble than what they are worth.

I'd love to see this crap removed from Qt in Qt 6 completely. But that 
won't happen.

> Thank you for taking time to reply.

np :)

>> On Jan 19, 2016, at 12:43 AM, Bo Thorsen <bo at vikingsoft.eu> wrote:
>>
>> Den 18-01-2016 kl. 19:36 skrev Edward Sutton:
>>> When the QComboBox drop-down is activated, the icons overlay the text
>>> making it hard to read.
>>>
>>> Is there a property or style sheet to adjust this?
>>>
>>> For the currently selected its, the icon and text have good spacing
>>> QComboBox.
>>>
>>> Item icon overlays text.
>>
>> I don't know what you did, but that's not how it normally looks. Obviously not.
>>
>> Bo Thorsen,
>> Director, Viking Software.
>>
>> --
>> Viking Software
>> Qt and C++ developers for hire
>> https://urldefense.proofpoint.com/v2/url?u=http-3A__www.vikingsoft.eu&d=CwICAg&c=G4BpsyPyB19LB50bn2swXw&r=cAG2c-SQES5P2qb8IW-uwnBOCX_f2qYJIlzenFnoHUc&m=72lOuNx0ynlsEHuFrPABPSERn-3rl6lLcmGJPjwMUyM&s=_eiFP6KwO-a23ewP0pR6PmtKfHuItsnBxI5CqbqHf0A&e= _______________________________________________
>> Interest mailing list
>> Interest at qt-project.org
>> https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.qt-2Dproject.org_mailman_listinfo_interest&d=CwICAg&c=G4BpsyPyB19LB50bn2swXw&r=cAG2c-SQES5P2qb8IW-uwnBOCX_f2qYJIlzenFnoHUc&m=72lOuNx0ynlsEHuFrPABPSERn-3rl6lLcmGJPjwMUyM&s=hTREm7d0dsQDlkh2BmNas5Hp0G__e31BEBQpjIDdAAw&e=
>
> This email and any files transmitted with it from The Charles Machine Works, Inc. are confidential and intended solely for the use of the individual or entity to which they are addressed. If you have received this email in error please notify the sender. Our company accepts no liability for the contents of this email, or for the consequences of any actions taken on the basis of the information provided, unless that information is subsequently confirmed in writing. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
>

Bo Thorsen,
Director, Viking Software.

-- 
Viking Software
Qt and C++ developers for hire
http://www.vikingsoft.eu



More information about the Interest mailing list