On Saturday, 21 November 2020 06:05:13 PST Ramakanth Kesireddy wrote:
> Hello Thiago,
>
> Couple of questions..May I know why we don't see the large font issue in
> ubuntu though Qt5 is configured with -qt-xcb and fontconfig as the point
> sizes that work for ubuntu are not applicable for target?
Hello Thiago,
Couple of questions..May I know why we don't see the large font issue in
ubuntu though Qt5 is configured with -qt-xcb and fontconfig as the point
sizes that work for ubuntu are not applicable for target?
Does it makes sense to check the below suggested env variables only on
target
Thanks a lot for your mail. It helps.
Essentially moved https://doc.qt.io/qt-5/stylesheet-reference.html#font-prop
from pixels to points and fixed the hardcoded layouts.
Adjusting the QT_AUTO_SCREEN_SCALE_FACTOR and QT_FONT_DPI to scale
ccordingly.
On Wed, Nov 11, 2020 at 11:51 PM Thiago Macieira
On Thu, Nov 12, 2020 at 10:01:23AM +, Hamish Moffatt wrote:
>
> On 12/11/20 8:47 pm, Florian Bruhin wrote:
> > On Thu, Nov 12, 2020 at 12:37:33AM +, Hamish Moffatt wrote:
> > > On 12/11/20 2:46 am, Thiago Macieira wrote:
> > > > NEVER calculate font sizes in pixels. Your design is wrong.
On 12/11/20 8:47 pm, Florian Bruhin wrote:
On Thu, Nov 12, 2020 at 12:37:33AM +, Hamish Moffatt wrote:
On 12/11/20 2:46 am, Thiago Macieira wrote:
NEVER calculate font sizes in pixels. Your design is wrong. Delete this
function and use point sizes throughout.
Too bad the Qt Widget
On Thu, Nov 12, 2020 at 12:37:33AM +, Hamish Moffatt wrote:
> On 12/11/20 2:46 am, Thiago Macieira wrote:
> >
> > NEVER calculate font sizes in pixels. Your design is wrong. Delete this
> > function and use point sizes throughout.
>
> Too bad the Qt Widget stylesheet function only supports
On 12/11/20 2:46 am, Thiago Macieira wrote:
NEVER calculate font sizes in pixels. Your design is wrong. Delete this
function and use point sizes throughout.
Too bad the Qt Widget stylesheet function only supports point sizes for
fonts. Points don't work for any other measurements,
Hamish
On Wednesday, 11 November 2020 09:24:14 PST Ramakanth Kesireddy wrote:
> Inorder to adjust across all the screens, do I need to set export
> QT_AUTO_SCREEN_SCALE_FACTOR=1?
Yes. Or set the QT_SCREEN_SCALE_FACTORS variable. Or both, or set the AUTO one
to 0. They interact in weird and sometimes
Ok Thanks for your mail.
Yes moved to point size.
Though I set the application font in point size being 12pt(default font
point size), it doesn't adjusts accordingly across all UI screens or rest
of application. For example, the pushbutton font text appears larger.
Inorder to adjust across all
On Tuesday, 10 November 2020 21:23:12 PST Ramakanth Kesireddy wrote:
> Hello Thiago,
>
> In our application, based on DPI 141(screen size: 5.7" 480X640), the
> application font is set as 7pt based on the below calculation where px is
> 14 to look the font normal.
Does your system know that its
Hello Thiago,
In our application, based on DPI 141(screen size: 5.7" 480X640), the
application font is set as 7pt based on the below calculation where px is
14 to look the font normal.
double pxToPt(double px, double dpi) {
return px*72/dpi
}
but the font size on target is small even though
On Saturday, 7 November 2020 00:28:50 PST Ramakanth Kesireddy wrote:
> Ok Thanks for your mail. Forgot to mention that Qt UI is based on
> QWidgets(QPainter) with unicodes.
>
> Is this the reason why auto scale attribute doesn't works and need to use
> QFontmetrics to set point size for the DPI
ele
> Cc: Qt Interest
> Bcc:
> Date: Fri, 6 Nov 2020 18:30:15 +0530
> Subject: Re: [Interest] Qt5 font size issue with fontconfig
> Nope this didn't help. If setting pointsize appropriately for current
> display 141 dpi would help to scale for other displays of different scr
Ok Thanks for your mail. Forgot to mention that Qt UI is based on
QWidgets(QPainter) with unicodes.
Is this the reason why auto scale attribute doesn't works and need to use
QFontmetrics to set point size for the DPI accordingly?
Best Regards,
Ramakanth
On Fri, 6 Nov, 2020, 21:08 Thiago
On Friday, 6 November 2020 05:00:15 PST Ramakanth Kesireddy wrote:
> Is there any formula to calculate the font size in point size based on dpi
> display which would work for all display sizes or just setting point size
> would help?
Officially:
size in inches = size in points / 72 *
Nope this didn't help. If setting pointsize appropriately for current
display 141 dpi would help to scale for other displays of different screen
sizes in future?
Is there any formula to calculate the font size in point size based on dpi
display which would work for all display sizes or just
On Monday, 2 November 2020 23:26:49 PST Ramakanth Kesireddy wrote:
> Couldn't find the font size Qt 4.8 bug that is fixed for Qt 5 with font
> config in the Qt bug tracker.
>
> Appreciate if it is possible to share the same.
I doubt there is a report. Simply accept that Qt 5 is right and Qt 4 is
Hello Thiago,
Thanks for your mail.
Am wondering if we need to set
Qcoreapplication::setAttribute(Qt::AA_EnableHighDPI as the dpi of the
device is 141 only or reduce the point size across UI and converting pixels
being used to pt sizes with fontconfig in Qt5?
Couldn't find the font size Qt 4.8
On Sunday, 1 November 2020 01:12:59 PST Ramakanth Kesireddy wrote:
> Thanks a lot for your feedback.
> Could you please let me know the bug that has been fixed in Qt 4.8?
Yes, Qt 5 supports HighDPI.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel DPG Cloud
Thanks a lot for your feedback.
Could you please let me know the bug that has been fixed in Qt 4.8?
Yes shall reduce the point size as it appears the font size is large unlike
Qt4.8 and the text is truncated in table view rows and other text in UI.
Shall upgrade the version early next year either
On Saturday, 31 October 2020 04:34:08 PDT Ramakanth Kesireddy wrote:
> Hi,
>
> After porting the Qt 4.8 application to Qt 5.6.3 on embedded Linux(Yocto)
> with fontconfig, the font sizes appear larger on target.
>
> The Qt 4.8 application font size setting with 14pt default font appears
> larger
Does setting
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
help? This should be more or less the first line in your code.
Marc
On Sat, 31 Oct 2020 at 12:31, Ramakanth Kesireddy
wrote:
> Hi,
>
> After porting the Qt 4.8 application to Qt 5.6.3 on embedded Linux(Yocto)
>
22 matches
Mail list logo