PDA

View Full Version : QPushButton dynamic size



cutie.monkey
29th April 2010, 07:21
Hi all,

I'm currently developing a button layout designer, that is, the user can resize, move the buttons using the mouse like in Qt Designer then save it. I'm doing this so the user can customize the buttons without rebuilding the project.

I can now move the buttons in different positions using the drag events. But my problem now is on how to re size the buttons using the mouse like in Qt Designer?

thanks...

wysota
29th April 2010, 09:37
Install an event filter to intercept mouse events coming to the buttons and react on them to perform resizing.