Results 1 to 5 of 5

Thread: qml Textarea

  1. #1
    Join Date
    Apr 2009
    Posts
    206
    Thanks
    34
    Thanked 2 Times in 2 Posts

    Default qml Textarea

    Hello friends,

    I integrate 3 textarea with a dark background color in a rectangle within a row. It seems that the textarea have an uncustomizable lightgray borderline.
    Am I right or can I set the bordercolor/borderwidth?

  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: qml Textarea

    You can completely redefine the looks by using your own style for the control.
    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.


  3. The following user says thank you to wysota for this useful post:

    codeman (13th January 2014)

  4. #3
    Join Date
    Apr 2009
    Posts
    206
    Thanks
    34
    Thanked 2 Times in 2 Posts

    Default Re: qml Textarea

    Hello,

    I am using this one.
    Qt Code:
    1. Rectangle {
    2. id: customRect
    3. color: "#1e1e1e"
    4. TextArea{
    5. id: numbers;
    6. font.bold: true
    7. font.pointSize:11
    8. readOnly: true
    9. horizontalAlignment: Text.AlignHCenter
    10. width: 200
    11. height:customRect.height
    12. text: "1"
    13. font.family: "courier"
    14.  
    15. style: TextAreaStyle {
    16. renderType: Text.NativeRendering
    17. textColor: "#2B91AF"
    18. selectionColor: "steelblue"
    19. selectedTextColor: "#eee"
    20. backgroundColor: "#1e1e1e"
    21.  
    22. }
    23. }
    24. }
    To copy to clipboard, switch view to plain text mode 

    I attached a image. You can see the lightgray borderline. What do you mean in this context you can customize it. I use also TextAreaStyle. But htere is no borderline or something else?!
    Attached Images Attached Images

  5. #4
    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: qml Textarea

    TextAreaStyle inherits ScrollViewStyle which allows you to provide your own frame component. Furthermore TextArea is a ScrollView which has a frameVisible property which you can use to completely disable the frame.
    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.


  6. #5
    Join Date
    Apr 2009
    Posts
    206
    Thanks
    34
    Thanked 2 Times in 2 Posts

    Default Re: qml Textarea

    Ok, thank you very much for your suggestions. I will give it a try.

Similar Threads

  1. QTCreator GUI How to link button with textarea
    By chs in forum Qt Programming
    Replies: 8
    Last Post: 23rd May 2011, 07:30
  2. QtWebKit and clickEvent from textarea
    By keen in forum Qt Programming
    Replies: 0
    Last Post: 30th June 2010, 15:15

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.