问题描述
我正在为kde linux环境制作文件哈希计算器应用程序
但是我遇到了一些问题:
在此代码中计算文件的哈希值
hashwrapper * sha512 = new sha512wrapper();
std :: string sha512Hashing = sha512-> getHashFromFile(file01.iso);
你注意到 file01.iso
这里
我的问题是:
1.如何在此处放置插值文件而不是预定义的文件?
i意味着我不知道用户将在高级中选择的文件的名称
所以我如何在Ruby中进行插值移动我们这样做
userInput =获取
#{userInput}
我如何在Qt Creator中这样做
2.我有一个lineEdit框,我只用来显示文件的名称
,用户将在关闭QFileDialog后选择
如何显示lineEdit框中的文件名?
我很感谢谁回答我的问题
我的尝试:
QFile filename01;
hashwrapper * sha512 = new sha512wrapper();
std :: string sha512Hashing = sha512-> getHashFromFile(filename01);
和很多类似的动作但没有运气
i'm making a files hash calculator app for a kde linux enviroment
but i'm facing a few problems:
in this code that calculate the file's hash
hashwrapper *sha512 = new sha512wrapper(); std::string sha512Hashing = sha512->getHashFromFile("file01.iso");
you notice the file01.iso
here
my question is:
1. how to place an interpolation file here instead of a predefined file?
i mean i don't know the name of the file that the user will choose in advanced
so how i do an interpolating move like in Ruby we do
userInput=gets #{userInput}
how do i do so in Qt Creator
2. i have a lineEdit box that i made only to display the name of the file
that the user will choose after closing QFileDialog
how display the file name in the lineEdit box ?
i'm so grateful to whoever whom will answer my questions
What I have tried:
QFile filename01; hashwrapper *sha512 = new sha512wrapper(); std::string sha512Hashing = sha512->getHashFromFile(filename01);
and a lot of similar moves but no luck
这篇关于Qt创建者生成问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!