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. QListWidget look
Qt 6.11 is out! See what's new in the release blog

QListWidget look

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

    Hi,

    I like how the QListWidget looks when I don't allow selections. Is there an easy way to get QListWidget to draw the selections like it does the active QListWidgetItem without selections?

    Josh

    JonBJ 1 Reply Last reply
    0
    • J JoshG

      Hi,

      I like how the QListWidget looks when I don't allow selections. Is there an easy way to get QListWidget to draw the selections like it does the active QListWidgetItem without selections?

      Josh

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by JonB
      #2

      @JoshG
      I don't know what "active" vs "selected" looks like, but are you aware you can alter the appearance from stylesheet via ::item:selected per https://doc.qt.io/qt-6/stylesheet-examples.html#customizing-qlistview? You can't "copy" from the active style though. You could do that instead in code in QStyledItemDelegate::paint() if you wanted that.

      1 Reply Last reply
      1

      • Login

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