You can use following hack: store current horizontal scroll position, call base implementation and restore scroll position.
Иван Комиссаров 14.05.2013, в 11:17, Mojmír Svoboda <mojmir.svob...@warhorsestudios.cz> написал(а): > Hello, > > my problem is simple: when an user press ctrl+end to scroll to the end > of the table then there is an implicit horizontal scroll to the right. > My users requested few times already to disable that behaviour. > > I subclassed QTableView as i did not found any other way (sorry if i > missed something obvious), but as soon as i tried to override moveCursor > i started to fail because of internals like d->visualCursor or d->spans. > Some of them seem trivial to bypass (like d->root, d->visualRow etc) > some of them not (d->spans). > > I wonder what do you in general do, when you find yourselves in the need > of accessing the private internals. > > Best regards, > Mojmir > _______________________________________________ > Interest mailing list > Interest@qt-project.org > http://lists.qt-project.org/mailman/listinfo/interest _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest