Hi there,
I need to stop autoscrolling of the table widget when a new row is added via appendLine or insertLineN function. Whenever I call either of these functions, table scroll automatically moves to the location where the entry is added. How do I possibly disable this functionality in order to keep the scrollbar in the same line location?
Thanks in advance.
Disabling table widget auto scroll when a new entry is added
Search
Re: Disabling table widget auto scroll when a new entry is added
You can try if the attribute "updatesEnabled" helps to solve the problem.
Otherwise you can
-- get the current visible line range
-- save the information
-- make the changes in the table
-- scroll back to the saved visible line range
Best Regards
Leopold Knipp
Senior Support Specialist
Otherwise you can
-- get the current visible line range
-- save the information
-- make the changes in the table
-- scroll back to the saved visible line range
Best Regards
Leopold Knipp
Senior Support Specialist
Re: Disabling table widget auto scroll when a new entry is added
Hi Leopold, happy new year!
I found the answer in another thread, forgot to update here. There is an attribute called "stop" for the table widget but it is not documented. That solved my problem.
I found the answer in another thread, forgot to update here. There is an attribute called "stop" for the table widget but it is not documented. That solved my problem.