I use the setHtml()
method of a setHtml()
class. I want 2 blocks to draw next. For browsers the following code is googled:
<div style="width:100%;"> <div style="float:left;">Content left div</div> <div style="float:right;">Content right div</div> </div>
when drawn in Qt, the blocks are under each other. The documentation states that the float
tag works only for tables and images.
How to place two <div>
blocks side by side in Qt5 HTML?