Your SlideShare is downloading. ×
Databases in Qt
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Introducing the official SlideShare app

Stunning, full-screen experience for iPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Databases in Qt

336
views

Published on

Published in: Automotive

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
336
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide
  • Whats qt:Libraries for C++ lanquageOpen source Using implemented classesUsing Qt Creator IDE
  • Transcript

    • 1. QT
    • 2. .pro SQL 
    • 3. QT QSqlDatabase   QODBC SQL Server microsoft
    • 4.  QSqlDatabase password hostName, databaseName, userName,  
    • 5. SQL Server UDB  DatabaseName Connection String   
    • 6. QSqlQuery QSqlQuery exec  lastError QSqlRecord  count  fieldName(int) 
    • 7.  next  value(int)  NULL  Qvariant  
    • 8. preparation  QT SQL  Floating point  preparation false syntax  exec connection 
    • 9. placeholder  bind Value(QString,QVariant)  placeholderQSqlQuery query;query.prepare("INSERT INTO Course (id, title, year) " "VALUES (:id, :title, :year)");query.bindValue(":id", 203);query.bindValue(":title", "Living in America");query.bindValue(":year", 2002);query.exec(); 
    • 10. Data Model  Data Model  QtSql QSqlTableModel SQL  (SELECT, INSERT, UPDATE, DELETE)QListView GUI  QTableView Consol Application
    • 11. Model.setTable(“ ”) FromModel.setFilter(“ “) WhereModel.select(“ “) selectSelect *From StudentWhere Major = „Computer Science‟
    • 12.  QSqlTableModel::record()value() 
    • 13.  1.Foundation OfQt Development
    • 14.  2.C++ GUI Programmingwith Qt 4, Second Edition