PDA

View Full Version : How to change table column's width if I make headerView inVisible?



luoyes
22nd April 2010, 11:44
http://www.qtcn.org/bbs/attachment/Mon_1004/17_81955_ae9c1f71480dd5f.png

How can we get the similar effect as the pictrue?

Thanks!

Lykurg
22nd April 2010, 12:02
I don't know if there is a build in function, but you can activate mouse tracking and check if the mouse in on a line, chance the mouse cursor and react on mouse press + move.

luoyes
25th April 2010, 03:15
I don't know if there is a build in function, but you can activate mouse tracking and check if the mouse in on a line, chance the mouse cursor and react on mouse press + move.

Thanks for your reply!
I will have a try.

luoyes
25th April 2010, 05:44
I succeed.
In fact,it is very easy.

Lykurg
25th April 2010, 11:13
I succeed.
In fact,it is very easy.
Perfect! It would be nice if you could post the relevant reimlementations. If some other user struggle with that problem, he could use your solution.

luoyes
26th April 2010, 07:59
Here is my code.
Hope it is helpful!
And I am very pleased if anyone give me some suggestions.
45484549