say i have a reference to an object of the appropriate class i want to insert to my QList of such QSharedPointers - can i use
Qt Code:
  1. the_list << the_ref
To copy to clipboard, switch view to plain text mode 
or should it be
Qt Code:
  1. the_list << QSharedPointer<TheClass>(the_ref)
To copy to clipboard, switch view to plain text mode 

?