Results 1 to 2 of 2

Thread: How to drwa a line which joins two label

  1. #1
    Join Date
    Mar 2011
    Location
    delhi
    Posts
    45
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Exclamation How to drwa a line which joins two label

    hi all
    how to draw a line which joins two labels and color the line and labels colors changes according some situations or conditions,




    thanks with regards:
    gauravg

  2. #2
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 452 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: How to drwa a line which joins two label

    Are these QLabels? then you can implement the line painting on a new custom widget and add it to the parent of QLabel. Note that QLabel(s) should be in a layout, but the new custom widget should not be in the layout

Similar Threads

  1. Read gzip file line-by-line
    By The_Fallen in forum Qt Programming
    Replies: 4
    Last Post: 6th September 2011, 13:41
  2. Replies: 3
    Last Post: 13th August 2010, 11:50
  3. Image reading and writing line by line
    By Astrologer in forum Qt Programming
    Replies: 7
    Last Post: 29th April 2010, 08:15
  4. Replies: 1
    Last Post: 21st November 2009, 08:29
  5. Draw a line in a Label
    By sabeesh in forum Qt Programming
    Replies: 4
    Last Post: 23rd July 2007, 13:27

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.