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

QPieSlice border set to black removes the border

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.15.0
    • Charts
    • None
    • Linux/X11

    Description

      I have a derived class from QtCharts::QPieSlice doing this in the constructor:

      BalanceSlice::BalanceSlice(code_t ac, double amount, code_t vc, double value, double total)
      : BaseBalanceSlice(buildLabel(ac, vc, value, total), value, vc),
      m_amount(amount),
      m_ac(ac)

      { const currency_info_t *aInfo = getInfo(ac); QColor color(aInfo->rgb); setColor(color); setBorderColor(color); }

       

      when aInfo->rgb value is 0x00, the border is missing around the slice and the legend marker.

      Workaround:

      aInfo->rgb = 0x000001 makes the border reappear.

      Attachments

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

        Activity

          People

            e0348803 Miikka Heikkinen
            lano1106 Olivier Langlois
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes