Re: Subclassing QDateEdit
	
	
		Did you try looking in src/corelib/tools/qdatetime.cpp?
	 
	
	
	
		Re: Subclassing QDateEdit
	
	
		Cool. src/gui/widgets/qdatetimeedit.h calls include/QtCore/qdatetime.h which calls src/corelib/tools/qdatetime.h. Now I see all I need to modify is at src/corelib/tools/qdatetime.cpp, but can I accomplish my goal by just subclassing mycalendardate under qdate and reimplementing the functions from qdatetime.cpp which I have to change?
	 
	
	
	
		Re: Subclassing QDateEdit
	
	
		IMO subclassing won't help you much as you won't have access to a lot of methods that implement the functionality you want to change. Maybe you should consider creating a separate widget based upon modified QDateTimeEdit code?
	 
	
	
	
		Re: Subclassing QDateEdit
	
	
		
	Quote:
	
		
		
			
				Originally Posted by jacek
				
			
			IMO subclassing won't help you much as you won't have access to a lot of methods that implement the functionality you want to change. Maybe you should consider creating a separate widget based upon modified QDateTimeEdit code?
			
		
	 
 Pardon, but which methods do you refer to? I thought subclassing will allow me to access all the functions defined for a particular class, replacing those that I redefine with my own.
	 
	
	
	
		Re: Subclassing QDateEdit
	
	
		
	Quote:
	
		
		
			
				Originally Posted by jamadagni
				
			
			Pardon, but which methods do you refer to? I thought subclassing will allow me to access all the functions defined for a particular class, replacing those that I redefine with my own.
			
		
	 
 Not all just the virtual ones
	 
	
	
	
		Re: Subclassing QDateEdit
	
	
		
	Quote:
	
		
		
			
				Originally Posted by yop
				
			
			Not all just the virtual ones
			
		
	 
 ... that are public or protected. All private methods and member variables won't be accessible.