Page 1 of 1

Disabling table widget auto scroll when a new entry is added

Posted: Tue Dec 24, 2019 12:46 pm
by ozangor
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.

Re: Disabling table widget auto scroll when a new entry is added

Posted: Thu Jan 02, 2020 10:22 am
by leoknipp
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

Re: Disabling table widget auto scroll when a new entry is added

Posted: Fri Jan 03, 2020 2:12 pm
by ozangor
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.