How can I simulate a double-click on an element in a QListWidget without a subclass? I would like the item to immediately go into edit mode when I add a new item to the list.
QListWidget
Is void QListWidget::editItem ( QListWidgetItem * item ) suitable for this method?
void QListWidget::editItem ( QListWidgetItem * item )
This is how you add a double click function
connect(ui->listWidget,SIGNAL(itemDoubleClicked(QListWidgetItem*)),this,SLOT(on_dbclick_play()));
where on_dbclick_play() is the function you want to call when double-clicking.
on_dbclick_play()
Source: https://habr.com/ru/post/1437951/More articles:Maven with OSGI and non OSGI projects - eclipseIncrease the width of td so that the content is on the same line - javascriptSqueeze the table column with the smallest possible width - cssDownload Google Chart Api using Ajax in an html page - htmlGeneral transformation of an array of records in a DataTable and vice versa in F # - f #prevent template creation with template argument 0 - c ++Gitlab Workflow and Customization for Users - gitCount the number of comparisons made for BinarySearch - c #Introduce 99999999999999999 in ActionScript 3 - numbersUnpublish MVC 4 project from Azure website - asp.net-mvcAll Articles