Hi,
my main window (qdialog) has a tab-widget. Each Tab has its own dialog.
Each dialog in my tab-widget represents an individual Object in nature.
When the object in nature makes problems, my program gets this information and forwards this information to its dialog in the tab-widget.
I want to be able to show a MessageBox or a Dialog in the "natural-objects dialog".
When the user goes through the tabs he will see on TAB X that "natural object X" had a problem. But he should not see this information somewhere else...just in "TAB X".
I tried it with QMessageBox but I failed..
I made it non-modal but it was always outside the "tab-dialog". I want to lock it to that window, so the user can visit the other dialogs in the tab without beeing disturbed.
What can I do?


Reply With Quote


The fact that you are using QDialog there only means you shouldn't be doing that. And I would advise against using QMessageBox or similar in the same fashion. Do it properly and create a plain QWidget (like QLabel or sth) just don't put it in the layout with other widgets of the tab. Instead use setGeometry to set its geometry to the centre of the tab's widget.

Bookmarks