you can compile qt with unwanted features turned off.