How to get the numbers which are created as row numbers when we create QTableWidget
-
wrote on 8 Nov 2011, 08:09 last edited by
HI All
Is it possible to get row numbers created automatically on left side in QTableWidget or QTable View.
How to get it? -
wrote on 8 Nov 2011, 08:12 last edited by
Please don't double-post your questions. You also asked this question in your topic about how to find out what row was selected.
-
wrote on 8 Nov 2011, 08:18 last edited by
ok Andre!!
Actually i want to get the horizontalHeaderItem of QTableView? -
wrote on 8 Nov 2011, 09:02 last edited by
The header items of a view come from the model: "headerData":http://doc.qt.nokia.com/4.7/qabstractitemmodel.html#headerData
If your model did not implement it, there is a default implementation, which can be seen in the Qt source code :-)
-
wrote on 8 Nov 2011, 09:04 last edited by
I am actually not sure what the default implementation for the headers is for QTableWidget. I tend to avoid that class :-)
-
wrote on 8 Nov 2011, 09:18 last edited by
Hi Andre
How to add image file in post please tell so that i can add image to show what i want to read from QTableView.
-
wrote on 8 Nov 2011, 09:40 last edited by
QtDevnet does not allow uploading of images. You will need to find some external host for your image data. I use my dropbox account, using the public folder to put those images, but there are many other image hosters available on the net.
-
wrote on 8 Nov 2011, 09:50 last edited by
[quote author="Rajveer" date="1320743912"]Hi Andre
How to add image file in post please tell so that i can add image to show what i want to read from QTableView.[/quote]
For example "postimage":http://postimage.org/
!http://postimage.org/image/4sumhxkgb/(stepashka)!
1/8