I mean online wallt the bitcoin-qt official wallet that i have spent from there some bitcoins
If you are changing your passphrase for your bitcoin-qt wallet then you will still need to move all your balance to a new address (assuming your concern is someone being able to crack your old passphrase).
I am pretty sure that the unused private keys in your key pool are discarded at the point of changing your passphrase so after changing the passphrase (and making sure you keep a backup of your old wallet) send the funds to a new address (and of course backup again).
And as others have already pointed out - bitcoin-qt can't do cold storage unless you are running it from a computer that isn't connected to the internet.