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. Title of QGroupBox(containing CustomWidgets) is partially visible when StyleSheet is set.

Title of QGroupBox(containing CustomWidgets) is partially visible when StyleSheet is set.

Scheduled Pinned Locked Moved General and Desktop
5 Posts 4 Posters 1.7k 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.
  • K Offline
    K Offline
    Kritika
    wrote on last edited by
    #1

    I have designed a custom widget containing QLabel, QLineEdit and QLabel (contained in QWidget).

    In my application, i have used this custom widget in a groupBox in QDialog and some title is set of this groupBox. There is another groupBox in this application in the same QDialog containing QRadioButtons. When i execute this application both groupBox are visible along with their title.
    When i set styleSheet on this QDialog, the title of the groupBox containing custom widget is partially visible i.e statring charaters are hidden. Why this is happening?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      Saugglocke
      wrote on last edited by
      #2

      Hm, I think a screenshot and your stylesheet would be useful.

      bb

      1 Reply Last reply
      0
      • Z Offline
        Z Offline
        zeljko
        wrote on last edited by
        #3

        maybe problem (bug) with QGroupBox layout ?

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

          Hi,

          Not necessarily a bug with QGroupBox's layout. Setting a style sheet on a widget makes it use a dedicated QStyle which might be doing something wrong.

          A dialog example along with the style sheet would be useful.

          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
          0
          • Z Offline
            Z Offline
            zeljko
            wrote on last edited by
            #5

            Of course, that it's hard to know what is exact problem without single piece of code, we are just speculating what might be problem.

            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