Model Run Analysis Dialog with Qt4 QHeaderView for Rotated Column Header Text
Confounding Problem with Crosshatch Drawing
Phil Weinstein -- 9-25-2008 -- Hit Refresh -- See also Crosshatch Drawing in Headers

There is a problem with drawing a Cross Hatch in the new Qt4 "Item View" based Model Run Analysis Dialog. All cross hatch drawing is occuring within the first table row, i.e. regardless of which row we are drawing into.

In the "problem" image below, special debug code picks a different color for cross hatching drawn in each of the rows. Also, clipping in the cross hatch drawing is turned off -- and that's the cause of the extra triangle of lines drawn on the right side -- that's not a problem.

Old Drawing (OK) New Drawing (Problem)

FILE:    QtRun/RunAnalGridQTableView.cpp
METHOD:  void RunAnalGridQItemDelegate::paint (QPainter*, ..);

Sample Diagnostic Output:

std::cout << mname << " CrossHatch:"
          << " row-" << row << " col-" << col
          << " [" << rect.left() << " -> " << rect.right() << ";"
          << "  " << rect.top()  << " -> " << rect.bottom() << "]"
          << std::endl;

RunAnalGridQItemDelegate::paint CrossHatch: row-0 col-0 [0 -> 37;  0 -> 36]
RunAnalGridQItemDelegate::paint CrossHatch: row-0 col-1 [39 -> 76;  0 -> 36]
RunAnalGridQItemDelegate::paint CrossHatch: row-0 col-2 [78 -> 115;  0 -> 36]
RunAnalGridQItemDelegate::paint CrossHatch: row-0 col-3 [117 -> 154;  0 -> 36]
RunAnalGridQItemDelegate::paint CrossHatch: row-0 col-4 [156 -> 193;  0 -> 36]
RunAnalGridQItemDelegate::paint CrossHatch: row-1 col-0 [0 -> 37;  38 -> 74]
RunAnalGridQItemDelegate::paint CrossHatch: row-1 col-1 [39 -> 76;  38 -> 74]
RunAnalGridQItemDelegate::paint CrossHatch: row-1 col-2 [78 -> 115;  38 -> 74]
RunAnalGridQItemDelegate::paint CrossHatch: row-1 col-3 [117 -> 154;  38 -> 74]
RunAnalGridQItemDelegate::paint CrossHatch: row-1 col-4 [156 -> 193;  38 -> 74]
RunAnalGridQItemDelegate::paint CrossHatch: row-2 col-0 [0 -> 37;  76 -> 112]
RunAnalGridQItemDelegate::paint CrossHatch: row-2 col-1 [39 -> 76;  76 -> 112]
RunAnalGridQItemDelegate::paint CrossHatch: row-2 col-2 [78 -> 115;  76 -> 112]
RunAnalGridQItemDelegate::paint CrossHatch: row-2 col-3 [117 -> 154;  76 -> 112]
RunAnalGridQItemDelegate::paint CrossHatch: row-2 col-4 [156 -> 193;  76 -> 112]

---