more work on qt materials dialog