PyQt: wrap-around layout of widgets inside a QScrollArea
I am developing an app for memorizing text using PyQt4. I want to show all the words in bubbles so that you see how long the word is. But when I have all the bubbles in my QScrollArea , they are aligned one under the other. I would like to have them aligned side-by-side, but with word-wrap. I got the bubbles to work using a QLabel with rounded borders. But now that I have the words in QLabel's , PyQt doesn't consider them as words - but as widgets. So PyQt puts one widget under the other. I would like the widgets to be aligned side-by-side until they reach the end of the line, and then they