Qt: change color of dock area in window



  • I have a window with docked sub-windows.

    A dock area draws when by sub-window can be docked.

    How can i change the dock area color?

    alt text


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Do you mean the colour that is used to show the possible location or the color of the background ?



  • Hello, yes i mean the possible location color. I tried to find a stylesheet - without result. I can change color of separator, but no any stylesheets about the possible location.

    QMainWindow {
        background-color: #444444;
    }
    
    QMainWindow::separator:hover {
        background: red;
    }
    

    I want make this, for example:

    QMainWindow::THE_POSIBLE_LOCATION {
        background: red;
    }
    

    Any solutions?



  • Hi,
    is there no such possibility or you need more information about issue?


  • Qt Champions 2017

    Hi, i have never seen anything stylesheet related for the dock location marker background color.
    I would consult the source code and see if i can find what it uses to draw it.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.