Wasabi
9th November 2010, 17:57
I am trying to create a table of sorts within my application that displays various bits of information. However, I can't figure out how to make each "cell" have a frame around it using QLayout and its children.
I've been using QGridLayout and it works quite well to create the table itself, but it has no support (as far as I can tell) for frames enclosing all its children. I've thought of wrapping each child in a QFrame and then making the QFrames the children of QGridLayout, but that seems quite overly complex.
Is there some layout class with support for such things? I've looked into QGroupBox, but to my understanding it is a unidimensional layout (either horizontal or vertical) and is thus not practical to display a table.
Any hints?
I've been using QGridLayout and it works quite well to create the table itself, but it has no support (as far as I can tell) for frames enclosing all its children. I've thought of wrapping each child in a QFrame and then making the QFrames the children of QGridLayout, but that seems quite overly complex.
Is there some layout class with support for such things? I've looked into QGroupBox, but to my understanding it is a unidimensional layout (either horizontal or vertical) and is thus not practical to display a table.
Any hints?