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

press QComboBox long time, menu will hide when show with Popup mode

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.15.2, 6.0.0
    • None
    • Ubuntu19.04,deepin
    • Linux/X11

    Description

      Hi,

      create a QComboBox and add some items on linux platform(such as ubuntu, uos), press  QComboBox long time, the menu will show with popup window. and then release left mouse button(do not move mouse position), the popup window will hide right now.

      analysis  file of qcombobox.cpp , the function showPopup of line 2577 , this code:

      const bool usePopup = style->styleHint(QStyle::SH_ComboBox_Popup, &opt, this);

      get the usePopup value always true on the linux, when i release left button, the eventFilter of line 744 will be run,

      case QEvent::MouseButtonRelease will be  enter, there are two flag to control ignoreEvent value,   if   popupTimer.elapsed()  more than  QApplication::doubleClickInterval() , the ignoreEvent   will be false,  at this time, popupmenu will be hide.

       

      the error.mp4  review the bug when  show  popup.    the right.mp4 is normal work.

       

      Attachments

        1. error.mp4
          923 kB
        2. right.mp4
          992 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
            kingderzhang kingderzhang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes