Results 1 to 5 of 5

Thread: How can I give TextEdit an outline?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2019
    Posts
    8
    Thanks
    5
    Qt products
    Qt5
    Platforms
    Windows

    Question How can I give TextEdit an outline?

    I've been looking into what my different options are as far as drawing a simple 2px black outline around my QTextEdit. What would be the best way?

    Drawing an outline separate from QTextEdit with the same string of text and sync-ing them up?

    Somehow using insertHtml to give it an outline? Some other way I have not realized is possible?

    As far as using something like QPainter, I'm pretty sure that should be possible somehow but I don't know where to start to make it draw 2 pixels going out the edges of the font.

    Here is an example of what the end product should look like, to avoid confusion with borders. Just a simple white text with a black outline

    example.png
    Last edited by UriTK; 10th April 2019 at 04:28.

Similar Threads

  1. Replies: 0
    Last Post: 4th November 2016, 00:27
  2. qgraphicspathitem how to get the outline
    By tf520 in forum Qt Programming
    Replies: 2
    Last Post: 28th September 2014, 00:05
  3. line with outline
    By folibis in forum Qt Programming
    Replies: 4
    Last Post: 20th September 2013, 10:22
  4. QGraphicTextItem and outline
    By eric_vi in forum Qt Programming
    Replies: 12
    Last Post: 17th October 2010, 21:47
  5. How can I rotate the font in TextEdit?
    By cslijy in forum Qt Programming
    Replies: 1
    Last Post: 29th November 2007, 08:14

Tags for this Thread

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.