bugGNU Octave - Bugs: bug #53174, Octave uses Win98 theme on Windows


bug #53174: Octave uses Win98 theme on Windows

Submitted by:  Alexander Wilms <alexanderw>
Submitted on:  Sat 17 Feb 2018 01:17:37 AM UTC  
Category: GUISeverity: 3 - Normal
Priority: 5 - NormalItem Group: Regression
Status: NoneAssigned to: None
Originator Name: Open/Closed: Open
Release: 4.2.1Operating System: Microsoft Windows

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


(Jump to the original submission Jump to the original submission)

Sat 17 Feb 2018 06:01:32 PM UTC, comment #9:

Does removing that line or changing it to "windowsvista" fix the theme?

I tried building a Windows version, but it fails, since epstool can't be downloaded.

Alexander Wilms <alexanderw>
Sat 17 Feb 2018 07:07:06 AM UTC, comment #8:

It looks like we are already forcing the style to be "Windows":


Maybe this is why QT_STYLE_OVERRIDE has no effect on Windows systems? Looking at the Qt sources, it that environment variable appears to be used on all platforms.

John W. Eaton <jwe>
Project Administrator
Sat 17 Feb 2018 05:37:12 AM UTC, comment #7:

Yes, that might be the best solution.

TeXstudio has a dropdown with all available options in its settings dialog:



Alexander Wilms <alexanderw>
Sat 17 Feb 2018 05:23:06 AM UTC, comment #6:

I think it would be better to have this as an option for all rather than hardwired just for Windows.

John W. Eaton <jwe>
Project Administrator
Sat 17 Feb 2018 05:10:25 AM UTC, comment #5:

QT_STYLE_OVERRIDE doesn't have any effect for 4.2.1 either.

If the patch works, is an additional option necessary? I don't know if Qt falls back to the "windows" style when the user manually sets the win98/win2000 theme for the entire desktop.

Alexander Wilms <alexanderw>
Sat 17 Feb 2018 05:02:44 AM UTC, comment #4:


Maybe we could make this an option for Octave specifically, either through an environment variable or command line option. I can do that (unless somone else does it first).

I tried setting QT_STYLE_OVERRIDE on a Windows system with a build from the current dev sources and it didn't seem to have any effect for me.

John W. Eaton <jwe>
Project Administrator
Sat 17 Feb 2018 04:50:51 AM UTC, comment #3:

I attached a patch.

(file #43339)

Alexander Wilms <alexanderw>
Sat 17 Feb 2018 04:27:19 AM UTC, comment #2:

I wasn't aware there was a problem.

So what are we supposed to do with that "windowsvista" style?

Patch please?

John W. Eaton <jwe>
Project Administrator
Sat 17 Feb 2018 03:38:20 AM UTC, comment #1:

Were older versions of Octave for Windows build using MinGW, which would have made the "windowsvista" style available?

Cf. http://doc.qt.io/qt-5/qstylefactory.html#details

Alexander Wilms <alexanderw>
Sat 17 Feb 2018 01:17:37 AM UTC, original submission:

Not a big issue, but it makes Octave look less polished.

On Windows 10, Octave 4.2.1 uses a blocky, Win98-style theme. This was previously reported in 2016, and seems to have been introduced between 4.0.3 and 4.2.0: http://octave.1599824.n4.nabble.com/Octave-4-2-0-GUI-on-Windows-has-changed-and-looks-ugly-td4680754.html

Maybe using a conditional QApplication::setStyle("windowsvista") fixes this. But https://stackoverflow.com/questions/44784414/qt-gui-theme-looks-old-fashioned suggests patching Qt's configure options.

Alexander Wilms <alexanderw>


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

Attach File(s):

Attached Files
file #43339:  windowsvista.patch added by alexanderw (746B - text/x-patch)
file #43337:  1fN8T1g.png added by alexanderw (64KiB - image/png)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by alexanderw (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 17 Feb 2018 04:50:51 AM UTCalexanderwAttached File-=>Added windowsvista.patch, #43339
    Sat 17 Feb 2018 01:17:37 AM UTCalexanderwAttached File-=>Added 1fN8T1g.png, #43337

    Back to the top

    Powered by Savane 3.1-cleanup1