[Qt-interest] QScrollArea::ensureWidgetVisible

Constantin Makshin cmakshin at gmail.com
Sun Jul 4 08:47:55 CEST 2010


Could you show the code that handles key events or provide a minimal example so others can play with it to investigate the situation?

On Sunday 04 July 2010 09:36:41 Efrain Lopez wrote:
> Hi,
> 
> I have a QScrollArea, with QWidgets in rows, similar to a table.
> 
> When user clicks up or down key, I want QScrollArea to show previous/next row. I use eventFilter/
> 
> ensureWidgetVisible works fine if I click up/down key "slowly", if click up/down key fast ( double click ), QScrollArea doesn't show the previous/next row.
> 
> Any idea how to solve the problem?
> 
> Thanks



More information about the Qt-interest-old mailing list