Re: [Qt-creator] Embedded GUI Designer
Easiest way is to apply a stylesheet. Something like QWidget { font-size: 12pt; } should be a start. However, the font sizes should automatically pick up your system style settings. /s/ Adam On Sat, Jul 24, 2010 at 9:09 AM, Petric Frank pfr...@gmx.de wrote: Hello, is there a possibility to change the default font size of all GUI elements (i.e. combo boxes, line edits, group frames, ...) to an other value ? Not only when the GUI have already been designed - also the ones newly created. In short: - GUI already designed - change font size of all elements - new widgets - create them with an other font size by default Currently the widgets are always created with a font size of 9. kind regards Petric ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Embedded GUI Designer
Hello, and there is no way to apply the new font size to all widgets of an existing *.ui file without using a stylesheet ? regards Petric On Saturday, 24. July 2010 17:29:08 Coda Highland wrote: Easiest way is to apply a stylesheet. Something like QWidget { font-size: 12pt; } should be a start. However, the font sizes should automatically pick up your system style settings. /s/ Adam On Sat, Jul 24, 2010 at 9:09 AM, Petric Frank pfr...@gmx.de wrote: Hello, is there a possibility to change the default font size of all GUI elements (i.e. combo boxes, line edits, group frames, ...) to an other value ? Not only when the GUI have already been designed - also the ones newly created. In short: - GUI already designed - change font size of all elements - new widgets - create them with an other font size by default Currently the widgets are always created with a font size of 9. ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Embedded GUI Designer
Well, you could use QApplication::setFont() but that won't show in Designer. You could set the font on the top-level widget and it'll get inherited by its children, but not everything honors the inheritance. The stylesheet is guaranteed to work, but it'll override any other font specifications you may have set. As said, the best way to do it is to leave it alone and let Qt ask your system theme what to do, unless you're intentionally TRYING not to fit in with the other programs on your computer. /s/ Adam On Sat, Jul 24, 2010 at 12:38 PM, Petric Frank pfr...@gmx.de wrote: Hello, and there is no way to apply the new font size to all widgets of an existing *.ui file without using a stylesheet ? regards Petric On Saturday, 24. July 2010 17:29:08 Coda Highland wrote: Easiest way is to apply a stylesheet. Something like QWidget { font-size: 12pt; } should be a start. However, the font sizes should automatically pick up your system style settings. /s/ Adam On Sat, Jul 24, 2010 at 9:09 AM, Petric Frank pfr...@gmx.de wrote: Hello, is there a possibility to change the default font size of all GUI elements (i.e. combo boxes, line edits, group frames, ...) to an other value ? Not only when the GUI have already been designed - also the ones newly created. In short: - GUI already designed - change font size of all elements - new widgets - create them with an other font size by default Currently the widgets are always created with a font size of 9. ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator