[mythtv] sql files
Renchi Raju
renchi at pooh.tam.uiuc.edu
Sun Dec 7 12:29:19 EST 2003
On Sun, 7 Dec 2003, mpgordon wrote:
> I am modifying mythmusic to add a visualization that will display photos
> store in MythGallery. I have everything working except that I want to use
> the rotation information store in the gallery database to rotate the image
> correctly. Where is the gallery.sql file located? I plan on opening up the
> database with the following command, g_db =
> QSqlDatabase::database("/location/gallery.sql");
you don't need to open the database with any parameters.
g_db = QSqlDatabase::database(); will open the default database.
the gallery table can be obtained from this database with something like:
QSqlQuery query("SELECT * FROM gallerymetadata;", db);
renchi
More information about the mythtv-dev
mailing list