Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-1784

QGraphicsViewPrivate::recalculateContentSize() Bug

XMLWordPrintable

      When setting the horizontalScrollBarPolicy to Qt::ScrollBarAlwaysOff in a
      QGraphicsView, the horizontal size of the scene is not correctly calculated. The height is reduced by the horizontal scrollbar's height.

      This might be by modifying the following line in source:

      qgraphicsview.cpp#336:

      if (viewRect.width() > width - scrollBarExtent &&
      hbarpolicy !=Qt::ScrollBarAlwaysOff )

      { useHorizontalScrollBar = true; }

      This problem also exist in Qt 4.3.2.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            peppe Giuseppe D'Angelo
            z35liu Zheng Liu (closed Nokia identity) (Inactive)
            Votes:
            4 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes