A subclass of QTableWidget which enforces a fixed table size. More...
Public Member Functions | |
QtlFixedSizeTableWidget (QWidget *parent=0) | |
Constructor. More... | |
QtlFixedSizeTableWidget (int rows, int columns, QWidget *parent=0) | |
Constructor. More... | |
virtual QSize | sizeHint () const Q_DECL_OVERRIDE |
Return the widget size hint. More... | |
Protected Member Functions | |
virtual void | showEvent (QShowEvent *event) Q_DECL_OVERRIDE |
Show event handler. More... | |
Private Slots | |
void | sectionResized () |
Invoked when a header section is resized. More... | |
Private Member Functions | |
void | enforceSize () |
Enforce the table widget size. More... | |
void | init () |
Common initialization code for constructors. More... | |
A subclass of QTableWidget which enforces a fixed table size.
Can be used to enforce the display of exactly all lines and columns.
|
explicit |
Constructor.
[in] | parent | Optional parent widget. |
QtlFixedSizeTableWidget::QtlFixedSizeTableWidget | ( | int | rows, |
int | columns, | ||
QWidget * | parent = 0 |
||
) |
Constructor.
[in] | rows | Number of rows in the table. |
[in] | columns | Number of columns in the table. |
[in] | parent | Optional parent widget. |
|
virtual |
Return the widget size hint.
Reimplemented from QWidget to always provide the exact size of all rows and columns.
|
protectedvirtual |
Show event handler.
Reimplemented from QWidget.
event | Show event. |
|
privateslot |
Invoked when a header section is resized.
|
private |
Common initialization code for constructors.
|
private |
Enforce the table widget size.