в общем есть такая вот программулька - при запуске фокус почеу то постоянно устанавливается на верхнюю кнопку, хоть я и делал ее setDefaul(false)
а мне хотелось бы чтоб при запуске фокус был сразу на LineEdit и чтобы там сразу курсор воода был установлен, без клика мышки
    settingsButton = new QPushButton(tr("Port settings"));
    settingsButton->setDefault(false);
    settingsLayout = new QHBoxLayout;
    settingsLayout->addWidget(settingsButton);
	
    sendLabel = new QLabel(tr("Send text:"));
    sendLineEdit = new QLineEdit;
    sendLabel->setBuddy(sendLineEdit);
    lineEditLayout = new QHBoxLayout;
    lineEditLayout->addWidget(sendLabel);
    lineEditLayout->addWidget(sendLineEdit);
   sendButton = new QPushButton(tr("Send"));
   sendButton->setEnabled(false);
   sendButton->setDefault(true);
   sendButtonLayout = new QHBoxLayout;
   sendButtonLayout->addStretch();
   sendButtonLayout->addWidget(sendButton);
   ..../Много кода/....
   mainLayout =  new QVBoxLayout;
   mainLayout->addLayout(settingsLayout);
   mainLayout->addSpacing(5);
   mainLayout->addLayout(lineEditLayout);
   mainLayout->addLayout(sendButtonLayout);
  ..../Много кода/....
   setLayout(mainLayout);