October 9, 2011

mahesh438 mahesh438
Lab Rat
45 posts

adding actions to qlistwidget

 

hi… how to add actions to in qlistwidget like menu when i clicked on the reference child actions should roledown…

2 replies

October 9, 2011

irfan.omair irfan.omair
Lab Rat
16 posts

Use context menu thing something like below

  1. void ListWidget::customContentsMenu( const QPoint &pos )
  2. {
  3.     QPoint globalPos = this->mapToGlobal(pos);
  4.     menu->exec( globalPos );
  5. }

Regards
Irfan omair

[edit : @tags added , please do so for readability, Eddy]

October 9, 2011

mahesh438 mahesh438
Lab Rat
45 posts

how to add the same thing to dockwidget

 
  ‹‹ Connect to QTabWidget’s tabBar()      deploying on windows XP ››

You must log in to post a reply. Not a member yet? Register here!