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

2016-01-20 Thread william.croc...@analog.com




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.



My complaint:

Some things can be done both with a function call on a widget or
by applying a style sheet. This is good.

Other things can only be done using a style sheet.
This is bad because it forces the use a style sheet
and the application of a style sheet will fail quietly
if you make a syntax error. Even if your theory is right on.

I use C++ because I want a strongly typed language which complains during
compilation over a large class of mistakes. The style sheet processor never
says a dam thing no matter how much garbage I give it.

Bill


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  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=CwICAg=G4BpsyPyB19LB50bn2swXw=cAG2c-SQES5P2qb8IW-uwnBOCX_f2qYJIlzenFnoHUc=72lOuNx0ynlsEHuFrPABPSERn-3rl6lLcmGJPjwMUyM=_eiFP6KwO-a23ewP0pR6PmtKfHuItsnBxI5CqbqHf0A=
___
Interest mailing list
Interest@qt-project.org
https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.qt-2Dproject.org_mailman_listinfo_interest=CwICAg=G4BpsyPyB19LB50bn2swXw=cAG2c-SQES5P2qb8IW-uwnBOCX_f2qYJIlzenFnoHUc=72lOuNx0ynlsEHuFrPABPSERn-3rl6lLcmGJPjwMUyM=hTREm7d0dsQDlkh2BmNas5Hp0G__e31BEBQpjIDdAAw=



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.


___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


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

2016-01-20 Thread André Somers



Op 20/01/2016 om 15:46 schreef william.croc...@analog.com:




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.



My complaint:

Some things can be done both with a function call on a widget or
by applying a style sheet. This is good.

Other things can only be done using a style sheet.
This is bad because it forces the use a style sheet
and the application of a style sheet will fail quietly
if you make a syntax error. Even if your theory is right on.

I use C++ because I want a strongly typed language which complains during
compilation over a large class of mistakes. The style sheet processor 
never

says a dam thing no matter how much garbage I give it.
Everything you can do with a style sheet can also be done using a 
QStyle, or a QProxyStyle.


André

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


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

2016-01-20 Thread Edward Sutton

> On Jan 20, 2016, at 8:46 AM, william.croc...@analog.com wrote:
>
>
>>>
>>> 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.
>>
>
> My complaint:
>
> Some things can be done both with a function call on a widget or
> by applying a style sheet. This is good.
>
> Other things can only be done using a style sheet.
> This is bad because it forces the use a style sheet
> and the application of a style sheet will fail quietly
> if you make a syntax error. Even if your theory is right on.

Style sheets and widgets seem to be trial-and-error.

This is one of the issues that keep me from using QML.  Similar to using style 
sheets used with QWidgets, QML development seems to be trial-and-error.

With QML development I spend much time searching for magical QML source code 
examples to cut & copy some source snippets.  I finally get it to look nice on 
OS X, then I run on iOS and maybe it looks nice or maybe it does not.  Then I 
move on to testing on Android and some missing dependency prevents it from even 
executing.  I am not saying QWidgets looks better on mobile devices than QML 
but perhaps they are more predictable.

>
> I use C++ because I want a strongly typed language which complains during
> compilation over a large class of mistakes. The style sheet processor never
> says a dam thing no matter how much garbage I give it.

While I appreciate the more-native look of QML, it seems that each time I 
attempt to start using it I get a bit closer to adopting it, however, I always 
end up reverting back to to my old-school QWidgets.  I need to take a a day or 
two of QML training.

I appreciate my compiler complaints.  Full-blown -Wall, turn on every-added 
warning I can find, always enable -Werror so I do not get lazy and start 
ignoring the noise.

-Ed

>
> Bill
>
>> 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  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=CwICAg=G4BpsyPyB19LB50bn2swXw=cAG2c-SQES5P2qb8IW-uwnBOCX_f2qYJIlzenFnoHUc=72lOuNx0ynlsEHuFrPABPSERn-3rl6lLcmGJPjwMUyM=_eiFP6KwO-a23ewP0pR6PmtKfHuItsnBxI5CqbqHf0A=
 ___
 Interest mailing list
 Interest@qt-project.org
 https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.qt-2Dproject.org_mailman_listinfo_interest=CwICAg=G4BpsyPyB19LB50bn2swXw=cAG2c-SQES5P2qb8IW-uwnBOCX_f2qYJIlzenFnoHUc=72lOuNx0ynlsEHuFrPABPSERn-3rl6lLcmGJPjwMUyM=hTREm7d0dsQDlkh2BmNas5Hp0G__e31BEBQpjIDdAAw=

