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

QGraphicsViewPrivate::recalculateContentSize() Bug

    XMLWordPrintable

Details

    Description

      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.

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes