Avoiding widgets to overlays the corner widget place of the QScrollArea
-
Currently I have an editor which is a custom table widget, which places a QTextEdit on top of the table widget. I move this textedit over the table widget, to make sure that it also is on the correct position when moving the scrollbars.
The table is made out of a QAbstractScrollArea and contains a custom widget on the scrollarea.Because of the QTextEdit, I want to make the textedit the size of the whole text, otherwise the text is placed on the next line. When I'm moving the edit to the height of the horizontal scrollbar, I see that in the cornerwidget area of the scrollarea, the textedit is drawn.
How could I fixed that nothing can be drawn in that area?
-
@floris said in Avoiding widgets to overlays the corner widget place of the QScrollArea:
I have an editor which is a custom table widget, which places a QTextEdit on top of the table widget
Why? What are you doing? Why can't you just use a delegate?
-
The structure of the widget was already in this way, but the code was converted from Qt3 to Qt5. It seems that in the Qt3 QScrollView it wasn't possible to move a widget such that a part of it was displayed on the corner widget place.
In the Qt5 QAbstractScrollArea it's possible, and I would like to not let the textedit draw this area. Do you have any suggestions?
P.s. it's not a QTableWidget/QTableView, it's a completely custom widget.