Hi, Thanks for your prompt reply.
I added these two lines
this->setHorizontalScrollBarPolicy ( Qt::ScrollBarAlwaysOff );
this->setVerticalScrollBarPolicy ( Qt::ScrollBarAlwaysOff );
this->setHorizontalScrollBarPolicy ( Qt::ScrollBarAlwaysOff );
this->setVerticalScrollBarPolicy ( Qt::ScrollBarAlwaysOff );
To copy to clipboard, switch view to plain text mode
in the class constructor of my own class CqtImageView, which inherits from QGraphicsView.
class CqtImageView : public QGraphicsView
{
}
Unfortunately, things become even worse.
This time, before loading an image (sequence), the view already shows the scroll bar !!
So, really, have you got any demo code for this issue?
Best Regards
JIA

Originally Posted by
SixDegrees
QGraphicsView inherits QScrollArea; use QScrollArea's scrollBarPolicies to set scrollbar behavior.
Bookmarks