Results 1 to 2 of 2

Thread: how to paint qwidget

  1. #1
    Join Date
    Feb 2014
    Posts
    60
    Thanks
    4
    Thanked 5 Times in 5 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default how to paint qwidget

    hi,
    I have custom widget which acts like a layout.So when i move a widget on this layout(custom widget) it should show a hover effect.I know to achive it using stylesheet or QPalette but the problem is i just want to show only part of my Custom widget(layout) the hover effect.How this can be done.
    thanks,

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: how to paint qwidget

    Just check if the mouse is in the desired rectangle of the widget or not

Similar Threads

  1. Replies: 4
    Last Post: 25th February 2013, 14:40
  2. QWidget from Designer--Paint or set foreground
    By augusbas in forum Qt Programming
    Replies: 2
    Last Post: 21st June 2011, 09:12
  3. Replies: 1
    Last Post: 30th October 2010, 13:28
  4. Replies: 1
    Last Post: 12th April 2010, 13:55
  5. Replies: 3
    Last Post: 2nd April 2010, 00:56

Tags for this Thread

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.