Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt: change color of dock area in window
Forum Updated to NodeBB v4.3 + New Features

Qt: change color of dock area in window

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 957 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Craetor
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

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

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • C Offline
        C Offline
        Craetor
        wrote on last edited by
        #3

        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?

        1 Reply Last reply
        0
        • C Offline
          C Offline
          Craetor
          wrote on last edited by
          #4

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

          1 Reply Last reply
          0
          • mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by mrjj
            #5

            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.

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved