[Tutor] pyqt4 set horizontal header item - solved
Phil
phil_lor at bigpond.com
Mon Apr 1 02:13:00 CEST 2013
On 31/03/13 21:43, eryksun wrote:
<cut>
> You can use setHorizontalHeaderItem(0, QTableWidgetItem('col 0'), and
> so on. It may be simpler to use setHorizontalHeaderLabels(['col 0',
> 'col 1', 'etc']).
>
I have the answer (provided by a member of another list) and I was
correct, it was something basic.
from PyQt4 import QtGui
QtGui.QTable etc
As I previously said, I had done this under C++ many years ago. The
Python method is far simpler, especially once you know how.
--
Regards,
Phil
More information about the Tutor
mailing list