Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [solved] I'd like to see the QRect...

[solved] I'd like to see the QRect...

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    broadpeak
    wrote on last edited by
    #1

    I must to write a delegate for a QListVew.
    When I reimplement the paint() method, I use some QRect in a spec layout.
    I'd like too see these rects exactly (position, dimension).

    How can I switch on and off these lines (boundaries) of rects?

    1 Reply Last reply
    0
    • U Offline
      U Offline
      unai_i
      wrote on last edited by
      #2

      Hello,
      QRect is just a class which holds rectangle dimensions and position (i.e: x,y,width, height). It doesn't draw anything. I think what you want is QPainter and more specifically QPainter::drawRect method.
      Good luck!

      1 Reply Last reply
      0
      • B Offline
        B Offline
        broadpeak
        wrote on last edited by
        #3

        Ahh, yes! Thank you! This will solve my problem :)

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved