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. QSS Styling Tip HELP!!!
Forum Updated to NodeBB v4.3 + New Features

QSS Styling Tip HELP!!!

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 300 Views 1 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.
  • Z Offline
    Z Offline
    zeethree50
    wrote on last edited by
    #1

    I know how to put a border around a QWidget in a QSS Stylesheet but it puts a border around every children inside of it. However, I'm having trouble putting a border for QFormLayout. I've been searching but no luck.

    Any tips?

    It's super easy to style QLabels and QLine Edits, etc. But how do it for a layout?

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

      Hi and welcome to devnet,

      AFAIK, You can't, layouts have no visual appearances.

      What exactly are you trying to achieve ?

      If you don't want the children widgets to be modified, you have to limit precisely the scope of your QSS.

      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
      1

      • Login

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