add: sel->setFocusPolicy(QWidget::NoFocus);
context: static QLineEdit* createLabeledEntry(QWidget* parent, QGridLayout* grid,				     const char* aLabel,				     const char* aText, 				     int gridy, int gridx,				     QPushButton** detail_return=NULL){  QLabel* label = new QLabel(parent);  QLineEdit* edit = new QLineEdit(parent);  QPushButton* sel;  label->setText(aLabel);  label->adjustSize();  label->resize((int)label->sizeHint().width(),label->sizeHint().height() + 6);  label->setMinimumSize(label->size());  grid->addWidget(label, gridy, gridx++);  if (aText) edit->setText(aText);  edit->setMinimumSize(100, label->height()+2);  edit->setMaximumSize(1000, label->height()+2);  grid->addWidget(edit, gridy, gridx++);  if (detail_return)  {    sel = new QPushButton("...", parent);    sel->setFixedSize(sel->sizeHint().width(), label->height());    grid->addWidget(sel, gridy, gridx++);    *detail_return = sel;  }  return edit;}