qheaderview Questions

4

I can add a single tooltip to all headers using tableview = QTableView() tableview.horizontalHeader().setToolTip("headers") but can I add different tooltips to each header, i.e. I need to access...
Renteria asked 14/6, 2012 at 6:49

2

protected: virtual void paintSection(QPainter *painter, const QRect &rect, int logicalIndex) const { QHeaderView::paintSection(painter, rect, logicalIndex); painter->drawRect(2, 2, 10, 1...
Loftus asked 25/8, 2014 at 15:46

2

I tried the CSS code: QTableView QHeaderView::section { text-align: center; } And it did not help me. PS I write the SCADA system in the WinCC OA that uses Qt, and there you can change the ap...
Dosia asked 24/7, 2018 at 12:40

1

Solved

I am creating an application that saves the data of an object sending service. I created that with Qt, a model of type QStandardItemModel that I want to display with QtableView. But QtableView s...
Sick asked 28/9, 2017 at 12:54

3

Solved

I need to reduce the size of first column(the column with vertical headers) How can I resize a vertical header of QTableView in PyQt4? I have very large headers and small GUI block to show this...
Debbydebee asked 22/12, 2016 at 20:39

1

I am having a QListView which has 5 items in it. say(America, Canada, Denmark, Egypt, Finland) in my QListView. Now i want to set a common Header for all this items as COUNTRIES. How can i set a He...
Penoyer asked 20/11, 2013 at 10:40

1

Solved

I want to sort a QTableView when I click on the headers of my QHeaderView. I've found a several code sample on the internet like this one: Sort QTableView in pyqt5 but it doesn't work for me. I al...
Swedish asked 17/10, 2016 at 18:48

2

Solved

I have a list containing lists with two items,a word and a number.This list will be presented using a tablewidget. My aim is to produce a table with two columns and with the neccessary rows,but th...
Iliac asked 20/12, 2011 at 1:33

1

Solved

This question is further development of this post and is different, though may seem similar as this one. I am trying to reimplement QHeaderView::paintSection, so that the background returned from ...
Ladysmith asked 15/6, 2015 at 14:5

2

Solved

I would like to display a table in Qt with a specific style. I want to draw all grid lines with same color and same width. Problem is, that it is hard to style QHeaderView. All the time, I get a 2p...
Ethics asked 2/10, 2014 at 13:54

1

Solved

I need to draw text in derived from QHeaderView class. But this code does not work. void HeaderView::paintSection(QPainter *painter, const QRect &, int) const { painter->drawText(0, 0, "ab...
Nosology asked 26/8, 2014 at 7:15

1

Solved

On the picture represented dialog window with only one widget class QTableWidget. My problem is that bottom border of the header (red square, QHeaderView class) is overlaps with left/right colored ...
Cellulous asked 5/4, 2012 at 7:42

2

Solved

I am using QTreeView with QFileSystemModel. It displays columns like Size, Type, Modification Date, which I don't need. How can I remove them from the view? I can't find any removeColumn in model o...
Leukemia asked 10/12, 2010 at 21:47

1

Solved

I have a QTreeView subclass (and QAbstractItemModel subclass) which has a nice horizontal header. I would like to add vertical headers (going down the left side) to match. But unlike QTableView whi...
Ornelas asked 27/12, 2009 at 22:22
1

© 2022 - 2025 — McMap. All rights reserved.