Results 1 to 7 of 7

Thread: Moving MainWindow , Dialog Window \ Animated Move

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2013
    Posts
    23
    Thanks
    3
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

    Question Moving MainWindow , Dialog Window \ Animated Move

    Hello first time poster here so i guese an intreduction is in order.
    Hello am Kjell 'WetCode' Bjarre (25) and am a complete Qt noob.

    So here is my question:.

    What i want to do is have a dialog slide out from the top right corner of the screen "hover" for x seconds and slide back in again and close.
    I set up my little main window and a button that`s suposed to trigger the "notification" in the top right corner.
    Well i don`t know how i would move that image i found some functions like ::setX(int ) and Y but that don`t work, can`t find anything on it in the help. (I know its there i just cant find it).

    So i tried setting up a timer that was connected the timer with the timeout() and set the slot to update() in this (beeing the dialog "pop up" window)
    in a for loop that would basically move the window from X, Y = 0 to 400. That dont work ether so am hoping someone here can point me in the direction of the correct classes and functions.

    Thanks for reading all this and BTW i have these express in with amazon on Thursday so i hope i wont be a bother to long.
    * Foundations of Qt Development (Expert's Voice in Open Source)
    * C++ GUI Programming with Qt 4 (2nd Edition) (Prentice Hall Open Source Software Development Series)
    * Advanced Qt Programming: Creating Great Software with C++ and Qt 4 (Prentice Hall Open Source Software Development)


    I realy want to learn and can`t wait for the books so any help while i wait i is much aprichiated.

    Cheers
    WetCode
    Last edited by WetCode; 8th January 2013 at 20:00.

Similar Threads

  1. Right approach for moving animated objects
    By AndyQT in forum Newbie
    Replies: 5
    Last Post: 6th November 2012, 09:39
  2. Replies: 4
    Last Post: 17th August 2010, 19:38
  3. Replies: 1
    Last Post: 15th August 2010, 21:40
  4. Replies: 0
    Last Post: 9th May 2010, 20:49
  5. Replies: 3
    Last Post: 23rd July 2006, 18:02

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
  •  
Qt is a trademark of The Qt Company.