View Single Post
Old 01-08-2021, 04:38 AM   #55
wrCisco
Connoisseur
wrCisco ought to be getting tired of karma fortunes by now.wrCisco ought to be getting tired of karma fortunes by now.wrCisco ought to be getting tired of karma fortunes by now.wrCisco ought to be getting tired of karma fortunes by now.wrCisco ought to be getting tired of karma fortunes by now.wrCisco ought to be getting tired of karma fortunes by now.wrCisco ought to be getting tired of karma fortunes by now.wrCisco ought to be getting tired of karma fortunes by now.wrCisco ought to be getting tired of karma fortunes by now.wrCisco ought to be getting tired of karma fortunes by now.wrCisco ought to be getting tired of karma fortunes by now.
 
Posts: 50
Karma: 605108
Join Date: Apr 2016
Device: none
For the @import issue, I just saw two anomalies in the program output: the absence of TYPE and Data, as in
Code:
Information: 0
import: url(a_css.css)
Type: SEL_START  Data: @font-face
Type: PROPERTY  Data: font-family
and the missing space. I thought that it was not parsed properly, but I did not dig deeper than that, sorry if it wasn't clear.

As for the QList<int> to QVariant, what I tried was to convert directly the QList<int> to a QVariant with QVariant::fromValue and that led me to a segfault during the execution of runInPython. I can confirm that with your code it all works smoothly, thanks!
I don't have the old code I wrote anymore, but if you replace the lines regarding the QVariantList in your snippet with
Code:
args.append(QVariant::fromValue(ilist));
it should be close enough to what I did.
wrCisco is offline   Reply With Quote