Results 1 to 2 of 2

Thread: Finidng the pixels for a character in QTextEdit

  1. #1
    Join Date
    Sep 2006
    Posts
    12
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Question Finidng the pixels for a character in QTextEdit

    Hi,
    I am working on plain text editor using QTextEdit.
    I need to allow user to change the tabwidth.
    For that, QTextEdit has setTabStopWidth ( int ts ) function which sets the tab stop width in pixels.

    I am giving an user interface to set the tab width in terms of spaces.
    I want to know is there anyway to find out how many pixels correspond to one space.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Finidng the pixels for a character in QTextEdit


Similar Threads

  1. QTextEdit API questions (plain text)
    By Gaspar in forum Qt Programming
    Replies: 4
    Last Post: 16th May 2006, 06:03

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.