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

QPushButton recieve one xtra MousePress event if it is hidden when pressed.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P3: Somewhat important
    • Some future release
    • 4.5.1
    • Other
    • None

    Description

      1. Create a Widget with two Buttons inside
      2. One of the buttons will be initialized hidden by calling
      setVisible( false );
      3. At entering the main Widget, the invisible button will be shown
      by calling m_pButtonR->setVisible( true );
      4. If the user push this button it will be hidden again
      5. After that the user moves the mouse multiple times over the main
      widget -> so the visibility of the one button is toggled continuously

      Qt shows the following behaviour:

      1. After a while occurs an imaginary MousePress event

      2. By looking to the call stack it seems that it has it's source
      by the setVisible call

      Attachments

        1. Button.zip
          7 kB
          Martin Petersson
        2. button2.zip
          3 kB
          Martin Petersson
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            bhughes Bradley T. Hughes (closed Nokia Identity) (Inactive)
            xcm Martin Petersson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes