Please refer to the attached image to understand the problem. In the image you can see how I can remove the boundary lines or set their color to the color of QDialog. Thanks.
Try setting a QTabWidget stylesheet with a border of 0.
So for example:
tabwidget.setStyleSheet("QTabWidget::pane { border: 0; }");
using qt-designer, click on the frame, go to the style sheet properties type: 0