PDA

View Full Version : Drawing diagonal lines inside a cell in a grid layout



dloadfreak
27th October 2016, 13:06
I am working on making a kakuro game. I want to make diagonal lines for the sum cells in a kakuro game. I have a grid layout set up but don't know how I would make a diagonal line and put two numbers in that cell, one on top if the line and one on the bottom section. Visit kakuros.com (http://kakuros.com) to understand what I am trying to explain. I really appreciate any help.

anda_skoa
27th October 2016, 14:54
You can either use cell widges with custom drawing or use QGraphicsView instead of widgets in a layout.

Cheers,
_