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. Asking again , looking for the best way to create flouting menu that is attached to left of the screen
QtWS25 Last Chance

Asking again , looking for the best way to create flouting menu that is attached to left of the screen

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 2.4k Views
  • 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.
  • U Offline
    U Offline
    umen242
    wrote on last edited by
    #1

    Hello
    maybe there is no good answer or i did not explain my problem right ( English isn't my native language ) . i will try again .
    i like to create flouting menu that is attached to the left side of the screen always , and when i click on it it will slide to the right . this menu have to be always on top and always attached to the middle left side of the screen.
    how should i start this ?
    Thanks

    1 Reply Last reply
    0
    • G Offline
      G Offline
      giesbert
      wrote on last edited by
      #2

      A floating menu is a QMenu. Showing a QMenu, you use the following code snippet:

      @
      QMenu myMenu;
      myMenu.exec(somePosition);
      @

      somePositio may be anything in screen coordinates. You can retreive screen size etc by QDesktopWidget.

      Nokia Certified Qt Specialist.
      Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

      1 Reply Last reply
      0
      • U Offline
        U Offline
        umen242
        wrote on last edited by
        #3

        the best is to show you what i like here is a client that is using what i like to build , its transperent layer menu on the left of the screen :
        "http://www.overwolf.com/":http://www.overwolf.com/
        i know that doing it with calculation screen coordinates is not easy , is there any framework for this maybe ?

        1 Reply Last reply
        0
        • G Offline
          G Offline
          giesbert
          wrote on last edited by
          #4

          Where is the problem?
          you need start and end coordinates and then some QPropertyAnimation.

          That should do the trick. But calculating start and end positions is up to you.

          Nokia Certified Qt Specialist.
          Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

          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