I have two custom widgets: Graph and Paint, I want to overlay the Paint widget on the Graph widget.
I've made Paint a child of Graph and I have a layout assigned to the MainWindow; This works like I want it to until I change the size of the main window, the Graph adjusts, but Paint does not (see Figure 1). If I add a layout to the parent Graph as well then Paint ends up in the corner and still doesn't stretch appropriately (see Figure 2).
I've been looking around, but haven't been able to find out how to adjust this, I would prefer a method of fixing it in the designer if possible. Thank you!
Figure 1:
ss4.jpg
Figure 2:
ss5.jpg


 
					
					 
							
						 
    
    
       
    
    
    
       
    
    
    
    
   How do you get a child widget to resize with its parent?
 How do you get a child widget to resize with its parent?
		 
				
				
				
					 Reply With Quote
  Reply With Quote 
							
								
 
    
    
       
    
    
       Re: How do you get a child widget to resize with its parent?
 Re: How do you get a child widget to resize with its parent?
		 
			
Bookmarks