QMenu must set a parent for correct position. #3

This commit is contained in:
Pascal Sander
2025-08-17 17:48:29 +02:00
parent c31cab34e4
commit ee49086d03
4 changed files with 11 additions and 12 deletions

View File

@@ -338,7 +338,7 @@ void TitleBlockPropertiesWidget::initDialog(
this,
SLOT(duplicateCurrentTitleBlockTemplate()));
m_tbt_menu = new QMenu(tr("Title block templates actions"));
m_tbt_menu = new QMenu(tr("Title block templates actions"), ui->m_tbt_pb);
m_tbt_menu -> addAction(m_tbt_edit);
m_tbt_menu -> addAction(m_tbt_duplicate);
ui -> m_tbt_pb -> setMenu(m_tbt_menu);