I'm trying to use scrollarea, but I don't get scrollbars.

In my constructor I have
Qt Code:
  1. ui->setupUi(this);
  2. Canvas = new JCanvas;
  3. ui->scrollArea->setWidget(Canvas);
  4. Canvas->setGeometry(0, 0, 0, 0);
To copy to clipboard, switch view to plain text mode 
where JCanvas is my implementation of QLabel.

Next, I load a picture and then
Qt Code:
  1. QPixmap _image;
  2. _image.load(_fileName);
  3. _image = _image.scaledToWidth(_getSize.PictureWidth);
  4. Canvas->setPixmap(&_image);
  5. //...
  6. qDebug()<<ui->scrollArea->geometry();
  7. qDebug()<<_image.size();
To copy to clipboard, switch view to plain text mode 

in the output for example I got
QRect(11,47 1498x1262)
QSize(1500, 1220)
so size of the pictura is bigger than my qscrollarea.

Here is a screenshot
zrzut ekranu1.jpg