est on behalf of Carlos Agon
>
> Sent: Saturday, June 20, 2020 10:28:46 AM
> To: interest@qt-project.org
> Subject: [Interest] adding widget into a mousePressEvent
>
> Hello
>
> I would like to add a button to my view at each time I click, but my code
> doesn'
You have to show widgets that you add to parents that are already visible.
Cheers,
Volker
From: Interest on behalf of Carlos Agon
Sent: Saturday, June 20, 2020 10:28:46 AM
To: interest@qt-project.org
Subject: [Interest] adding widget into a mousePressEvent
Hello
I would like to add a button to my view at each time I click, but my code
doesn't work, it prints the message "click enter" but nothing is added. What is
wrong with this code ?
thanks
Carlos (newbie at this list)
==
class ShView :public QFrame {
protected:
void mousePressEvent(