469,328 Members | 1,247 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,328 developers. It's quick & easy.

Custom PyQt4 TableWidget

ff
I am creating a custom widget based on a PyQt QTableWidget and i want
to stop PyQt highlighting all the cells when the very top-left 'thing'
is clicked, (dont know what to call it, its the bit that sits on the
same row/column as the hozizontal/vertical header items), i cant find
a way to do this, any suggestions? even the signal that is emitted
when this 'thing' is clicked would be useful as i can manually un-
highlight them all, but i cant find that either!

any help appreciated,

ff
Aug 27 '08 #1
4 2214
On Wed, 27 Aug 2008 08:17:43 -0700 (PDT), ff <fl********@googlemail.com>
wrote:
I am creating a custom widget based on a PyQt QTableWidget and i want
to stop PyQt highlighting all the cells when the very top-left 'thing'
is clicked, (dont know what to call it, its the bit that sits on the
same row/column as the hozizontal/vertical header items), i cant find
a way to do this, any suggestions? even the signal that is emitted
when this 'thing' is clicked would be useful as i can manually un-
highlight them all, but i cant find that either!

any help appreciated,
setSelectionMode()?

Phil

Aug 27 '08 #2
ff
>
setSelectionMode()?

Phil
Ive tried that, it does half the job, it stops you selecting more than
one item in the table at any one time but it doesnt stop the top-left
'thing',

thanks though,
Aug 27 '08 #3
On Wed, 27 Aug 2008 09:51:29 -0700 (PDT), ff <fl********@googlemail.com>
wrote:
>>
setSelectionMode()?

Phil

Ive tried that, it does half the job, it stops you selecting more than
one item in the table at any one time but it doesnt stop the top-left
'thing',
How about setCornerButtonEnabled(False)?

Phil

Aug 27 '08 #4
ff
On Aug 27, 6:44*pm, Phil Thompson <p...@riverbankcomputing.comwrote:
On Wed, 27 Aug 2008 09:51:29 -0700 (PDT), ff <flarefi...@googlemail.com>
wrote:
setSelectionMode()?
Phil
Ive tried that, it does half the job, it stops you selecting more than
one item in the table at any one time but it doesnt stop the top-left
'thing',

How about setCornerButtonEnabled(False)?

Phil
Well done! I thought there must be something there somewhere, i really
should learn to read more carefully!!

thanks,

ff
Aug 27 '08 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Harshad | last post: by
3 posts views Thread by Skink | last post: by
3 posts views Thread by Tina I | last post: by
25 posts views Thread by Daniel Jonsson | last post: by
2 posts views Thread by Pradnyesh Sawant | last post: by
2 posts views Thread by jiang.haiyun | last post: by
3 posts views Thread by ff | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by Purva khokhar | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.