Ismailtaktak / freemedforms

Automatically exported from code.google.com/p/freemedforms
Other
0 stars 0 forks source link

Utils::HtmlDelegate still problem with sizeHint #258

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This issue was created by revision 5086119c446c.

If you try to include in one HtmlDelegate a long sentence -> the content is not 
wordwrapped...
You can test the tests/htmldelegate/htmldelegate.pro build

Original issue reported on code.google.com by eric.mae...@gmail.com on 23 Dec 2012 at 1:01

GoogleCodeExporter commented 9 years ago
screenshot? Here in the test the wrapping works (kind of...)

Original comment by christian.a.reiter@gmail.com on 28 Dec 2012 at 11:41

GoogleCodeExporter commented 9 years ago
I added a second (empty) column to the fake model, so that you can grab the 
column with the mouse and resize it easier. So you see the problem better, look 
at revision 39172063575a.
The document has the option set right IMHO (wrapping at word boundaries or 
anywhere), but IMHO the sizehint is a bit wrong, you can see this best at the 
table view.

Original comment by christian.a.reiter@gmail.com on 28 Dec 2012 at 12:33

GoogleCodeExporter commented 9 years ago
screenshot (Qt4). text is crossing the widget's borders.

Original comment by christian.a.reiter@gmail.com on 28 Dec 2012 at 12:35

Attachments:

GoogleCodeExporter commented 9 years ago
IMHO the width is working fine, only the height is fixed for 3 lines.
So no matter how much text you have, it's only 3 lines of text displayed...
I don't know much about sizehints, but these ae my ideas.

Original comment by christian.a.reiter@gmail.com on 28 Dec 2012 at 12:53

GoogleCodeExporter commented 9 years ago
Take a look at AnnouncementItemDelegate.cpp in the testing 'appsrc' path. It 
forces the view to update using a qtimer

Original comment by eric.mae...@gmail.com on 28 Dec 2012 at 1:38

GoogleCodeExporter commented 9 years ago
This issue was updated by revision 2f7b032def45.

Style sizehint problematic in treeviews

Original comment by eric.mae...@gmail.com on 28 Dec 2012 at 2:34

GoogleCodeExporter commented 9 years ago
This issue was updated by revision 56dc37e015b1.

But the textElideMode is not yet managed

Original comment by eric.mae...@gmail.com on 28 Dec 2012 at 8:51

GoogleCodeExporter commented 9 years ago

Original comment by eric.mae...@gmail.com on 21 Jan 2013 at 7:52