Important: Please read the Qt Code of Conduct -

QWidget Border Error.

  • 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.

  • Moderators

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

Log in to reply