Hello! You need CSS for this. Wt already provides such a class "unselectable", but it is not a part of public API, so it can be removed. Here it is: https://github.com/kdeforche/wt/blob/master/src/Wt/WApplication.C#L237
You can create this class by yourself in pure CSS http://coderevision.com/how-to-make-text-unselectable/ Consider class "unselectable" is responsible for this. Then you can make whole WTableView selectable by setSelectable(true) and then add class "unselectable" to needed columns by specifying method WAbstractItemModel::data and returning "unselectable" for role=StyleClassRole (and base class's data() otherwise). On Thu, Oct 18, 2012 at 1:56 PM, Stefan Ruppert <s...@myarm.com> wrote: > Hi Boris, > > thanks for the hint! It works fine. > > Would it also be possible to restrict this to a specific column? For > example only the value column of the key/value columns. I assume the > underlying model have to support this? > > Stefan > > On 18.10.2012 11:41, Nagaev Boris wrote: >> Hello! >> >> There is a method of WWidget for this: setSelectable(true); >> >> http://www.webtoolkit.eu/wt/doc/reference/html/classWt_1_1WWidget.html#a3ccd308793bbf124aa2aeebfb1b4f42e >> >> On Thu, Oct 18, 2012 at 1:25 PM, Stefan Ruppert<s...@myarm.com> wrote: >>> Hi, >>> >>> I have a WTableView which displays some key value pairs in a two column >>> WTableView. Items in the table view can not be selected. However I want >>> to mark some text from the view to copy the text into the clipboard so >>> that I can paste it anywhere else. How can I achieve this? >>> >>> Regards, >>> Stefan >>> >>> ------------------------------------------------------------------------------ >>> Everyone hates slow websites. So do we. >>> Make your web apps faster with AppDynamics >>> Download AppDynamics Lite for free today: >>> http://p.sf.net/sfu/appdyn_sfd2d_oct >>> _______________________________________________ >>> witty-interest mailing list >>> witty-interest@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/witty-interest >> >> ------------------------------------------------------------------------------ >> Everyone hates slow websites. So do we. >> Make your web apps faster with AppDynamics >> Download AppDynamics Lite for free today: >> http://p.sf.net/sfu/appdyn_sfd2d_oct >> _______________________________________________ >> witty-interest mailing list >> witty-interest@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/witty-interest >> >> > > > -- > Stefan Ruppert <stefan.rupp...@myarm.com> > MyARM GmbH, Altkönigstr. 7, 65830 Kriftel, Germany > Phone: +49 6192/9772818 > Web: http://www.myarm.com > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_sfd2d_oct > _______________________________________________ > witty-interest mailing list > witty-interest@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/witty-interest ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_sfd2d_oct _______________________________________________ witty-interest mailing list witty-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/witty-interest