title: Why doesn't QLineEdit Style change when focused?
body: <p>I'm developing a GUI using Qt and its stylesheets. On the main window stylesheet I've put the following style:</p>
  <pre><code>QLineEdit:focus {
      border: 2px solid #006080;
  }
  </code></pre>
  <p>But when I use it the style doesn't really change as I expected. However, if I put the same stylesheet directly on the desired component, it works like magic! But well, it's not really a good idea to put stylesheets on every single LineEdit I may want (which would greatly increase the amount of work needed to add new components or change the stylesheet), neither reapplying the stylesheet by adding code lines such as <code>setStyleSheet(styleSheet())</code>.</p>
  <p>Does anyone know how to solve this?</p>