Hey High_Flyer,
Thanks for pointing me towards the settings in QFont. I've put the following code at the start of my app :-
// Set the font size for solaris and linux
int DefaultFontSize = 0;
#ifdef __linux__
DefaultFontSize = 8;
#else if __sun
DefaultFontSize = 11;
#endif
// There is no need to set the font size on Windows
#ifndef WIN32
QFont AppFont
= app.
font();
AppFont.setPointSize(DefaultFontSize);
app.setFont(AppFont);
#endif
QApplication app(argc, argv);
// Set the font size for solaris and linux
int DefaultFontSize = 0;
#ifdef __linux__
DefaultFontSize = 8;
#else if __sun
DefaultFontSize = 11;
#endif
// There is no need to set the font size on Windows
#ifndef WIN32
QFont AppFont = app.font();
AppFont.setPointSize(DefaultFontSize);
app.setFont(AppFont);
#endif
To copy to clipboard, switch view to plain text mode
This sets the size of the font on linux and solaris at 8pt and 11pt, which on my system look the size i want. I'm going to test on other systems, but it looks like this does exactly what I want
David
Bookmarks