View Single Post
Old 05-23-2018, 05:07 AM   #23
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,866
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by Fuzzi View Post
Hey,
got an answer from the Qt guys:


So...
To prevent that workaround and not overcomplicate it, I consider it an appropriate solution to hardcode the wordwraps and define a minWidth to approximate the width for all buttons.
That will not work, if the text has multiple lines in it Qt will paint the icons without their bases aligned, which is much worse. Like the attached image
Attached Thumbnails
Click image for larger version

Name:	Screenshot_20180523_143633.png
Views:	141
Size:	35.1 KB
ID:	164079  
kovidgoyal is offline   Reply With Quote