Save and Restore QToolbar position
-
Is that why you deleted your profile? I assumed you were just ashamed and went for a fresh and better start, but seeing how you mock my username, which further solidifies my theory that you are indeed a jackass, I see I overestimated you. I suggest you delete that profile as well, because your behavior gives me a good reason to report you on personal basis, then make yourself a normal profile and start behaving like a grown man, not a spoiled brat.
And just to assure you the methods work perfectly fine, here is a few screenshots in an animated gif and some code:
!http://i39.tinypic.com/2119xmu.gif!
@void MainWindow::setPos()
{
ui->mainToolBar->move(ui->spinX->value(), ui->spinY->value());
}void MainWindow::getPos()
{
ui->spinX->setValue(ui->mainToolBar->pos().x());
ui->spinY->setValue(ui->mainToolBar->pos().y());
}@