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

No way to set grid width or grid pen in QTableView

    XMLWordPrintable

Details

    Description

      There is no way to set the grid width or grid pen from outside. That makes it extremely difficult to customize grid drawing of the widget.
      It will be extremely helpful if those two things which are right now hardcoded in the paint function can be exposed outside.

      In my particular case I can do it be either subclassing it and then writing a lot of paint code that is already there in QTableView.
      or
      I can do some dirty work in delegate.

      Both of which are cumbersome compared to a change in QTableView. Though its your design and your choice by all means, but It will be nice if its exported outside. Will make life so much easier. If its allowed I can submit a patch also for doing the same.

      Attachments

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

        Activity

          People

            vfm Thierry Bastian (closed Nokia identity) (Inactive)
            pritamghanghas Pritam Ghanghas
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes