update to handle Qt5