@Christian-Ehrlicher yes,i just realize i forget to add sql to QT += core gui sql thanks for respone anyway