July 19, 2011

evergreen evergreen
Lab Rat
79 posts

QScrollArea signal

 

Hello,

I need by QScrollArea to do something specific when the scroll bar appears. I can’t find the signal or a method that could help me know when the area is too big and the scroll bar appears.

Can someone help?

Thanks

2 replies

July 19, 2011

Andre Andre
Area 51 Engineer
6031 posts

You might try to install an event filter on the scroll bars of the QScrollArea, and listen for the showEvent. If it is not spontaneous, it came from the application itself. I think that would equate to the QScrollArea showing the widget. There are no signals you can use that I am aware of.

 Signature 

Looking for Qt developers to join our team @ i-Optics: https://qt-project.org/forums/viewthread/25393/

July 20, 2011

evergreen evergreen
Lab Rat
79 posts

Thanks for the advices.

I really thought Qt would manage the appearance of the scrollbar with signals.
I’ll try the eventfilter based in the showEvent.

 
  ‹‹ write a network application (Chatroom)      problem displaying a column in a ProxyModel ››

You must log in to post a reply. Not a member yet? Register here!