Results 1 to 2 of 2

Thread: How to customize visual representation of text in textbox in Qt / QML

  1. #1
    Join Date
    Nov 2014
    Posts
    20
    Thanks
    1
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11

    Default How to customize visual representation of text in textbox in Qt / QML

    I'd like to change behaviour of Textbox control in QML so it will show each word surrounded with a rectangle (example is list of technologies in LinkedIn page: you can enter word in the same textbox, but when you hit comma, it changes to custom item). The question is how to implement such a custom item in QML textbox?

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

    Default Re: How to customize visual representation of text in textbox in Qt / QML

    I don't think a textbox is a proper component for the job. You can get a quick result with a Flow and a Repeater.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Gameboard representation in QT
    By Brando753 in forum Newbie
    Replies: 1
    Last Post: 4th November 2013, 13:37
  2. Replies: 3
    Last Post: 15th April 2013, 18:42
  3. textbox+highlighter
    By nima in forum Qt Programming
    Replies: 0
    Last Post: 27th June 2011, 15:39
  4. Replies: 2
    Last Post: 25th November 2010, 09:53
  5. Textbox
    By Devoraz in forum Qt Programming
    Replies: 6
    Last Post: 23rd July 2009, 06:37

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.