have two tables: Session and Image. The Session table has a foreign key (FK) to the Image table, Image_Id. The Image table has a number of fields, the two I am interested in is the blob that is the image and the field that is the name of the image.

I want to do something like:

sessionModel->setRelation(2, QSqlRelation("Image", "Image_Id", "<both image and name>"));

So the combo box shows both the image and the name. How is this done?

Sam