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 stylesheet changing size of QList Widget
Qt 6.11 is out! See what's new in the release blog

.QSS stylesheet changing size of QList Widget

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

    I have a QList and QStacked Widget side by side, i'm making a style shieeet and i've noticed that my Qlist is now scrunched up something awful; the QStacked Widget does not appear to be affected in anyway other than through inheritance, wheras i have silghtly modified the the QList border pixels (note that commenting this out and changing the radius and border have had no effect on the actual size).

    So naturally, i am stumped. idk why it do this?

    edit:: let me mention that size and contents of said widgets are programmatically constructed, i do understand that i could in fact slide deep into the code and wrestle and kiss the code into changing its size afore i invoke the style spell, however, this has not been the case for any other element of this program. So i must needs slay this roach first before going on to potentially life shattering change.

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

      Hi,

      You should share the code you use to style your QListWidget.

      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

      • Login

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