Project

General

Profile

Actions

Improvements #14474

closed

WDialog::positionAt overloads have inconsistent behavior

Added by Michael Seibt 3 months ago. Updated about 1 month ago.

Status:
Closed
Priority:
Low
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 3 months 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 3 months ago

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

Updated by Romain Mardulyn 3 months ago

  • Status changed from InProgress to Review
Actions #5

Updated by Matthias Van Ceulebroeck about 1 month ago

  • Assignee set to Matthias Van Ceulebroeck
Actions #6

Updated by Romain Mardulyn about 1 month ago

  • Status changed from Review to Implemented @Emweb
  • Assignee changed from Matthias Van Ceulebroeck to Romain Mardulyn
Actions #7

Updated by Romain Mardulyn about 1 month ago

  • Status changed from Implemented @Emweb to Closed
Actions

Also available in: Atom PDF