[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: [PyQt] PyQt-QtableView Header. How to add top-right small button to hide/show column with checked/un
From: abdelhak mahmoudi <abdel_mahm () yahoo ! fr>
Date: 2014-09-09 12:18:25
Message-ID: 1410265105.48350.YahooMailNeo () web133105 ! mail ! ir2 ! yahoo ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Hello,
With PyQt4, I am using a QtableView with more than 10 columns. The user must have the \
choice of showing/hiding a column.
This is generally done by adding a small button in the top-right of
the table's header.
The button shows a menu with checked/unchecked
Checkboxes allowing to hide/show columns.
This is an example from Sqlite-Manager Table.
So, I wonder how can I do the same with PyQt's QtableView?
Thanks,
[Attachment #5 (text/html)]
<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, \
Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt"><div \
style="" class="" itemprop="text">
<div style="" class="">Hello,</div><div style="" class=""><br></div><div \
style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica \
Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; \
font-style: normal;" class="">With PyQt4, I am using a QtableView with more than 10 \
columns. The user must have the choice of showing/hiding a column. </div>
<div style="" class=""><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; \
font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; \
background-color: transparent; font-style: normal;" class="">This is generally done \
by adding a small button in the top-right of the table's header. <br></div><div \
style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica \
Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; \
font-style: normal;" class="">The button shows a menu with checked/unchecked \
Checkboxes allowing to hide/show columns.</div>
<div style="" class=""><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; \
font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; \
background-color: transparent; font-style: normal;" class="">This is an example from \
<a style="" class="" \
href="http://williamsportwebdeveloper.com/cgi/wp/wp-content/uploads/2010/08/SQLiteManager.png" \
rel="nofollow">Sqlite-Manager Table</a>. So, I wonder how can I do the same with \
PyQt's QtableView?</div>
<div style="" class=""><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; \
font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; \
background-color: transparent; font-style: normal;" class="">Thanks,</div>
</div></div></body></html>
[Attachment #6 (text/plain)]
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic