/* Need to simulate the button style as the background of the parent is transparent */ /* and the background property is transmitted to the button children of the table which */ /* create invisible buttons. Setting again the background only fill the rect so we had to */ /* emulate the button style */ #m_materialSection QTableView QPushButton { border: 1px solid #8f8f91; border-radius: 4px; margin-bottom: 1px; background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #f6f7fa, stop:1.0 #dadbde ); } /* Fix tool bar alignment for macx */ /* On mac left algin mean center align not left */ /* It must be some other mac os subtility I don't understand */ #wGiToolsBox QTabWidget::tab-bar { alignment: left; } /* Fix tool button background on Mac style. */ /* According to the documentation Mac Style ignore the autoRaise property */ /* So we need to emulates it using stylesheets */ Qx2dViewerZoomWidget QToolButton[autoRaise="true"] { background-color: transparent; }