L
L
LNK2016-09-01 14:08:08
css
LNK, 2016-09-01 14:08:08

What causes a problem in QSS (Qt, C++)?

There is a Qt::FramelessWindowHint window with setAttribute(Qt::WA_TranslucentBackground) applied. When applying these styles:

setStyleSheet("QTabWidget::pane{background-color: white; border-top:2px solid gray;} ");

This is what happens:
4a066e0706a7442f83008ce37f05c9a5.JPG
What makes tabs that are not selected so strange? Tried changing the border property of QTabWidgeta, QTabBara and QtabBar::tab, doesn't help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
Jacob E, 2016-09-01
@Zifix

QSS are broken in many places and no one from Digia will fix them anymore. You can dance with a tambourine and hope to find a hack to get around the bugs, or just switch to QML.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question