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. stylesheet: etch around widget?
QtWS25 Last Chance

stylesheet: etch around widget?

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 126 Views
  • 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.
  • D Offline
    D Offline
    davecotter
    wrote on last edited by
    #1

    I'm trying to make something look etched: darker border on top and left, lighter on bottom and right, or something LIKE that....

    but this doesn't work. what would work?

    	ui->tableScrollContainer->setStyleSheet(
    		"QWidget#tableScrollContainer"
    			"{border-top-color: 1px solid #999999;}"
    			"{border-left-color: 1px solid #999999;}"
    			"{border-bottom-color: 1px solid #AAAAAA;}"
    			"{border-right-color: 1px solid #AAAAAA;}"
    			);
    
    
    1 Reply Last reply
    0
    • B Offline
      B Offline
      Bonnie
      wrote on last edited by Bonnie
      #2

      Why not use QFrame? Does what your need look like any of these?
      https://doc.qt.io/qt-6/qframe.html#details

      1 Reply Last reply
      3
      • D Offline
        D Offline
        davecotter
        wrote on last edited by
        #3

        OMG QFrame!

        1 Reply Last reply
        0
        • D davecotter has marked this topic as solved on

        • Login

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