Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Call for Presentations - Qt World Summit

    QGraphicsProxyWidget::conetextMenuEvent question

    General and Desktop
    2
    2
    1523
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      steno last edited by

      Not sure if this a bug, but here we go. QGraphicsProxyWidget::contextMenuEvent has the following easy out check,

      @
      void QGraphicsProxyWidget::contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
      {
      Q_D(QGraphicsProxyWidget);
      if (!event || !d->widget || !d->widget->isVisible() || !hasFocus())
      return;
      @

      The QGraphicsSceneContextMenuEvent that is passed in defaults to accepted. If you return immediately, should not the proxy then ignore the event?

      1 Reply Last reply Reply Quote 0
      • A
        andre last edited by

        I think so, yes, though of course you can't change the event if the first condition is the condition that triggers the call :-)

        1 Reply Last reply Reply Quote 0
        • First post
          Last post