On Dienstag, 10. September 2013 22:14:19 CEST, Jan Kundrát wrote:
Hi, there's a problem with the compose widget -- when there are too many recipients, there is not much space left for the actual area where one could type the message. That's why I'd like to add a QScrollArea to the mix. I've tried two approaches, but I don't like the result of either of them too much.

Reg. the particular layout and the case to solve, a (typical) scrollarea is 
maybe not the ebst solution.
QMenu encounters similar problems and offers a stylehint to not unfold the menu but 
instead adds "scroll buttons" (QStyle::CE_MenuScroller) on top and/or bottom of 
the menu, basically a very slim unbordered button with an arrow.

One could add such to control a scrollarea with downforced scrollbars, but the 
drawback is that sliding though a loooooooong list is not possible (ie. you're 
limited to the button autorepeatrate)


Another approach was to add an external scrollbar (ie. one that does not 
actually belong to the scrollarea, yet controls it) that spans along the entire 
envelope section (between from/to/cc/subject and the attachment view)
This makes the entire thing behave much more like a regular scrollarea with "sticky" 
"from" and "subject" items.

-> Preferences? (Depends much on whether like 20 stashed cc elements or more 
are a usecase)

layouts is not aligned for obvious reasons, and IIRC I wasn't able to get the whole thing to expand properly when I move the splitter between the "actual mail body" and the "stuff above" parts.

QScrollArea::setWidgetResizable(bool resizable) is guess.

Cheers,
Thomas

Reply via email to