fix qt repr bug

addresses #3522.