Re: Visibility of QDialog
Because of the dialog is child of main window, it has to show within parent(mainwindow) boundary.
If you want to move it to some other position. Dont create dialog as child of mainwindow or use global position like this
Code:
yourWidget
->mapToGlobal
( QPoint);
Re: Visibility of QDialog
"Because of the dialog is child of main window, it has to show within parent(mainwindow) boundary."
Yes, but I am not moving the dialog out of the parent boundary.
So it should not be a problem, right ?
Re: Visibility of QDialog
Whats the problem in storing global position before hiding and using same position after showing.
Re: Visibility of QDialog
I think that is not elegant solution
so I want to consider some other options
Re: Visibility of QDialog
dont waste your time... on other "elegant" options..
you have to save your dialog's position upon hiding. this is the only way. take a look at QSettings.
Re: Visibility of QDialog
How do you hide the dialog? Do you maybe create a new instance of the dialog everytime you show it?
Re: Visibility of QDialog
no I do not create a new instance, am using hide nad show on the same dialog instance