Search code examples
c++qtstylesheeteditqtime

QTimeEdit C++ delete padding


I want to delete an undesirable padding on a QTimeEdit widget. Here is an example of my problem.

enter image description here


Solution

  • You can do this using setStyleSheet function.

    See Customizing Qt Widgets Using Style Sheets for reference.