bugGNU Octave - Bugs: bug #49612, QT: uicontrol checkboxes and...

 
 

bug #49612: QT: uicontrol checkboxes and radiobuttons have wrong sizes

Submitter:  -X- <jsh>
Submitted:  Tue 15 Nov 2016 07:22:47 PM UTC
   
 
Category:  Plotting with OpenGL Severity:  2 - Minor
Priority:  5 - Normal Item Group:  Regression
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Sun 30 Dec 2018 01:35:19 PM UTC, comment #14: 

I marked the bug as fixed on the Bug Fix List as well: https://wiki.octave.org/Bug_Fix_List_-_5.0_Release#Bugs_marked_as_regressions

Rik <rik5>
Group administrator
Sun 30 Dec 2018 12:58:56 PM UTC, comment #13: 

While I can still reproduce with Octave 4.2.2, the ticks in the checkboxes render with the correct size with Octave 4.4.1 (and dev).

Closing as fixed.

Markus Mützel <mmuetzel>
Group administrator
Sun 30 Dec 2018 12:42:13 PM UTC, comment #12: 

Can someone re-verify this bug with the current 5.0.1 pre-release branch?  The bug mentioned in comment #11 has now been fixed.

Rik <rik5>
Group administrator
Fri 13 Apr 2018 11:11:01 AM UTC, comment #11: 

I can confirm this on dev as well.

This might be related to bug #49053. Adding dependency.

Markus Mützel <mmuetzel>
Group administrator
Fri 13 Apr 2018 07:26:29 AM UTC, comment #10: 

Issue still present in Octave 4.3.9 alpha on Windows 10

Anonymous
Wed 14 Mar 2018 08:59:39 PM UTC, comment #9: 

The issue remains for me in 4.2.2

-X- <jsh>
Wed 14 Mar 2018 01:26:27 PM UTC, comment #8: 

This works for me, but I am running Qt5 inside a Windows XP virtual machine.

It is possible that the newest stable release, 4.2.2, being uploaded today fixes this.  It would be worth testing with someone who experiences this problem.

It is also possible that the 4.4.0 release in one month will fix this.  I suggest re-testing at this time as well.

Rik <rik5>
Group administrator
Sat 08 Apr 2017 08:13:53 AM UTC, comment #7: 

Just updating this regression bug that it is still present in 4.2.1

-X- <jsh>
Fri 18 Nov 2016 01:15:32 PM UTC, comment #6: 

Just tried Philips build with QT5 and that made no difference in this case. Must be a regression bug.

-X- <jsh>
Thu 17 Nov 2016 01:44:58 PM UTC, comment #5: 

I can now CONFIRM this behavior on a WIN7 machine: The checkboxes and their tickmarks look fine with Octave 4.0.3, but with Octave 4.2.0 (w64) the tickmarks are displayed much too small. The display setting is only 125% in my case, so I would like to conclude that this is not due to any high-dpi scaling. And this is a proper regression.

Wasn't there a change in the Octave generated dialog windows? Are those now all generated by qt, and before they were in some settings generated differently?

@jsh: You could ask Philip Nienhuis to download his mxe-octave built with qt5 (see bug #43099 comment #34) and see if those work better in this respect.




Hartmut <hardy>
Thu 17 Nov 2016 07:56:26 AM UTC, comment #4: 

Yes, 4.2final does not fix anything. Unfortunately I can't compile Windows Octave. Somehow I do believe it must be due to a regression in Octave though, since it worked before and it so far only seems to effect the radiobuttons and checkmarks (oddly enough the checkbox boxes are scaled correctly while the check marks are far too small).

-X- <jsh>
Thu 17 Nov 2016 01:52:06 AM UTC, comment #3: 

Please download and update to 4.2.0 now that the release has been made. I doubt it will have fixed this, so I'm updating the release tag assuming no change.

I think I heard that Qt 5 has better support for HiDPI than Qt 4. Can you build mxe-octave yourself with the --enable-qt5 option? The official binaries are built with Qt 4, but please build and test mxe-octave with Qt 5 so the next major Octave release can be done with Qt 5 with some confidence that it will work.

Mike Miller <mtmiller>
Group Member
Wed 16 Nov 2016 08:06:14 AM UTC, comment #2: 

I am running Windows 10 and possibly suspect the issue is due to the hidpi scaling (200% or 2x) in my case. However, the odd things is that it so far only seem to be a problem for the radiobuttons and checkmarks (checkboxes, text, and everything else seems ok). And it worked in 4.0. Here is an image showing the issue, 4.0.3 on the left and 4.2 on the right

http://imgur.com/a/A0Ir7

For dpi I get 133.77 and pixels is  1368 x 912 (which is exactly 1/2 the real resolution due to hidpi scaling). The (3:2 ratio) screen diagonal is 12.3 inches 312 mm or so.

-X- <jsh>
Tue 15 Nov 2016 10:39:14 PM UTC, comment #1: 

When using the official Win32 installer (Octave 4.2.0 release) under Windows XP your little test script gives me nice checkboxes of a useful size.

What Windows version are you using?

What do you get as a result of

dpi = get(0, 'screenpixelsperinch')
pixels = get(0, 'screensize')(3:4)

and what is the physical size (in millimeters) of you monitor? Do those values match to each other? (This might be related to bug #45600.)


Hartmut <hardy>
Tue 15 Nov 2016 07:22:47 PM UTC, original submission:  

The checkmarks in the checkboxes now only fills a tiny part of the checkbox and the radiobutton is far too small almost even to see (this was fine in 4.0.3).


fs = 10;
p = uipanel;
uicontrol('style','radiobutton','string','foo','fontsize',fs,'parent',p,'units','normalized','position',[0 0 1 0.25])
uicontrol('style','radiobutton','string','foo','fontsize',4*fs,'parent',p,'units','normalized','position',[0 0.25 1 0.25])
uicontrol('style','checkbox','string','foo','fontsize',fs,'parent',p,'units','normalized','position',[0 0.5 1 0.25])
uicontrol('style','checkbox','string','foo','fontsize',4*fs,'parent',p,'units','normalized','position',[0 0.75 1 0.25])


-X- <jsh>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by pantxo (Updated the item)
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by hardy (Posted a comment)
  • -email is unavailable- added by jsh (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 12 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-12-30 mmuetzel StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2018-11-02 mtmiller Carbon-CopyRemoved 80942 -
    2018-11-02 pantxo CategoryGUI Plotting with OpenGL
    2018-04-13 mmuetzel StatusWorks For Me Confirmed
        Release4.2.2 dev
        Dependencies- Depends on bugs #49053
    2018-03-21 rik5 Release4.2.0 4.2.2
    2018-03-14 rik5 StatusNeed Info Works For Me
    2016-11-17 mtmiller Severity3 - Normal 2 - Minor
        StatusNone Need Info
        Release4.2.0-rc4 4.2.0

    Back to the top

    Powered by Savane 3.14-f13d.
    Corresponding source code