There are some problems with labels in version 5.4.2. also, labels do not appear in OgrLayer from SQL database in Mapwindow 5.6.3. However, if you save it as a project, labels are displayed after opening. Apparently, the parameter from XML-LabelsClass Generated= " 1"