0

I'm working on a Qt UI that will run on a touchscreen. At some point it will be useful to select files, in (probably) a QFileDialog. But little icons on a QFileDialog leads to a terrible touch-user experience, I'd like them to be bigger, so the user doesn't get crazy trying to navigate in the filesystem. Actually, I'm searching documentation to see if there is a way through css, but haven't seen yet which target/propery to use.

spacm
  • 190
  • 3
  • 18

1 Answers1

0

Given the doc of QFileDialog class:

QFileDialog::Detail 0 Displays an icon, a name, and details for each item in the directory. QFileDialog::List 1 Displays only an icon and a name for each item in the directory.

You can't set icon size this way. I recommend you to set a custom icon provider on the QFileDialog.

Thomas Ayoub
  • 29,063
  • 15
  • 95
  • 142