Results 1 to 2 of 2

Thread: Drawing diagonal lines inside a cell in a grid layout

  1. #1
    Join Date
    Oct 2016
    Posts
    1
    Qt products
    Qt5
    Platforms
    MacOS X

    Default Drawing diagonal lines inside a cell in a grid layout

    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 to understand what I am trying to explain. I really appreciate any help.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Drawing diagonal lines inside a cell in a grid layout

    You can either use cell widges with custom drawing or use QGraphicsView instead of widgets in a layout.

    Cheers,
    _

Similar Threads

  1. Replies: 2
    Last Post: 14th November 2015, 01:15
  2. Draw Grid lines with Painter
    By mechsin in forum Newbie
    Replies: 8
    Last Post: 3rd February 2013, 14:33
  3. Replies: 0
    Last Post: 3rd November 2011, 18:03
  4. Increasing the Width of grid lines in qtable
    By raghvendramisra in forum Qt Programming
    Replies: 5
    Last Post: 29th August 2008, 16:19
  5. How do I move a widget inside a grid Layout
    By barnabyr in forum Newbie
    Replies: 1
    Last Post: 8th May 2006, 23:23

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.