Results 1 to 2 of 2

Thread: Size of a QPaintDevice

  1. #1
    Join Date
    May 2006
    Location
    Australia
    Posts
    53
    Thanks
    11
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Size of a QPaintDevice

    I've got some nice looking round buttons happening
    problem is....their whole area is still clickable....so my re-implamented RoundButton::MouseClickEvent is triggered even when some ambiguous area between 2 buttons is clicked....
    how do I redefine the clickable area?

    I can't just reduce the size to a v.small bounding rectangle and hope they don't get confused because I occasionally have to draw lines which connect some of my buttons and so the QPainter painter(this) has to return an area big enough to draw 1/2 the line from each button

    thanks
    =)

  2. #2
    Join Date
    May 2006
    Location
    Australia
    Posts
    53
    Thanks
    11
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Size of a QPaintDevice

    it would also maybe work to get some way of making the size of the widget a tight bounding rectangle to stop erroneous clicks, but then somehow get the painter to draw outside of its boundaries, but i don't know how to do this either

Similar Threads

  1. How to find best size for QTableWidget?
    By plamkata in forum Qt Programming
    Replies: 3
    Last Post: 24th July 2008, 19:07
  2. QT-wince and QHttp::readAll() trouble....
    By AcerExtensa in forum Qt for Embedded and Mobile
    Replies: 6
    Last Post: 12th June 2008, 09:40
  3. QLabel size policy
    By Caius Aérobus in forum Qt Programming
    Replies: 3
    Last Post: 7th December 2007, 17:57
  4. Replies: 1
    Last Post: 24th October 2006, 16:40
  5. Qt 4.1.1 linker warnings
    By Matt Smith in forum Installation and Deployment
    Replies: 0
    Last Post: 26th February 2006, 22:14

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.