Hi,
it doesn't help. Any other advices ? Thanks
Hi,
it doesn't help. Any other advices ? Thanks
If you can't post your code, please make a small project that has that behavior and post it.
No problem. See attachment.
Your form should inherit from QDialog, so it can be a top-level window, have a parent and be centered on top of that parent.
And as Zlatomir said, you should pass this to its constructor:
Qt Code:
this->form = new Form(this);To copy to clipboard, switch view to plain text mode
Zlatomir (29th May 2010)
Hi,
I think (parent) is OK. If I use your proposals then my mainwindow is mixed with form widget. Did you try it you just assume it should be in that way? Thanks
If you make it a dialog it works like you want (or at least like i think you want)
And i don't recommend to make the Form member in MainWindow (check the code)
You can emit a signal (a MainWindow signal) when member button is clicked, and connect that with the show() slot of your Form (that's what on_bla_bla slots do with auto-connect, or you can manualy connect them)
Last edited by Zlatomir; 29th May 2010 at 18:41.
Hmm, I think this doesn't solve my situation. I need to mention I use 5 same widgets which I show with show() method and only 1 of them make a problem (is displayed at the top left corner). With my attachment I would like to show you whats the problem. It's rather strange for me why this happens because I use it is same way.
Bookmarks