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

Qt::WA_TranslucentBackground not working properly

    XMLWordPrintable

Details

    • macOS, Windows

    Description

      User have experienced a strange behavior if we use Qt::WA_TranslucentBackground to a widget. Its little hard to explain in words, so have attached a sample program and video for issue

      Steps to reproduce :

      1. Run the attached program.
      2. Point to a icon, slider will open. 
      3. Now, move the mouse in empty space between icon and slider, then move the mouse  to any side, leaveEvent is not getting called.
      4. If you take mouse to slider and then leaves the widget, it is working fine. 
      5. Now, comment the line no. 21 in sliderwidget.cpp i.e. m_popup->setAttribute(Qt::WA_TranslucentBackground);
      6. Again follow step 3, and it is working fine. 

      Expected result : LeaveEvent should not be impacted by WA_TranslucentBackground. 

       

      Attachments

        1. qtbug69717.7z
          8.10 MB
        2. qtbug69717.zip
          11 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            shmittal Shveta Mittal (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes