增加新建方案提示窗口

This commit is contained in:
work-zym\zhangyiming 2024-12-03 16:48:24 +08:00
parent 5122686119
commit b37d200823
3 changed files with 11 additions and 1 deletions

Binary file not shown.

View File

@ -425,12 +425,20 @@ void LeadScheme::initLay()
#endif #endif
QWidget * wClickedPints = new QWidget; QWidget * wClickedPints = new QWidget;
wClickedPints->setStyleSheet("border-image:url(:/image/img_lead.png);}"); wClickedPints->setStyleSheet("border-image:url(:/image/img_lead.png);}");
QVBoxLayout * vlaypointsTemp = new QVBoxLayout;
m_editShecName.setFixedWidth(180);
m_editShecName.setPlaceholderText("输入方案名称");
vlaypointsTemp->addWidget(&m_editShecName);
vlaypointsTemp->addWidget(wClickedPints);
QWidget * ww =new QWidget;
ww->setLayout(vlaypointsTemp);
// wClickedPints->setFixedWidth(500); // wClickedPints->setFixedWidth(500);
//wClickedPints->show(); //wClickedPints->show();
QHBoxLayout * hlayAll = new QHBoxLayout; QHBoxLayout * hlayAll = new QHBoxLayout;
// hlayAll->addLayout(vlayScheme,1); // hlayAll->addLayout(vlayScheme,1);
hlayAll->addWidget(wPoints,3); hlayAll->addWidget(wPoints,3);
hlayAll->addWidget(wClickedPints,3); hlayAll->addWidget(ww,3);
QList<QColor> colors; QList<QColor> colors;

View File

@ -8,6 +8,7 @@
#include "navlistwidget.h" #include "navlistwidget.h"
#include "MoveButton.h" #include "MoveButton.h"
#include <QList> #include <QList>
#include <QLineEdit>
class LeadScheme:public QWidget class LeadScheme:public QWidget
{ {
Q_OBJECT Q_OBJECT
@ -33,5 +34,6 @@ private:
QPushButton m_btnOK; QPushButton m_btnOK;
QList<MoveButton*> m_listMoveBtns; QList<MoveButton*> m_listMoveBtns;
QLineEdit m_editShecName;
}; };
#endif // LEADSCHEME_H #endif // LEADSCHEME_H