Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Custom PyQt4 TableWidget

Reply
Thread Tools

Custom PyQt4 TableWidget

 
 
ff
Guest
Posts: n/a
 
      08-27-2008
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
 
Reply With Quote
 
 
 
 
Phil Thompson
Guest
Posts: n/a
 
      08-27-2008
On Wed, 27 Aug 2008 08:17:43 -0700 (PDT), ff <>
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

 
Reply With Quote
 
 
 
 
ff
Guest
Posts: n/a
 
      08-27-2008
>
> 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,
 
Reply With Quote
 
Phil Thompson
Guest
Posts: n/a
 
      08-27-2008
On Wed, 27 Aug 2008 09:51:29 -0700 (PDT), ff <>
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

 
Reply With Quote
 
ff
Guest
Posts: n/a
 
      08-27-2008
On Aug 27, 6:44*pm, Phil Thompson <p...@riverbankcomputing.com> wrote:
> 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
pyqt4 eric4 generated gui custom dialog open rewonka Python 1 12-15-2009 05:56 PM
PyQt4.__file__ gives PyQt4/__init__.py as value wgw Python 1 08-15-2009 09:58 PM
Custom PyQt4 Slots ff Python 3 08-11-2008 09:29 PM
QtRuby TableWidget fill all Andrew Lepyokhin Ruby 2 06-06-2008 07:32 PM
QtRuby: get data from TableWidget Andrew Lepyokhin Ruby 2 05-08-2008 07:49 PM



Advertisments