Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-129616

Missing support of :left, :middle, :right pseudo states in QTableView items

    XMLWordPrintable

Details

    • All

    Description

      I need to create custom row selection with rounded rectanlge:

      I'd like to use this form of QTableView style sheets:

      QTableView::item:selected
      {
        background-color: darkGray;
      }
      QTableView::item:selected:first
      {
        border-top-left-radius: 4px;
        border-bottom-left-radius: 4px;
      }
      QTableView::item:selected:last
      {
        border-top-right-radius: 4px;
        border-bottom-right-radius: 4px;
      }
      

      For now :first, :last, :middle pseudo states of QTableView item are not supported so this is impossible without code customization.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            govage Vasil Hancharenka
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes