Hello Guest, Welcome to Apnea Board !
As a guest, you are limited to certain areas of the board and there are some features you can't use.
To post a message, you must create a free account using a valid email address.

or Create an Account


New Posts   Today's Posts

RPI4 font preferences not maintained between starts of OSCAR
#41
RE: RPI4 font preferences not maintained between starts of OSCAR
I noticed that just after the (first) merge.

I fixed it in an additional merge. I used size+3 for both. It looks different between Linux and Raspian, so I had to compromise.
Apnea Board Monitors are members who help oversee the smooth functioning of the Board. They are also members of the Advisory Committee which helps shape Apnea Board's rules & policies. Membership in the Advisory Members group does not imply medical expertise or qualification for advising Sleep Apnea patients concerning their treatment.
Post Reply Post Reply






Donate to Apnea Board  
#42
RE: RPI4 font preferences not maintained between starts of OSCAR
(01-15-2021, 06:05 PM)pholynyk Wrote: OK... among all the debugging I added I discovered that Daily::Load(date) was being called with the application font still set to the system font. Adding a call to setApplicationFont(); at the start fixes the problem and now everything uses the font given in Preferences.xml.

Would putting the setApplicationFont() call in the Daily initializer instead of in Daily::Load(date) work? That way font won't be reset every time a page is changed.
The current version of OSCAR is 1.2.0.  We recommend upgrading from any earlier version.

Useful links
Download OSCAR
Best way to organize charts
How to attach charts to your post

Membership in the Advisory Members group does not imply medical expertise or qualification for advising Sleep Apnea patients concerning their treatment.
Post Reply Post Reply
#43
RE: RPI4 font preferences not maintained between starts of OSCAR
I think then you would be setting the font for every Daily object you created, so I think it would amount to the same thing. I could be wrong, and it's worth doing some more trials.
Apnea Board Monitors are members who help oversee the smooth functioning of the Board. They are also members of the Advisory Committee which helps shape Apnea Board's rules & policies. Membership in the Advisory Members group does not imply medical expertise or qualification for advising Sleep Apnea patients concerning their treatment.
Post Reply Post Reply
#44
RE: RPI4 font preferences not maintained between starts of OSCAR
Yes, I think you are right about Daily object being created all the time.

What I had been planning to try was to put the call in the mainwindow initializer or in mainwindow:: setupGUI(). That would have been a one-time call. It works on Windows of course but I can't test it on RPi. Do you want to try doing that, instead of doing it in Daily? Or do you want me to merge a change for happydreams to compile and test?

btw, what is your build time on the RPi4?
The current version of OSCAR is 1.2.0.  We recommend upgrading from any earlier version.

Useful links
Download OSCAR
Best way to organize charts
How to attach charts to your post

Membership in the Advisory Members group does not imply medical expertise or qualification for advising Sleep Apnea patients concerning their treatment.
Post Reply Post Reply






Donate to Apnea Board  
#45
RE: RPI4 font preferences not maintained between starts of OSCAR
I had already tried putting the call in setupGI; it had no effect. I think it has to be in the object that creates the html, but I'm not sure.

You'd think that something called QApplication::whatever would have application-wide access and effect, but QT has its quirks...

I think we'd have to dig into the QT code for doing html to figure out when the font name is accessed and then either fix it or work around it efficiently, as opposed to the kludge we have.
Apnea Board Monitors are members who help oversee the smooth functioning of the Board. They are also members of the Advisory Committee which helps shape Apnea Board's rules & policies. Membership in the Advisory Members group does not imply medical expertise or qualification for advising Sleep Apnea patients concerning their treatment.
Post Reply Post Reply
#46
RE: RPI4 font preferences not maintained between starts of OSCAR
Does this problem affect only the left sidebar? The right sidebar? The dates at the bottom of the page and the event and graph selectors? Or does it affect more on the Daily page? What about the Statistics page, which also uses the Application font?

If it is just the left sidebar, I could try putting the font specification in the HTML for that sidebar.
The current version of OSCAR is 1.2.0.  We recommend upgrading from any earlier version.

