Skip to content
QtWS25 Last Chance
  • How to read INI file

    Unsolved General and Desktop ini qt5.15.2
    10
    0 Votes
    10 Posts
    1k Views
    JonBJ
    @Ketan__Patel__0011 :) OK. This thread is asking about a particular problem, "duplicate keys", which I don't think QSettings will handle as the OP wishes.
  • How to set a font from a ini file?

    General and Desktop ini
    2
    0 Votes
    2 Posts
    784 Views
    Lays147L
    @JKSH @SGaist Well, i did this in my code in main.cpp QString fontPath = ":/Fonts/Ubuntu-R.ttf"; int fontId = QFontDatabase::addApplicationFont(fontPath); if (fontId != -1) { QFont font("MyFont"); app.setFont(font); } It did works, but the error appears, this time only the first line terminal (Before appeared n times). But the program normally performs. Can anyone tell me why the error (FontDatabase) persist? Ps.: I build my app with qt libraries STATIC. Exists another way to fix the font problem in the project without this way that i did?