QAbstractScrollArea
-
Hi
Why do you want to use QAbstractScrollArea ?There is QScrollArea you can use directly.
If you want to have a scrollable paint area, you can simply use a custom widget as a content widget
https://doc.qt.io/qt-6/qscrollarea.html#setWidget -
Hi
Why do you want to use QAbstractScrollArea ?There is QScrollArea you can use directly.
If you want to have a scrollable paint area, you can simply use a custom widget as a content widget
https://doc.qt.io/qt-6/qscrollarea.html#setWidget -
@mrjj
I do need a lower version of qscrollarea and I am curious about its usage.
I will compare their usability afterwards. -
You can just add it to the layout with addWidget() but I couldnt override paintEvent of QAbstractScrollArea.
I tried drawing some rectangles in it but it didn't work.@ikuris
Hi
Im not sure using QAbstractScrollArea is the correct way for a canvas that can scroll.
In QScrollArea the actual paint of the QScrollArea would be covered up by the content widget.
Not sure if same dont apply to QAbstractScrollArea :)