10-24-2011, 01:26 AM | #1 |
Member
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. |
10-24-2011, 01:34 AM | #2 |
creator of calibre
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.
|
Advert | |
|
10-24-2011, 07:32 AM | #3 |
Grand Sorcerer
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.
|
10-24-2011, 12:05 PM | #4 |
Member
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.* |
|
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 |