基于QT的仓库礼品出入库管理(第一个给别人使用的软件)_qt做库房调度界面

img
img

网上学习资料一大堆,但如果学到的知识不成体系,遇到问题时只是浅尝辄止,不再深入研究,那么很难做到真正的技术提升。

需要这份系统化的资料的朋友,可以添加戳这里获取

一个人可以走的很快,但一群人才能走的更远!不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人,都欢迎加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!

1、UI控件 布局,点击事件,表格的使用及点击表头的来进行筛选。
2、整个文件、文件夹的处理。整个过程都是新建文件,读写文件,解析数值,计算库存,导出表格
3、软件图像的替换,还需要利用格式化工厂将图片格式转换为icn的
链接:https://jingyan.baidu.com/article/8cdccae9577d0e315413cd88.html;
4、QT中realse执行完的程序打包生成独立的.exe文件

注意:软件打包时查询的链接,我这直接使用命令行处理的时候少了一些库,参考第二个链接使用everything将库找到放进来即可使用;
https://www.sindsun.com/article-details-67.html;使用命令处理在打包
https://blog.csdn.net/qq_38880380/article/details/79104563;打包使用软件时注意不能拖整个文件夹,缺少的库可以根据图片加入进来

后期解决的bug问题点,
1、最后都没有使用Text Edit和plain Text Edit,而是使用Line Edit,因为发现使用的时候输入换行会导致txt文件错乱,解析乱七八糟。并且后面需要按下enter键跳转下一个输入框的功能。并且当前软件输入也只有可能是一行,
2、lineEdit发送的returnPressed信号链接按钮的点击事件没有效果,是因为接收信号的对象应该是this,而不是按钮对象。

connect(ui->et_addClassKuyan, SIGNAL(returnPressed()), this, SLOT(on\_bt\_add\_2\_clicked()),Qt::UniqueConnection);

3、处理这样的文本库,涉及读取,写入并在在程序中修改比较的这些,其实可以读取,处理的时候都把换行去除掉, 用纯文本去比较,当写入的时候在加入换行符即可。从而不会导致换行错乱的问题。

整个软件不难,感觉还是花费了挺长时间的
1、功能需求和界面问题;应该最先确定寻求好,这个花费很多时间
2、整个功能没有太去优化都是直接去读取文件显示,按钮的点击事件处理的,
3;整个过程对UI布局控件这边花费了很长时间并且现在最后那个布局问题还是没有解决,等下贴到最后面。
4、因为对QT的API不熟悉都是一边百度一边写的,通过这个过程对QT的一些API有了一些了解
5;整个过程最重要的是体验了开发后应用程序的打包到库的缺失,去找库这个问题的解决。

工程和对应的工具的链接

img
img

既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,涵盖了95%以上C C++开发知识点,真正体系化!

由于文件比较多,这里只是将部分目录截图出来,全套包含大厂面经、学习笔记、源码讲义、实战项目、大纲路线、讲解视频,并且后续会持续更新

如果你需要这些资料,可以戳这里获取

果你需要这些资料,可以戳这里获取](https://bbs.csdn.net/topics/618668825)**

  • 24
    点赞
  • 16
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
以下是基于QT和VS的注册界面C++代码示例: ```c++ #include <QtWidgets/QApplication> #include <QtWidgets/QMainWindow> #include <QtWidgets/QLabel> #include <QtWidgets/QLineEdit> #include <QtWidgets/QPushButton> #include <QtWidgets/QCheckBox> #include <QtWidgets/QHBoxLayout> #include <QtWidgets/QVBoxLayout> int main(int argc, char *argv[]) { QApplication a(argc, argv); QMainWindow window; QLabel *label_username = new QLabel("Username:"); QLabel *label_password = new QLabel("Password:"); QLabel *label_confirm_password = new QLabel("Confirm Password:"); QLabel *label_email = new QLabel("Email:"); QLabel *label_agree = new QLabel("I agree to the terms of service:"); QLineEdit *edit_username = new QLineEdit; QLineEdit *edit_password = new QLineEdit; QLineEdit *edit_confirm_password = new QLineEdit; QLineEdit *edit_email = new QLineEdit; QPushButton *button_register = new QPushButton("Register"); QCheckBox *checkbox_agree = new QCheckBox; QHBoxLayout *layout_username = new QHBoxLayout; QHBoxLayout *layout_password = new QHBoxLayout; QHBoxLayout *layout_confirm_password = new QHBoxLayout; QHBoxLayout *layout_email = new QHBoxLayout; QHBoxLayout *layout_agree = new QHBoxLayout; QHBoxLayout *layout_button = new QHBoxLayout; QVBoxLayout *layout_main = new QVBoxLayout; layout_username->addWidget(label_username); layout_username->addWidget(edit_username); layout_password->addWidget(label_password); layout_password->addWidget(edit_password); layout_confirm_password->addWidget(label_confirm_password); layout_confirm_password->addWidget(edit_confirm_password); layout_email->addWidget(label_email); layout_email->addWidget(edit_email); layout_agree->addWidget(label_agree); layout_agree->addWidget(checkbox_agree); layout_button->addWidget(button_register); layout_main->addLayout(layout_username); layout_main->addLayout(layout_password); layout_main->addLayout(layout_confirm_password); layout_main->addLayout(layout_email); layout_main->addLayout(layout_agree); layout_main->addLayout(layout_button); window.setLayout(layout_main); window.setWindowTitle("Registration Form"); window.show(); return a.exec(); } ``` 这个示例代码创建了一个带有用户名、密码、确认密码、电子邮件和同意条款的注册界面,并包含一个注册按钮。您可以根据需要添加更多的元素和布局。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值