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. Issue in QFrame::setFrameStyle while using with QApplication::setStyleSheet
Forum Updated to NodeBB v4.3 + New Features

Issue in QFrame::setFrameStyle while using with QApplication::setStyleSheet

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

    Hi,
    In a Qt widget application, I'm using QApplication::setStyleSheet for setting the common style for the entire application. Also uses QFrame object in one of the classes in the application. I tried to set a specifics shape & shadow for the QFrame object using QFrame::setFrameStyle(QFrame::Box | QFrame::Raised) method, but the style not applied. But, while not applying the common stylesheet for the application, the QFrame style setting working properly. please help to sort the issue?
    has any issue there in setting the frame style and application style at the same time?
    Have any method to set QFrame::Box & QFrame::Raised styles for the frame object using stylesheet?

    K 1 Reply Last reply
    0
    • B BinuJanardhanan

      Hi,
      In a Qt widget application, I'm using QApplication::setStyleSheet for setting the common style for the entire application. Also uses QFrame object in one of the classes in the application. I tried to set a specifics shape & shadow for the QFrame object using QFrame::setFrameStyle(QFrame::Box | QFrame::Raised) method, but the style not applied. But, while not applying the common stylesheet for the application, the QFrame style setting working properly. please help to sort the issue?
      has any issue there in setting the frame style and application style at the same time?
      Have any method to set QFrame::Box & QFrame::Raised styles for the frame object using stylesheet?

      K Offline
      K Offline
      kenchan
      wrote on last edited by
      #2

      @BinuJanardhanan
      How about using a selector for your specific frame? Did you see the Style Sheet documentation?

      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