Hi all,
I have the following problem:
I have a widget and user could go to menu em choose "Split horizontal" or "Split vertical";
as he do that each splitted widget could be splitted another time and thats all.
So I have this:
+-----------+
| |
| |
| |
+-----------+
+-----------+
| |
| |
| |
+-----------+
To copy to clipboard, switch view to plain text mode
than if user split horizontaly he should have this:
+-----+-----+
| | |
| | |
| | |
+-----+-----+
+-----+-----+
| | |
| | |
| | |
+-----+-----+
To copy to clipboard, switch view to plain text mode
At this point each splitted widget could be splitted one more time but only on vertical. Lets split left widget:
+-----+-----+
| | |
+-----+ |
| | |
+-----+-----+
+-----+-----+
| | |
+-----+ |
| | |
+-----+-----+
To copy to clipboard, switch view to plain text mode
Ok now that I explain myself, lets to the real problem:
I have a widget that extens QSplitter and on its constructor I add one widget. So far so good...
But when I try to add another widget outside constructor, it not show the new widget and worst, if I try to delete an existen one, the program crashes.
The question is:
How do I add widgets on demand on a QSplitter and how do I delete the existen ones?
Bookmarks