c++ - How to make indentation smaller in qt tooltips with html listing format? -


i using html listing format write tooltips in qt below.

widget->settooltip(tr("<ul><li>first sentence</li></ul>")); 

i found indentation large. how can set indentation smaller?

quite time has passed here information might you.

after doing digging , because qt designer replacing , screwing html wanted use tooltip looked closely , found following:

<ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent:x;"> ... </ul> 

with x being number >= 0 (0 equivalent of left alignment). <li/> etc. can use -qt-block-indent:x inside style parameter of tag.

that sad unable make indention less without loosing bullet points. if set -qt-list-indent:0 have (as mentioned above) text on several lines left alignment. if set -qt-list-indent:1 default behaviour want change. i'm not of css/html person , qt documentation extremely lacking on topic believe decimal values not allowed hence 1 low can indention. i've tried decimal values such 0.5 or similar same result if 1 entered leads conclusion integers can used, it's bug or applies values between 0 , 1.

here example of html using indention.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -