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
Forum Updated to NodeBB v4.3 + New Features

Context menu behaves differently on windows as on linux

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 781 Views 1 Watching
  • 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 16 Dec 2013, 11:07 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 16 Dec 2013, 17:13 last edited by
      #2

      Sorry

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

      problem solved

      1 Reply Last reply
      0

      1/2

      16 Dec 2013, 11:07

      • Login

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