Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Development

Notices

Reply
 
Thread Tools Search this Thread
Old 10-24-2011, 01:26 AM   #1
katsu
Member
katsu began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Oct 2011
Device: iPad,Kindle3
How do I add a Table view in my plugin?

Hi,

I want to use Table view in my plugin
with data generated by my plugin.
How do I add table with calibre?
is there a referable plugin?

data = (
(1, 'tom', 20,*1319433099),
(2, 'sally', 27,*1319433108),
(3, 'bill', 58,*1319433333)
)

table image:
------------------------------------------------
|*1 | tom | 20 | *1319433099| [edit] | [delete] |
------------------------------------------------
|2| sally | 27 | *1319433108|*[edit] | [delete] |
------------------------------------------------
|3| bill | 58 | *1319433333|*[edit] | [delete] |
------------------------------------------------
thanks.

Last edited by katsu; 10-24-2011 at 01:30 AM.
katsu is offline   Reply With Quote
Old 10-24-2011, 01:34 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,856
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You can have your plugin popup a dialog with the table. Use the QTableView class for tables in Qt.
kovidgoyal is offline   Reply With Quote
Advert
Old 10-24-2011, 07:32 AM   #3
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,741
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
In many cases you can use QTableWidget. For an example, see gui2.dialogs.quickview.py and quickview.ui. Edit_authors, tag_list_editor, and delete_matching_from_device also use this widget.
chaley is offline   Reply With Quote
Old 10-24-2011, 12:05 PM   #4
katsu
Member
katsu began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Oct 2011
Device: iPad,Kindle3
Thanks!
now I get simple table view in my window with QTableView.
I will try to read gui2.dialogs.quickview.*
katsu is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Creator How do I add a table of contents when using mobipocket creator? Kratos Kindle Formats 24 06-20-2012 05:03 AM
Table of contents view szegan enTourage Archive 5 11-01-2010 04:08 PM
Add bookshelf view? Smalis Calibre 29 09-29-2010 07:55 AM
Link button in table of contents view? devseev enTourage Archive 3 04-18-2010 08:47 PM
Trying to add table of context to MOBI edabxv Calibre 7 02-26-2010 09:20 AM


All times are GMT -4. The time now is 12:10 PM.


MobileRead.com is a privately owned, operated and funded community.