Why isn't QLayout a QWidget?
Solved
Brainstorm
-
@JonB said in Why isn't QLayout a QWidget?:
In HTML I layout with DIVs and they are HTML elements, just like everything else
Because HTML for a long time didn't have any support of author-defined layouts. User agent, a.k.a. "layout engine", was supposed to represent data on screen in the most appropriate way. Nowadays, we have CSS flex and grid layouts, so author can create desired layout without non-sematic HTML elements like
<div>
(or<table>
:) -
@Konstantin-Tokarev
Crikey, are we not supposed to useDIV
s for layout any more? I'm only just getting offTABLE
s....