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

Widget height is increased when call QWidget::move() and dragging/moving titlebar

    XMLWordPrintable

    Details

    • Platform/s:
      Linux/X11

      Description

      When QWidget::move() is called in moveEvent() as following:

      void Widget::moveEvent(QMoveEvent* pcEvent)
      {
          this->move(0, 0);
      }
      

      That resizable widget will move to left-upper corner. (0, 0)

      And if titlebar is dragged and moved, widget height is increased as attached image.

      resizeEvent() is called continuously, and it can be seen increasing height here. 

      void Widget::resizeEvent(QResizeEvent *event)
      {
          qDebug() << "resizeEvent: old " << event->oldSize().width() << "x" <<
                      event->oldSize().height();
          qDebug() << "resizeEvent: new " << event->size().width() << "x" <<
                      event->size().height();
      }
      

      It's causing on CentOS 7 and Ubuntu 18.04, not causing on Windows and macOS.

       

      Please check attached sample project.

       

        Attachments

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

          Activity

            People

            Assignee:
            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Reporter:
            akizawa Akihito Izawa
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes