WetCode
8th January 2013, 20:55
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
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