Could not parse stylesheet of object QLabel(0x1abb30d3130, name = "label_6")

Luca Bertolotti luca72.bertolotti at gmail.com
Wed Oct 23 17:21:36 BST 2024


Sorry I make a mistake when i copy the line
In pyqt I never get any error with this line
self.label_6.setStyleSheet(".QLabel#label_6 {background-color: rgb(0, 0,
0)};")
but with pyinstaller yes
but I solve it in this way
self.label_6.setStyleSheet(".QLabel#label_6 {background-color: rgb(0, 0,
0);}")
Regards

Il giorno mer 23 ott 2024 alle ore 13:43 Florian Bruhin <me at the-compiler.org>
ha scritto:

> On 2024-10-23T13:08:19 , Luca Bertolotti wrote:
> > self.label_6.setStyleSheet(".QLabel#label_6 {background-color: rgb(0, 0,
> 0};")
>
> You are missing a closing ) for rgb(...).
>
> None of this is related to PyInstaller (or PyQt for that matter),
> it should fail jn the exact same way if you just run your code.
>
> Florian
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20241023/85256019/attachment.htm>


More information about the PyQt mailing list