[Kde-bindings] What is the best way to use MySql in Qyoto TableView?
Dimitar Dobrev
dpldobrev at yahoo.com
Mon Oct 21 11:27:22 UTC 2013
Hello Manik,
There is nothing Qyoto-specific about using MySQL with a TableView. You have to do what you'd do in Qt: derive a model, directly or not, from QAbstractItemModel and use inside the data you got from MySQL. By "indirectly" I mean that Qt has a few specialised classes such as QSqlTableModel which could work for your case.
Here - http://pastebin.com/mLhigkkj - you can find an implementation of QAbstractTableModel.
Regards,
Dimitar
On Monday, October 21, 2013 1:37 PM, Manickkavasakam <manikk.h at gmail.com> wrote:
Hi All,
I am trying to figure out what is the best way to use MySql with TableView in Qyoto. Are there any examples out there?
Thanks,
Manikk
_______________________________________________
Kde-bindings mailing list
Kde-bindings at kde.org
https://mail.kde.org/mailman/listinfo/kde-bindings
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-bindings/attachments/20131021/506b1068/attachment-0001.html>
More information about the Kde-bindings
mailing list