Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. formatting
    Log in to post

    • UNSOLVED QT Console application - go back up one line and add text to current line
      General and Desktop • text string console formatting console applica • • CybeX  

      2
      0
      Votes
      2
      Posts
      979
      Views

      Hi, As silly as it may sound but wouldn't removing << std::endl from the checking line be enough ?
    • UNSOLVED Qt UI Different on different versions of linux
      General and Desktop • linux qapplication styling formatting • • HunterMetcalfe  

      12
      0
      Votes
      12
      Posts
      2684
      Views

      Thanks for sharing !
    • SOLVED Formatting tableView header text
      General and Desktop • tableview header formatting • • gabor53  

      10
      0
      Votes
      10
      Posts
      10707
      Views

      SOLUTION: ui->tableView->model()->setHeaderData(2,Qt::Horizontal,QFont("Arial",10,QFont::Bold),Qt::FontRole); Actually everything is stated in the Qt Help, - just need to know how to correctly use it :)
    • So after QString::asprintf was removed, are we supposed to implement printf patterns by ourselves? Why?
      General and Desktop • qt5.5 qstring formatting • • MXXIV  

      4
      0
      Votes
      4
      Posts
      8120
      Views

      @MXXIV said: So QString::asprintf known in Qt4 was removed in Qt5. It's QString::sprintf() that was in Qt 4 but removed in Qt 5. Qt 5.5 introduced QString::asprintf() (and QString::vasprintf()), in fact: http://code.woboq.org/qt5/qtbase/src/corelib/tools/qstring.cpp.html#_ZN7QString8asprintfEPKcz (Hmm... there seems to be a documentation bug, and these functions aren't showing up. However, they are there for you to use)
    • SOLVED Double line-height
      General and Desktop • text formatting • • soapbox  

      2
      0
      Votes
      2
      Posts
      805
      Views

      Fixed by using a different font.