Hi,
I am working on QTableView in PyQt.My tableview has nearly 7 column, i want to freeze first two columns.So how to do this in PyQt.Please explain me with example.
Thanks.
Hi,
I am working on QTableView in PyQt.My tableview has nearly 7 column, i want to freeze first two columns.So how to do this in PyQt.Please explain me with example.
Thanks.
explain more. what does freeze mean? how many columns total in your model?
I'm guessing you have more than 7 columns, but only show 7 at a time?
If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.
I think ramesh03 means that the leftmost two columns stay fixed while scrolling left-right moves the other columns.
I have only seen this done by overlaying one QTableView, showing all columns, with another, showing the 'frozen' columns, and then linking their vertical scrolling. See the Frozen Column Example.
amleto and ChrisW67 Thanks for your reply.
Yes, ChrisW67.I need exactly like that,So how to do that in Python(PyQt).I dono about QT(c++).
amleto, I am uploading my images here.If i move my slider left and right ID,NAME is not visible.I need to display ID,NAME always, if i move my slider Left and Right.
http://picturepush.com/public/7205759
Thanks.
Last edited by ramesh03; 23rd December 2011 at 05:46.
If nokia have an example, I'd follow their lead![]()
It should be 'simple' to translate the c++ class and methods/calls into the pyqt bindings.
If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.
somebody convert C++ Freeze column example to python ??
I tried to convert but I can't.
Thanks.
Bookmarks