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. Mouse hover event to switch frames
Forum Updated to NodeBB v4.3 + New Features

Mouse hover event to switch frames

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 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.
  • T Offline
    T Offline
    tanmay2227
    wrote on last edited by
    #1

    i want to use mouse hover event to switch frame .
    i have thought about using popup frames for that but am not sure how to go through can you help

    Tanmay Priyadarshi

    1 Reply Last reply
    0
    • JeroentjehomeJ Offline
      JeroentjehomeJ Offline
      Jeroentjehome
      wrote on last edited by
      #2

      Hi,
      Sorry, not real clear to what you want. With a frame, you mean a QFrame filled with widgets? If so, how do you want to switch it? Should it be a dialog, or just a different QFrame to display inside the current one?
      That last option might be best created using the QStackedWidget. Catch the hover event en set a different widget on top, if that kind of switching is needed.

      Greetz, Jeroen

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Sam
        wrote on last edited by
        #3

        I think you need to provide more description about your requirement. What are you trying to implement ?

        1 Reply Last reply
        0
        • T Offline
          T Offline
          tanmay2227
          wrote on last edited by
          #4

          sorry if i was not specific
          my requirement is quite near to what JeroentJe@home said
          i have two frames of different sizes . one is an example frame of a small size but i want that whenever i hover my mouse on it the larger frame is shown and when the mouse leaves the frame it dissapears

          Tanmay Priyadarshi

          1 Reply Last reply
          0
          • T Offline
            T Offline
            tanmay2227
            wrote on last edited by
            #5

            hope this will help you to understand the requirements and thanks for such a quick reply

            Tanmay Priyadarshi

            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