Note that actionTriggered(int) will return the value before the update.
Instead, use valueChanged(int) to get the resulting value in this example.
Vitas Povilaitis
--
View this message in context:
http://python.6.n6.nabble.com/Synchronized-scrolling-between-two-tables-tp1917990p4717071.html
Se
Thanks Guys,
I found the solution to my problem.
By linking to the tables scroll bar via (QScrollBar) I now have access to
the bar. Then using the signals emitted by the slider via (QAbstractSlider)
I can get the current location of the bar and then sync the other table with
it.
Here is a s
Am Mittwoch, 2. November 2011, 06:23:36 schrieb Nader Abedrabbo:
> If their is a way to disable certain columns in a table from being selected,
> I would appreciate if you can guide me to it.
you can define you own model, deriving from a Qt standard model,
and override flags(). In the link I gave
Thanks Wolfgang and Scott.
Wolfgang, Initially I had wanted to use one table. But I couldn't figure
out how to disable certain columns. My data goes in the first three
columns, then the calculation results are populated in the next 5 columns.
I don't want the user to be able to edit/select t
According to the documentation:
QTableView.scrollTo (*self*,
QModelIndex
*index*,
QAbstractItemView.ScrollHint
*hint* = QAbstractItemView.EnsureVisible)
I assume you would have to create a QModelIndex based on the first tables'
scrolled to record, and then feed it into the second table via a k
Am Dienstag, 1. November 2011, 14:02:48 schrieb Nader Abedrabbo:
> What I would like though is a synchronized scrolling of the two tables, i.e.
> if I scroll the first table, then the second table should scroll to the
> same view (same row level) as the first table.
>
> Is that possible?
yes. Ha