Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 3

Qt-interest Archive, March 2008
QTableWidget help - don't want bolded header labels


Message 1 in thread

Hello,

I have a QTableWidget which I have set the selection mode to highlight 
the entire row. However, I do not want all of the horizontal header 
labels to be bolded when this happens. I can't seem to figure out how to 
prevent this from happening. Is there a method of telling the 
QHeaderView that you don't want that selection behaviour?

Thanks,
George

-- 
 [ signature omitted ] 

Message 2 in thread

On Wednesday 19 March 2008, George Ryan wrote:
> Hello,
>
> I have a QTableWidget which I have set the selection mode to highlight
> the entire row. However, I do not want all of the horizontal header
> labels to be bolded when this happens. I can't seem to figure out how to
> prevent this from happening. Is there a method of telling the
> QHeaderView that you don't want that selection behaviour?
>
> Thanks,
> George

tableWidget->horizontalHeader()->setHighlightSections(false);

Regards,
Bernd

--
 [ signature omitted ] 

Message 3 in thread

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
That was embarrassingly easy and hard to miss. Thanks! :-)<br>
<br>
Bernd Brandstetter wrote:
<blockquote cite="mid:200803191926.39122.bbrand@xxxxxxxxxx"; type="cite">
  <pre wrap="">On Wednesday 19 March 2008, George Ryan wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Hello,

I have a QTableWidget which I have set the selection mode to highlight
the entire row. However, I do not want all of the horizontal header
labels to be bolded when this happens. I can't seem to figure out how to
prevent this from happening. Is there a method of telling the
QHeaderView that you don't want that selection behaviour?

Thanks,
George
    </pre>
  </blockquote>
  <pre wrap=""><!---->
tableWidget-&gt;horizontalHeader()-&gt;setHighlightSections(false);

Regards,
Bernd

--
 [ signature omitted ]