Considering a class of quasiperiodically forced piecewise smooth systems, we uncover a dynamic phenomenon in which strange nonchaotic attractors (SNAs) and quasiperiodic attractors coexist in nonsmooth dynamical system, obtaining the domains of attraction of these coexisting attractors in parameter space in order to analyze the global dynamics. The global dynamics analysis demonstrates that SNAs are the transition from quasiperiodic attractors to chaotic attractors. The routes to SNAs, including torus-doubling route, torus fractalization route or, simply, fractal route, and intermittency route, are also investigated. The characteristics of SNAs are described by dynamical invariants such as the Lyapunov exponent, power spectrum, phase sensitivity and rational approximations.