[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bindings
Subject:    Re: [Kde-bindings] What is the best way to use MySql in Qyoto TableView?
From:       Dimitar Dobrev <dpldobrev () yahoo ! com>
Date:       2013-10-21 11:27:22
Message-ID: 1382354842.78693.YahooMailNeo () web122401 ! mail ! ne1 ! yahoo ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


    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@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@kde.org
https://mail.kde.org/mailman/listinfo/kde-bindings


[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"><span class="tab">&nbsp;&nbsp;&nbsp; Hello \
Manik,<br><br></span><span class="tab">&nbsp;&nbsp;&nbsp; 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 \
</span>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.<span class="tab"><br></span><span \
class="tab">&nbsp;&nbsp;&nbsp; Here - <a \
href="http://pastebin.com/mLhigkkj">http://pastebin.com/mLhigkkj</a> - \
</span>you can find an implementation of <span \
class="tab">QAbstractTableModel.</span><br><span \
class="tab">&nbsp;&nbsp;&nbsp; <br></span><div><span \
class="tab">&nbsp;&nbsp;&nbsp; Regards,</span></div><div style="color: \
rgb(0, 0,  0); font-size: 16px; font-family: serif; background-color: \
transparent; font-style: normal;"><span class="tab">&nbsp;&nbsp;&nbsp; \
Dimitar</span><span class="tab"><br></span></div><div style="display: \
block;" class="yahoo_quoted"> <br> <br> <div style="font-family: \
HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; \
font-size: 12pt;"> <div style="font-family: HelveticaNeue, Helvetica Neue, \
Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div \
dir="ltr"> <font face="Arial" size="2"> On Monday, October 21, 2013 1:37 \
PM, Manickkavasakam &lt;manikk.h@gmail.com&gt; wrote:<br> </font> </div>  \
<div class="y_msg_container"><div id="yiv6403707497"><div dir="ltr"><div>Hi \
All, <br><br>I am trying to figure out what is the best way to use MySql \
with TableView in Qyoto. Are there any examples out \
there?<br><br></div>Thanks,<br>Manikk<br></div> \
</div><br>_______________________________________________<br>Kde-bindings \
mailing list<br><a ymailto="mailto:Kde-bindings@kde.org" \
href="mailto:Kde-bindings@kde.org">Kde-bindings@kde.org</a><br><a \
href="https://mail.kde.org/mailman/listinfo/kde-bindings" \
target="_blank">https://mail.kde.org/mailman/listinfo/kde-bindings</a><br><br><br></div> \
</div> </div>  </div> </div></body></html>



_______________________________________________
Kde-bindings mailing list
Kde-bindings@kde.org
https://mail.kde.org/mailman/listinfo/kde-bindings


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic