SIGSEGV in fromStdString
-
@Robert-M
Using struct instead of QVector<QVariant> produced simpler and smaller code.
What is adventage of using QVector<QVariant> instead of struct?@Robert-M
Astruct
must contain a fixed number of named members with their own (quite possibly) different types.A vector/array allows a dynamic number of elements each of which must be of the same type (even if that is
QVariant
, which itself allows values with different underlying types).If your problem fits into the first case a
struct
is preferable, as seems to be the case here. -
@Robert-M said in SIGSEGV in fromStdString:
other_options
If
other_options
is yourstruct
with your data, you want to send to your dialog, it's fine. Nobody said it's not :)
TheQVector
would make it more variable