LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-14-2005, 10:38 AM   #1
elvislu
LQ Newbie
 
Registered: Feb 2005
Posts: 8

Rep: Reputation: 0
Unhappy QListView help


How to append a QListViewItem at the end of a QListView

I use the constructor QListViewItem::QListViewItem(QListView *) but the new item is inserted before the first item of the QListView. I want it to be appended after the last item of it. I've also tried the constructor QListViewItem::QListViewItem(QListView* list, QListViewItem *after) but it didn't make difference.

Is anybody here who can help me? Thanks.
 
Old 05-15-2005, 09:49 AM   #2
Vookimedlo
Member
 
Registered: Jul 2004
Location: Czech Republic - Roudnice nad Labem
Distribution: Debian
Posts: 253

Rep: Reputation: 34
try this:
Code:
QListViewItem ( lv, lv->lastItem())
where lv is pointer to ListView
 
Old 05-17-2005, 09:37 AM   #3
elvislu
LQ Newbie
 
Registered: Feb 2005
Posts: 8

Original Poster
Rep: Reputation: 0
I've tried this but it seems no effect.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
QListview in Qt shivaligupta Programming 1 01-13-2005 03:19 PM
how to connect my signal with standart (Qt(QListView)) stpg Programming 1 07-05-2004 07:22 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration