Stylesheets may not be the most reliable way. Have you tried just playing
with the Application font?

font = QtGui.qApp.font()
font.setPixelSize(16)
QtGui.qApp.setFont(font)

​

Justin


On Fri, Oct 28, 2016 at 10:06 AM oglop <[email protected]> wrote:

> It seems I can use this to make most ui font bigger, but not for outliner.
>
> from PyQt4 import QtGui
> app = QtGui.QApplication.instance()
>
> styleSheet = '''
>
> * {
>   font: 16px;
> }
> '''
>
> app.setStyleSheet(styleSheet)
>
> I tried to get qt object of outlinerPanel1Window and called setFont() on
> it, but it doesn't work.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Python Programming for Autodesk Maya" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/88365859-a6e6-479c-84d1-987d56db78bd%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2UEdBJvU6yOTMXbhpuPkSMCJy0fnDTPexoFXDhPGrdfQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to