Message: RE: Font size in Qt console Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None RE: Font size in Qt console 

Forum: (Graphical) User Interfaces
Re: None Font size in Qt console
Date: 17 Sep, 2018
From: Ian Cullen <php1ic>

Thanks Laurent,

I’m using a shared installation, and this is mainly a nice to have feature, so I’ll wait for the next release.

Regards,
Ian


From: lgarnier <laurent.garnier@irisa.fr>
Sent: 17 September 2018 09:37
To: Ian Cullen <i.cullen@symetrica.com>
Cc: userinterface-g4hn@slac.stanford.edu
Subject: Re: Font size in Qt console

Hi,

It’s not allowed to change the font size of the console. It’s a hardcoded in Geant4 but it should not be like this. We’ll provide a patch to fix this for the next release.
By the way, you could go in the sources of Geant4, under sources/interfaces/basic/src/G4UIQt and comment the two lines about FontSize and Family (around line 1470)

Cheers,

Laurent

G4UIDockWidget* G4UIQt::CreateCoutTBWidget(
)
{
  QWidget* coutTBWidget = new QWidget();

  QVBoxLayout *layoutCoutTB = new QVBoxLayout();

  fCoutTBTextArea = new QTextEdit();

  // set font familly and size
  fCoutTBTextArea->setFontFamily("Courier");
  fCoutTBTextArea->setFontPointSize(12);


Le 12 sept. 2018 à 12:37, i.cullen@symetrica.com<mailto:i.cullen@symetrica.com> a écrit :


*** Discussion title: (Graphical) User Interfaces

Where can I change the font size in the command console section at the
bottom of the Qt GUI window?

In the attached image, the overall Qt font is the size I want (see the
help panel on the left) and my terminal takes the font size from the
system settings. The Qt console does not appear to use either of those
configs so gives me a much larger font size.

Does anyone know how to change this font size?

Thanks.

  Attachment:
     http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2018/09/12/03.31-69375-fontSize.png

-------------------------------------------------------------
Visit this GEANT4 at hypernews.slac.stanford.edu<http://hypernews.slac.stanford.edu> message (to reply or unsubscribe) at:
http://hypernews.slac.stanford.edu/HyperNews/geant4/get/userinterface/137.html


 [ MIME part of type text/html without a name stripped ]

 Add Message Add Message
to: "RE: Font size in Qt console"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]