472,353 Members | 1,401 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,353 software developers and data experts.

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 2300
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Harshad | last post by:
Hi, I'm writing a program using Python 2.4 and PyQt4. The aim is to implement drag and drop from filesystem and display a list of files dragged...
3
by: Skink | last post by:
Hi, I created simple property classes with editing option, but since i'm not too much experienced in PyQt4 i'd like to ask if i handle...
3
by: Tina I | last post by:
I'm trying to 'convert' my self from Qt3 to Qt4 (it rocks!) and one thing seem strange: With Qt3 I usually did "from qt import *", but this does...
25
by: Daniel Jonsson | last post by:
So, I've reached the point where my building pipeline tools actually needs to be used by other people in my company. By this reason I actually need...
2
by: AngelOfDarkness | last post by:
Hi guys, unfortunately I am pretty new to Python and Qt and all that. Well, I managed to successfully program a little stuff for my work...
2
by: Pradnyesh Sawant | last post by:
Hello, I have a newly installed ubuntu 6.06 system. I am trying to install pyqt4 on it, but without success. The contents of the...
2
by: jiang.haiyun | last post by:
Hi, I am having some serious problems with PyQT4, when i run pyqt script, I always get 'Segmentation fault'. the script is simple:...
0
by: Phil Thompson | last post by:
On Sunday 04 May 2008, Lance Gamet wrote: I think QMainWindow.setCentralWidget() is what you are looking for. The eric4 IDE probably covers...
3
by: ff | last post by:
Is it possible to create custom PyQt4 Slots, i have searched high and low to no avail; I have an application that can set animation speed to...
1
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.