Search code examples
user-interfacepluginsqgis

Change QGIS Plugin theme to grey


I am designing a QGIS plugin. I am struggling to make the outer region of the UI to be grey (see image). enter image description here

The QT file is:

enter image description here

A reference UI that I want to make my UI look like, all non-functional space is grey: enter image description here


Solution

  • You simply need to add a stylesheet to your plugin. Right click on your widget and select 'Change stylesheet'. Add this stylesheet for turning your QTabWidget to grey.

    QTabWidget {
        border: 0px transparent black;
    
    }
    
    QTabWidget::pane {
        border: 1px solid #76797C;
        padding: 5px;
        margin: 0px;
        background-color: #D3D3D3;
    }