Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QTextEdit change background color Error.



  • Qt Create 3.3.0 (enterprise)

    Based on Qt 5.4.0 is used.

    WIndows 8 64Bit and Linux are the same.

    On Linux, changing the background color with TextEdit setPalette changes the color well, but it remains white in Windows.

    Even with setStyleSheet, Windows does not change.

    Which issue?


  • Lifetime Qt Champion

    Hi,

    What version of Qt are you using ? (You gave the Qt Creator information)

    Note that styles are free to ignore QPalette values so what you are observing might be completely normal.

    Depending on the customisation you want, you might want to try the Fusion style.


Log in to reply