Project

General

Profile

Actions

Improvements #14474

open

WDialog::positionAt overloads have inconsistent behavior

Added by Michael Seibt 17 days ago. Updated 5 days ago.

Status:
Review
Priority:
Low
Assignee:
-
Target version:
Start date:
04/15/2026
Due date:
% Done:

0%

Estimated time:

Description

Affected: WDialog::positionAt(WWidget*, Orientation) and WDialog::positionAt(const WMouseEvent&) of Wt 4.13.0 (and former versions, checked down to 4.11.4)
WDialog::positionAt(WWidget*, Orientation) shows the dialog as documented and positions it.
WDialog::positionAt(const WMouseEvent&) is only applied if the dialog is visible. There is no more documentation than "Set the position of the widget at the mouse position."


Files

main.cpp (10.7 KB) main.cpp Michael Seibt, 04/16/2026 09:44 AM
Actions #1

Updated by Michael Seibt 16 days ago

STR:

  • run attached main.cpp
  • select a WTableView cell
  • press Space (invokes WDialog::positionAt(WWidget*, Orientation)) --> A WDialog pops up aside the cell.
  • right click a cell (invokes WDialog::positionAt(const WMouseEvent&)) --> Popup is moved to mouse position.
  • close popup
  • right click a cell (invokes WDialog::positionAt(const WMouseEvent&)) --> No popup.
  • push button "Show popup" --> Popup is shown centered, but not at the mouse position as requested before.
Actions #3

Updated by Romain Mardulyn 5 days ago

  • Status changed from New to InProgress
  • Target version set to 4.13.3
Actions #4

Updated by Romain Mardulyn 5 days ago

  • Status changed from InProgress to Review
Actions

Also available in: Atom PDF