My pleasure. :)

On Thu, 18 Mar 2021 at 15:47, Jakob Kousholt <[email protected]> wrote:

> Aaaayyeee!! Thank you, Marcus!
>
> On Thu, 18 Mar 2021 at 11:24, Marcus Ottosson <[email protected]>
> wrote:
>
>> Just one piece of the puzzle missing.
>>
>> - https://doc.qt.io/qt-5/qlabel.html#openExternalLinks-prop
>>
>> On Thu, 18 Mar 2021 at 14:34, Jakob Kousholt <[email protected]> wrote:
>>
>>> Hey Everyone,
>>>
>>> I am trying to link to an external website from my PyQt UI. Here's a
>>> simple example of what I have written:
>>>
>>> link = QtWidgets.QLabel()
>>> link.setTextFormat(QtCore.Qt.RichText)
>>> link.setText("<a style='color:white;' href='https://www.google.com/'
>>> target='_blank'>Google Example</a>")
>>>
>>> The link shows up just fine - including the styling. When I right click
>>> on the label, Qt offers me to copy the link location, so the link works,
>>> except when I click the link nothing happens. I would have loved to see
>>> chrome or firefox open up. Any ideas what I am missing? Thanks
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Python Programming for Autodesk Maya" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/python_inside_maya/32a16d4c-476f-4868-b04a-7b4cf4445d98n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/python_inside_maya/32a16d4c-476f-4868-b04a-7b4cf4445d98n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Python Programming for Autodesk Maya" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOC8c0mfqKtUF7E%3D-aHXn35nXuff0Fw-sc-9eP57dP8Pkw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOC8c0mfqKtUF7E%3D-aHXn35nXuff0Fw-sc-9eP57dP8Pkw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Python Programming for Autodesk Maya" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/CAEKd6bYvvs1%2BLAbFYsj_bnz%3DG52wCNhVkHhxJaQtLugjYVs6mA%40mail.gmail.com
> <https://groups.google.com/d/msgid/python_inside_maya/CAEKd6bYvvs1%2BLAbFYsj_bnz%3DG52wCNhVkHhxJaQtLugjYVs6mA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAFRtmODY1sA6fEO1Q4%2BciREFsSFEjsxOuSoLnG8jm_f6XcxSWw%40mail.gmail.com.

Reply via email to