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

QWidget Border Error.

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 2 Posters 505 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.
  • P Offline
    P Offline
    Pada_
    wrote on last edited by
    #1

    I want to get rid of QWidget's TextEdit, TableView's Border.

    We used styleSheet's border: 0 to get rid of the borders, but in the process of removing borders, we see that the contents of TextEdit are positioned as little as the existing Border Width.

    I do not want to see it, so I tried border-color: White or border-color: transparent or border-color: argb (255,255,255,0) to transparent the border altogether.

    How can I make it invisible?

    I am using Linux on Qt5.4.

    J.HilkJ 1 Reply Last reply
    0
    • P Pada_

      I want to get rid of QWidget's TextEdit, TableView's Border.

      We used styleSheet's border: 0 to get rid of the borders, but in the process of removing borders, we see that the contents of TextEdit are positioned as little as the existing Border Width.

      I do not want to see it, so I tried border-color: White or border-color: transparent or border-color: argb (255,255,255,0) to transparent the border altogether.

      How can I make it invisible?

      I am using Linux on Qt5.4.

      J.HilkJ Offline
      J.HilkJ Offline
      J.Hilk
      Moderators
      wrote on last edited by
      #2

      hi @Pada_
      set the border to 0 (or none) and use the padding or margin attributes to position the text away from the border


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      1 Reply Last reply
      1

      • Login

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