473,414 Members | 1,937 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 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 2494
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 on to the listWidget. This function will later...
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 ColorProperty changing right. Any other Property has its...
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 not seem to work with Qt4. I have to use "from...
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 to think about the usability, and I've come to...
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 (computational neuroscientist... no comment please), using...
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 /etc/apt/sources.list file are:...
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: ====================== %less qttest.py from PyQt4 import...
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 most things you'll ever need. Phil
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 different levels, i want the user to alter this, now...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.