Useful links
Download OSCAR
Best way to organize charts
How to attach charts to your post

Membership in the Advisory Members group does not imply medical expertise or qualification for advising Sleep Apnea patients concerning their treatment.
Post Reply Post Reply
#47
RE: RPI4 font preferences not maintained between starts of OSCAR
Right side panel looks ok.  Nothing strange about it.  It's reasonably displayed.  First time I've used it!  Stats page and Overview look fine.  Issue is in the Daily details tab, at least from my perspective.

Seems odd to me that the AHI text and the AHI value are different fontsizes.  Why don't they have the same size?  Or rather, why are the fontsizes in the orange bar controlled by two different variables?

Build time on an overclocked (1-2 GHz) RPI4 with an SSD is about 15 minutes (first time), using 2 cores.
Post Reply Post Reply






Donate to Apnea Board  
#48
RE: RPI4 font preferences not maintained between starts of OSCAR
(01-16-2021, 09:16 AM)happydreams Wrote: Seems odd to me that the AHI text and the AHI value are different fontsizes.

I believe Phil has fixed that.

The entire left sidebar is created as HTML tables, and the program is constructing the HTML string that renders the left sidebar. It is extraordinarily easy to get something wrong!
The current version of OSCAR is 1.2.0.  We recommend upgrading from any earlier version.

Useful links
Download OSCAR
Best way to organize charts
How to attach charts to your post

Membership in the Advisory Members group does not imply medical expertise or qualification for advising Sleep Apnea patients concerning their treatment.
Post Reply Post Reply
#49
RE: RPI4 font preferences not maintained between starts of OSCAR
I don't know if this is a reasonable ask.  (I think for the most part, the display is better now.)  Is it possible for the text fields in the orange bar to be independent of the rest of the fonts?  Primarily fontsize.  

What's happening is as the orange bar text gets smaller, everything else gets thinner and smaller lots faster.  To the point it's hard for me to see.  Now the fontsize of everything else is fontsize(AHI_textsize)-3.  Can the 3 be 2 or 1?  What I am trying to say is the disparity in fontsizes is making it hard to see what I think is important to me.

Where is this daily tab being set up and written?  daily.cpp?  -j3 results in 7 minute build time, from distclean.
Post Reply Post Reply
#50
RE: RPI4 font preferences not maintained between starts of OSCAR
No, not reasonable at this time. I suggest setting the application font size to be what works best for the rest of the page and application and let the size used for AHI be whatever it wants.
The current version of OSCAR is 1.2.0.  We recommend upgrading from any earlier version.

Useful links
Download OSCAR
Best way to organize charts
How to attach charts to your post

Membership in the Advisory Members group does not imply medical expertise or qualification for advising Sleep Apnea patients concerning their treatment.
Post Reply Post Reply






Donate to Apnea Board  


Possibly Related Threads...
Thread Author Replies Views Last Post
  OSCAR profiles and preferences SevereApnea 5 121 02-20-2021, 02:56 AM
Last Post: SevereApnea
  OSCAR display font small bobsroka 2 342 12-28-2019, 10:45 PM
Last Post: bobsroka
Sad Oscar kills the Ubuntu VM it is running in [solved: bug in VirtualBox, not OSCAR] fredex 1 419 12-16-2019, 08:47 PM
Last Post: fredex
  preferences sheepless 6 354 09-13-2019, 12:22 PM
Last Post: pholynyk
  OSCAR -- Preferences -- Events and Waveform Tabs RWS0022 3 741 06-02-2019, 09:09 AM
Last Post: RWS0022
  OSCAR Preferences Window too large for screen Perchas 14 821 05-04-2019, 03:16 PM
Last Post: Dormeo
  OSCAR - Maximize Toogle option, lost menu options [resolved in OSCAR v1.0.1] Perchas 7 602 05-03-2019, 05:24 PM
Last Post: Perchas


New Posts   Today's Posts






About Apnea Board

Apnea Board is an educational web site designed to empower Sleep Apnea patients.