Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Context menu behaves differently on windows as on linux

Context menu behaves differently on windows as on linux

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 779 Views
  • 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.
  • A Offline
    A Offline
    acmezger
    wrote on last edited by
    #1

    Hello,

    I construct a mainwindow where I specify a context menu with

    connect(w1, SIGNAL(customContextMenuRequested(const QPoint&)), this, SLOT(ShowContextMenu(const QPoint&)));

    I do that as well for QWidget derived widgets.

    As a result on linux when I press the mouse button outside the QWidget I get the signal from the mainwindow,. When I press on the QWidget I get the signal from the widget. That is correct for me.

    However on ms-windows I get alternatively the signal from the background and the widget when pressing on the widget. How do I get the same behavior on windows as on linux ?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      acmezger
      wrote on last edited by
      #2

      Sorry

      I found the problem. I was emitting a supplememtary custom event.

      problem solved

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved