Results 1 to 3 of 3

Thread: Highlighting a set of controls on mouse hover.

  1. #1
    Join Date
    Mar 2014
    Posts
    15
    Thanks
    1
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Highlighting a set of controls on mouse hover.

    Hi
    I am developing an existing GUI application which is developed in C# to QT.
    I want to highlight a set of controls i.e one check box and a push button on mouse hover i.e when mouse is over any of these controls then both check box and push button both gets highlited or a round box will highlight both of them.
    I c# StackPanel is used to group items together. Is there any stackpanel equivalent in QT or is there any other way to highlight group a set of controls.
    Thanks.
    Last edited by GAURAV PANT; 1st March 2014 at 08:51.

  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: Highlighting a set of controls on mouse hover.

    QWidget with a QVBoxLayout or QHBoxLayout, depending on which orientation you want the child widgets to be arranged in.

    Cheers,
    _

  3. #3
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Highlighting a set of controls on mouse hover.

    Layouts won't exhibit the highlighting behavior the OP is asking for. QGroupBox might be the closest thing to this since it provides a border, but I am not sure if it supports enter / leave highlighting by default or if you need to derive from it and override mouse enter and leave even handlers in order to implement highlighting.

Similar Threads

  1. Mouse hover issue in qt 4.7
    By qtuser123 in forum Qt Programming
    Replies: 0
    Last Post: 24th September 2012, 10:37
  2. Get keyboard focus on mouse over (hover to activate)
    By mortoray in forum Qt Programming
    Replies: 3
    Last Post: 7th September 2011, 20:23
  3. Hover on mouse over while dragging
    By mooreaa in forum Qt Programming
    Replies: 3
    Last Post: 6th February 2010, 11:31
  4. QSystemTrayIcon capture mouse hover event
    By alan in forum Qt Programming
    Replies: 2
    Last Post: 1st August 2009, 20:42
  5. segmentation fault on mouse hover
    By elessaar in forum Qt Programming
    Replies: 6
    Last Post: 26th August 2008, 13:51

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.