Project

General

Profile

Actions

Support #3457

closed

customized titleBarWidget for WPanel and expand and collapse

Added by Anonymous almost 10 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
Start date:
07/10/2014
Due date:
% Done:

0%

Estimated time:

Description

Hi,

I'm trying to customize the titleBarWidget of a WPanel. When I add 2 buttons to the titleBarWidgets of a panel and then click on them, the panel still catches the signals and calls expand/collapse. Is there a way to stop the expanding and collapsing when my custom buttons are clicked? I just want the buttons to handle the signals. I still want the expand/collapse when another part of the titlebar is clicked.

Thanks,

steph

Actions #1

Updated by Koen Deforche almost 10 years ago

Hey,

You'll want to call b->clicked().preventPropagation()

Groeten,

koen

Actions #2

Updated by Koen Deforche over 9 years ago

  • Status changed from New to Resolved
  • Assignee set to Koen Deforche
Actions #3

Updated by Koen Deforche over 9 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF