Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. TextEdit appearance
Qt 6.11 is out! See what's new in the release blog

TextEdit appearance

Scheduled Pinned Locked Moved Solved QML and Qt Quick
3 Posts 2 Posters 322 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sandro4912
    wrote on last edited by
    #1

    So we have QLineEdit in Widgets were you can see how big it is with the white background like this:

    efd7e285-a44e-40ed-ace8-b5fa191f388c-image.png

    Now I thought to have a similar item like LineEdit I use TextEdit. But it shows up without borders:

    96d1ff42-ea7e-4106-bc6e-f58ab4d90e45-image.png

    Do I have to put it in a white rectangle to get the dame effect or am I missing something / using the wrong tyṕe?

    1 Reply Last reply
    0
    • GrecKoG Offline
      GrecKoG Offline
      GrecKo
      Qt Champions 2018
      wrote on last edited by
      #2

      @sandro4912 said in TextEdit appearance:

      am I missing something / using the wrong tyṕe?

      Yes, TextEdit is the low level component for multiline text input, it doesn't have any decoration. Use TextArea instead.

      For single line text input, TextField is based on TextInput.

      1 Reply Last reply
      2
      • S Offline
        S Offline
        sandro4912
        wrote on last edited by
        #3

        I now used TextField which then looks similar to QLineEdit.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved