Results 1 to 3 of 3

Thread: Correct spacing of a text in QT Creator using QTextEdit

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2017
    Posts
    1
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default Correct spacing of a text in QT Creator using QTextEdit

    I am trying to allign some text and show it via QTextEdit but I'm not sure how to do it properly .
    I realized that the space in QT creator doesnt take as much as a normal character and I guess there's where I have problems because I can space it well in c/c++ using this:

    Qt Code:
    1. snprintf(BufInterm1,100,"%-25s",BufferPPart); - %-25s
    To copy to clipboard, switch view to plain text mode 

    However, when I send it to QT, it's not displayed proper. Any idea how I can space it well ?

    This is how I'm showing it:

    Qt Code:
    1. ui->MersulText->setText(MersSosiri);
    To copy to clipboard, switch view to plain text mode 

    I've tried different fonts but none work unfortunately

    LAST EDIT: Fixed it, it can be closed
    Last edited by gimv30; 23rd January 2017 at 14:31.

Similar Threads

  1. spacing between icon and text
    By mrchumley in forum Newbie
    Replies: 2
    Last Post: 21st May 2012, 11:19
  2. How can we set line spacing in Qtextedit control?
    By pratik041 in forum Qt Programming
    Replies: 0
    Last Post: 24th January 2012, 04:41
  3. How to Make Qt Creator use the correct GDB on OSX
    By mark100net in forum Qt Tools
    Replies: 0
    Last Post: 4th December 2011, 08:21
  4. Line spacing in QTextEdit/QTextBrowser
    By Valheru in forum Qt Programming
    Replies: 5
    Last Post: 10th November 2010, 13:47
  5. Replies: 12
    Last Post: 30th May 2009, 14:29

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.