>>>
>>> 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.
>>
> ___
> Interest mailing list
> Interest@qt-project.org
> https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.qt-2Dproject.org_mailman_listinfo_interest=CwICAg=G4BpsyPyB19LB50bn2swXw=cAG2c-SQES5P2qb8IW-uwnBOCX_f2qYJIlzenFnoHUc=ym0pgf0-jGTr8UG_SwHH9ub9f8VPo9dbbUynsddlFZU=rVGTf8EVCghwe71vSR8sXs7XkGE9wrtgzaKZ929bmxA=

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 

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

2016-01-20 Thread 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.

Thank you for taking time to reply.

-Ed


> On Jan 19, 2016, at 12:43 AM, Bo Thorsen  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=CwICAg=G4BpsyPyB19LB50bn2swXw=cAG2c-SQES5P2qb8IW-uwnBOCX_f2qYJIlzenFnoHUc=72lOuNx0ynlsEHuFrPABPSERn-3rl6lLcmGJPjwMUyM=_eiFP6KwO-a23ewP0pR6PmtKfHuItsnBxI5CqbqHf0A=
>  ___
> Interest mailing list
> Interest@qt-project.org
> https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.qt-2Dproject.org_mailman_listinfo_interest=CwICAg=G4BpsyPyB19LB50bn2swXw=cAG2c-SQES5P2qb8IW-uwnBOCX_f2qYJIlzenFnoHUc=72lOuNx0ynlsEHuFrPABPSERn-3rl6lLcmGJPjwMUyM=hTREm7d0dsQDlkh2BmNas5Hp0G__e31BEBQpjIDdAAw=

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.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


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

2016-01-20 Thread Bo Thorsen

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  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=CwICAg=G4BpsyPyB19LB50bn2swXw=cAG2c-SQES5P2qb8IW-uwnBOCX_f2qYJIlzenFnoHUc=72lOuNx0ynlsEHuFrPABPSERn-3rl6lLcmGJPjwMUyM=_eiFP6KwO-a23ewP0pR6PmtKfHuItsnBxI5CqbqHf0A=
 ___
Interest mailing list
Interest@qt-project.org
https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.qt-2Dproject.org_mailman_listinfo_interest=CwICAg=G4BpsyPyB19LB50bn2swXw=cAG2c-SQES5P2qb8IW-uwnBOCX_f2qYJIlzenFnoHUc=72lOuNx0ynlsEHuFrPABPSERn-3rl6lLcmGJPjwMUyM=hTREm7d0dsQDlkh2BmNas5Hp0G__e31BEBQpjIDdAAw=


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
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


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

2016-01-19 Thread Rainer Wiesenfarth
From: Bo Thorsen
> 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.

We experience a similar behavior with Qt 5.3.2 on Linux, but only when using 
style sheets. There seems to be no option to get rid of the tick mark. See 
attached screenshot...

Best Regards / Mit freundlichen Grüßen
Rainer Wiesenfarth

-- 
Software Engineer | Trimble Imaging Division
Rotebühlstraße 81 | 70178 Stuttgart | Germany
Office +49 711 22881 0 | Fax +49 711 22881 11
http://www.trimble.com/imaging/ | http://www.inpho.de/

Trimble Germany GmbH, Am Prime Parc 11, 65479 Raunheim
Eingetragen beim Amtsgericht Darmstadt unter HRB 83893,
Geschäftsführer: Dr. Frank Heimberg, Hans-Jürgen Gebauer 
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


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

2016-01-18 Thread 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.

[cid:329FA5E8-77C2-4F8C-8849-96D4DEB58A7A@ditchwitch.cmw.internal]


Item icon overlays text.

[cid:25C66223-AD31-4A3E-9CE5-00FAA45ACD50@ditchwitch.cmw.internal]


Thanks,

-Ed



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.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


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

2016-01-18 Thread Bo Thorsen

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
http://www.vikingsoft.eu
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest