[Interest] Elided QMenuItem

Etienne Sandré-Chardonnal etienne.sandre at m4x.org
Mon Feb 27 17:22:56 CET 2017


Dear all,

I am writing a custom widget which is paint using QStyle MenuItem
primitives. This works as expected.

But I would like to elide the text. Is there any way to get the text
rectangle width from QStyle primitives, taking into account the icon,
margins and decorations?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20170227/34753c1e/attachment.html>


More information about the Interest mailing list