Hi,

My application writes texts and draws lines on a QMainDialog and it must respect an area, so the size of the font could be wrong if the user selected an incorrect dimension.

This is why I'd like to change the list of the available sizes of the font the user can select opening the QFontDialog in order to prevent the user to select a size bigger than the cell where the text is written.

I think it's impossible to reimplement this class. Isn't it ? So, I thought that QFontDialog and QFontDatabase can be linked one to the other. My I can't see a link between these two classes.

Have you tried something like this ?

Thank you.

Placido.