Could you please let us know how to achieve following cases while implementing the editor of the header title based on the QWidget which we have to embed in table header?
Case 1) How to get the column header size so that we can embed the QWidget of similar size to the column header.
Case 2) How to remove boundaries from the label which we embed to the header so that it doesn't look like a separate widget inside the header.(Please refer tableHeaderWithLabel.PNG)
Currently, we have tried the following approach to remove the boundaries from the label but boundaries are not gets removed
label->setAutoFillBackground(false);
label->setStyleSheet("background:transparent");
label->setAttribute(Qt::WA_TranslucentBackground);
label->setStyleSheet("border: 0px;");
We have created the custom label so that we can can get the double click event on it.
Case 3)Is there any signal present which gets emitted when we perform resize of a column.
We want to resize the label based on the changes done to a column so that it doesn't look like a separate widget present in the header.