Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. How can I create a separation line with some information in QlistWidget?
Forum Updated to NodeBB v4.3 + New Features

How can I create a separation line with some information in QlistWidget?

Scheduled Pinned Locked Moved Unsolved Qt for Python
2 Posts 2 Posters 252 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.
  • L Offline
    L Offline
    LexiWang
    wrote on last edited by
    #1

    Hi all!
    I'm doing a dicom viewer with thumbnail list on the left side, just like Radiant.
    The thumbnail list is a Qlistwidget with lots of item in it,
    and I want to add a separation line between them.
    but not just a line, I also want to have some information of the items below it on the separation line.
    For example,
    I want it look like the dark red square in the picture below:
    (this is a screen shot of Radiant)
    987469bf-b6a6-4d08-90a2-e39d6122c0bd-image.png
    How can I do it?
    Is there anything similar to what I'm saying that I can use in Pyqt5?
    Sorry for my poor English.
    Thank you very much!

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

      Hi and welcome to devnet,

      You should take a look at the QStyledItemDelegate class.

      It's also available for PyQt5.

      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
      1

      • Login

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