[Qt-interest] Help needed for the problem

Alexandre Beraud aberaud at infflux.com
Fri Apr 30 13:48:50 CEST 2010


You can hide the headers with tableView->horizontalHeader()->hide() 
(same for horizontal) and change the grid style with 
tableView->setGridStyle(Qt::NoPen). As far as I know, QGraphicsView lets 
you do whatever you want but you'll need to code your own kind of list 
view from scratch.

Regards,

Alex


Ramesh a écrit :
> Thanks for your valuable response..
>
> But one more thing, can we give the look and feel of Qtableview similar to
> Qlistview?
> I don’t want headers and I don’t want the separate line between two tables?
> Can we do that?
>
> Is there any thing else which I can achive by using Qgraphicsview?
>
>
> -----Original Message-----
> From: qt-interest-bounces at trolltech.com
> [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Alexandre Beraud
> Sent: Friday, April 30, 2010 4:56 PM
> To: qt-interest at trolltech.com
> Subject: Re: [Qt-interest] Help needed for the problem
>
> Hi,
>
> Why not use QTableView with two columns ?
>
> Regards,
>
> Alex
>
>
> Ramesh a écrit :
>   
>> Hi,
>>
>> I need to display a group of text and the icon in a listview, here
>> some items in listview will have icons and some will not. When the
>> user taps on the icon, I need to perform some operations. The problem
>> is how to recognize the user has taped only on icon?
>>
>> I found one solution, but its tedious.. take the position of click
>> event, then take the co-ordinates of the item –rect based on the
>> index. Then map, weather the taped point comes within the icon rect or
>> not..
>>
>> I want some alternate solutions..like using the Qgraphicsitemview or
>> some other control, despite the above solution works.. still I hope
>> some easy solution is there, can anybody knows the solution better
>> than this?.. please let me know.
>>
>>
>> -----------------------------------------------
>>
>> Robosoft Technologies - Come home to Technology
>>
>> Disclaimer: This email may contain confidential material. If you were
>> not an intended recipient, please notify the sender and delete all
>> copies. Emails to and from our network may be logged and monitored.
>> This email and its attachments are scanned for virus by our scanners
>> and are believed to be safe. However, no warranty is given that this
>> email is free of malicious content or virus.
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Qt-interest mailing list
>> Qt-interest at trolltech.com
>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>>
>>     
>
>
> --
> Alexandre BERAUD
> Ingénieur Développement
>
> Infflux - Informatique & Flux
> Tel: 01 49 57 92 00 - Fax : 01 49 57 92 01
> Mail: aberaud at infflux.com
> Visitez notre site :  www.infflux.com
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
> -----------------------------------------------
> Robosoft Technologies - Come home to Technology
>
> Disclaimer: This email may contain confidential material. If you were not an intended recipient, please notify the sender and delete all copies. Emails to and from our network may be logged and monitored. This email and its attachments are scanned for virus by our scanners and are believed to be safe. However, no warranty is given that this email is free of malicious content or virus.
>
>   


-- 
Alexandre BERAUD
Ingénieur Développement

Infflux - Informatique & Flux
Tel: 01 49 57 92 00 - Fax : 01 49 57 92 01
Mail: aberaud at infflux.com
Visitez notre site :  www.infflux.com




More information about the Qt-interest-old mailing list