stylesheet ... better in QtCreator or in mainwindows code?

  • Ultimately, I used to insert the element's stylesheet in QtCreator .... but is it a good habit for the performance of the application or is it better to insert the stylescheet into the mainwindows code?

    any suggest is appreciate.


  • Qt Champions 2017

    Inserting in Creator is also just code. (inside setupUI)
    There is no performance difference.

    However, it sometimes beneficial to set via code directly on
    the QApplication object so all windows are affected
    even if not child of main window.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.