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. QFrame's style cover it's sub items' style, why...plz help me
Forum Updated to NodeBB v4.3 + New Features

QFrame's style cover it's sub items' style, why...plz help me

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 199 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.
  • 4 Offline
    4 Offline
    491239
    wrote on last edited by
    #1

    On mac, I have to set my QFrame container border none to hide the edge of container.But windows don't need to.
    So I set

    QRadioButton {
        border: 1px solid #CBCBCB;
        border-radius: 16px;
        padding-left: 10px;
        background-color: transparent;
        font-size: 14px;
        color: #CBCBCB;
    }
    
    QRadioButton:checked {
        border: 1px solid #2FAFD0;
        border-radius: 16px;
        padding-left: 10px;
        background-color: transparent;
        font-size: 14px;
        color: #2FAFD0;
    }
    
    #ContentFrame {
        border: none;
    }
    

    But my QRadioButtons which in QFrame border style disappeared....
    Can somebody help me ? How should I do to hide the edge on Mac and preserve my Buttons' border style?

    1 Reply Last reply
    0
    • 4 491239 has marked this topic as solved on
    • 4 Offline
      4 Offline
      491239
      wrote on last edited by
      #2
         contentFrame->setFrameShape(QFrame::NoFrame);
      
      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