A Widget derived from QListView and set to ListMode should behave like you expected it.
			
		
 
	 
 Thanks for the input.
But I don't understand how deriving and not changing the way the widget draws will help.
Ok, here is my code, and the screen shot:
	
	- uiLarge. listPort-- >setViewMode (QListView::ListMode)- ; 
-   temp -- >setSizeHint (QSize(- uiLarge. listPort-- >width ()- , 40))- ;  //just experimenting, this works as you can see in the image
-   uiLarge.listPort->addItem(temp); 
        uiLarge.listPort->setViewMode(QListView::ListMode);
  QListWidgetItem *temp = new QListWidgetItem("ttyS0");
  temp->setSizeHint(QSize(uiLarge.listPort->width(),40)); //just experimenting, this works as you can see in the image
  uiLarge.listPort->addItem(temp);
  new QListWidgetItem("ttyS1",uiLarge.listPort);
  new QListWidgetItem("ttyS2",uiLarge.listPort);
  new QListWidgetItem("ttyS3",uiLarge.listPort);
  new QListWidgetItem("ttyS4",uiLarge.listPort);
To copy to clipboard, switch view to plain text mode 
  
				
			
Bookmarks