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

QMdiArea's QScrollBars does not recalculate while ScrollBaralwaysoff

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P4: Low
    • None
    • 4.7.0, 4.8.6, 5.3.0
    • None
    • win7 64bit,qt 5.3, qt4.8.6

    Description

      here is the bugs steps:
      1、add a QSubwindow to the QMdiArea, and make sure the QSubWindow in the normal state(QMdiSubWindow->showNormal(); )
      2、resize the subwindow to make sure that the scrollbar of mdiarea could be saw.(subwindow->resize(mdiarea->width()* 2, mdiarea->height() * 2); )
      3、Set the QMdiArea's Scrollbarpolicy to Qt::ScrollbarAlwaysOff.
      4、resize the subwindow's size.(subwindow->resize(width() / 3, height() /3));
      5、found that the mdiarea' scrollbar still could be operated by mouse wheel, and the scrollbar's max value didn't not be recalcuated (qDebug() << mdiarea->VerticalScrollBar()->maximum; )

      General speaking, the scollbar should be recalcuated even if the the attribute ScrollbarAlwaysOff has been set, for that the "ScrollBarAlwaysOff" just mean that the scrollbar could not be saw but not disable.

      here is the bug attachments:

      Attachments

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

        Activity

          People

            peppe Giuseppe D'Angelo
            chenjie4255 ChenJie
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes