Not a bad idea. Even better, I could create 3 widgets. The main widget would be a container widget that draws its frame the same as a line/text edit. Add a flow layout to that widget, then the first widget in the flow layout be the bubble widget, drawing the bubbles, it could also be a bubble container, then the next widget in the flow layout could be a line edit with no frame.
To make it feel right I think the line edit will have to grow/shrink based on the size of the text the user is typing, so that when you get near the end of the line (the edge of the dialog), the flow layout will drop the line edit to the next line and the tag line edit will start to look more like a text edit. The only play where this might not feel right is a tag with spaces in it, but I think thats ok.
One of the hard things about the bubbles was trying to get them to scroll if necessary, if the main widget is a scroll area that might make things easier.
I was hoping I could somehow just do this with a text edit and some fancy wizardry but this could work. Thanks
Bookmarks