@Drakkhan I should mention, that this resize in ResizeEvent can easily end in an recursive loop.
This should be pretty safe, if it is a standalone window for example. But if you have to be careful, if you want to use it in QLayout. Those tend to be difficult.
I would suggest either, subclassing and making your own QLayout Flow Layout Example or nesting your custom Widget inside an other one that is effected by the Layout, and handels the positioning of your custom -square- widget.
I prefer the 2nd option myself.
@tham Yea and really someone has to be interested enough in hacking your application to do it. That is ultimately pretty rare unless it gets really popular or is a security based app.
Other than either of those scenarios I'm betting nothing will ever happen to/with your encrypted password. :)
my question is very similar to yours: https://forum.qt.io/topic/75957/three-js-in-my-qt-application/5
Unfortunately I didn't find any clear/satisfying answer..
Did you find any useful answer or resources?
Thanks for any info on this
well if iw works and target is linux, and you mostly depend on this tool to turn it on, then
it might work ok.
Other reason is:
"iw is a new nl80211 based Linux CLI configuration utility for wireless devices.
It supports all new drivers that have been added to the kernel recently. "
So it might not be easy to ask to turn it on if its via drivers.
QVariant supports any type of data. You don't need to modify the class. You just need to register your type.
In some header register the type:
and then you can use it:
long double foo = 42.0;
QVariant bar = QVariant::fromValue(foo); //put value into variant
long double bazz = bar.value<long double>(); //and get it back
If you also want to serialize/deserialize your variants you'll need to implement and register stream operators for it: qRegisterMetaTypeStreamOperators().
No, after pressing ctrl +s I worked for a little while and then power was cut. Thanks.
I also check that folder. There is My_First_Calculator with cpp extension but not any other extensions.
Maybe it's gone!
Hello, this is ProgramBase2 (I forgot my login credentials for my previous account) - sorry.
Can anyone help me out with this problem? I forgot to mention what I'm looking for.
Can anyone please direct me to a tutorial or a book that instructs how to achieve the goals I posted?
Please do not direct me to a existing code project, I am not interested in the finished product. I am interested in how the person got to the finished product.
Also, please do not direct me to a basic tutorial. I am looking for something advanced (maybe solemn done in Qt before). I've seen it work in other MDI programs, so I know it can be done.
Thanks again (I'll remember my credentials this time).
@Konstantin-Tokarev said in QPainter performance:
"1000x" thing may only be relevant for building scenes out of very many QWidgets. In this case QGraphicsView/QGraphicsScene may be orders of magnitude more efficient.
Yea I did make that assumption that he was building a complex scene since I have never had a performance issue with QPainter before, even in mildly complex scenes. Also 1000x was definitely hyperbole as it wouldn't realistically be anywhere near that. ;)
The binaries may scan fine but the behavior of the program could be the trigger. If the program does things that are suspicious it will get more attention (especially a new program).
Just to make sure I would build Qt from source or only use binaries from a trusted source with a checksum hash that you can verify.
This is a big concern I have when moving between Windows computers. I have not had problems but I always keep in the back of my mind that everything might be deleted in the blink of an eye and snowball into a bad day - bleh!
@Wieland this comes up on occasion, but it never gets to a high enough priority to be taken forward :(
inqlude is the best place, and it has most of the needed framework in place to work. Main missing part would be integration with Qt Creator.
I think you didn't check this ' QLabel *label;'
Because you fixed it limit of array upto 10 that'swhy it's obtaining only 10, so just increase its limit you will find your answer.
And if its solved your problem then make it 'solved'
@VRonin you probably need a software copyright layer to answer that :)
My totally layman understanding (and now I take my work hat off, as this is code owned by my employer) is that in Finland (and probably most of the EU) you would be safe if the code you are copying is practically the only way to do it, and it is so simple that it is the only reasonable solution to your problem, and that the part you are copying is short enough that could simply re-write it anytime, and you aren't copy pasting anything else from the same work.
The problem is that everything I'm saying above is way too hand-wavy to be of any use. It's always a case-by-case situation.
Linking has nothing to do with it. It is a question of does the copy-pasted material automatically bring it's license with it to your code.
If you wanted to be utterly safe, you would ask your friend, who has not seen the Qt code to implement a paintEvent once, and then use that. He probably would come up with about the same seven to ten lines of code. (clean room is the only way to be totally sure)
@Ahti do you have your own public server? If so, then perhaps the most easy way would be to code a simple http API that your app (with somekind of authentication obviously) can do a simple http POST to, and that thing then sends the e-mail to you.
(I'm not a web developer, but work with them, so take this as an opinion, not proper advice)
On the other hand, if you already have a web server in C++, extending that with web sockets shouldn't be too hard with a suitable library. That just leaves the browser end.
So it comes down to the usual two questions:
What language do you want to do this in (especially if it is not work, where you might have the language selected for you)
Are you happy supporting your selection for the lifetime of the project
Hi and welcome
You should look at
For starting/controlling it.
to talk to Aria2 RPC interface
Here's the solution I found myself...
When using qt5.6.0 msvc2015_64 bit. You must also install visual studio 2015 to make it work... while installing visual 2015 make sure that C++ program is included in the installation in order fpr Qt to detect the compiler.
well for the file, the qt5-sqlcipher should do.
For being hacker proof, its very important you dont store anything
clearly in the exe file.
That goes for the variables too.
When u read into memory, make sure its not easy to locate
and read. ( in mem)
so do not store passwords or user names as clean text inside program.
all must be encrypted.
That will only keep noob hackers out.
Anyone pro, will most likely be able to get access if
unlimited access to app and data.
If you are thinking of symbols in terms of binaries (dlls), the right way of tracking dependencies is analysis of binaries. You need to get lists of public symbols from all libraries linked to your application, demangle them, and then you will be able to check which of them are used in each of your source files.
If you wonder which tools to use for this task, I only know appropriate tools for ELF, not for Windows binaries