[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] Menu Item Opening Web Page?
From: Brent Villalobos <Brent.Villalobos () pdi ! dreamworks ! com>
Date: 2009-07-29 18:00:55
Message-ID: 4A708E57.5000309 () pdi ! dreamworks ! com
[Download RAW message or body]
I found a non-Qt way of doing this in python. It is simple enough to
connect the action to a function that calls webbrowser.open(). Python
rules!
-Brent
Jason H wrote:
> I think this is a general Qt question... So maybe try the regular Qt channel/list
>
> But I believe the class you want is QDesktopServices
>
>
>
>
> ----- Original Message ----
> From: Brent Villalobos <Brent.Villalobos@pdi.dreamworks.com>
> To: "pyqt@riverbankcomputing.com" <pyqt@riverbankcomputing.com>
> Sent: Wednesday, July 29, 2009 1:26:28 PM
> Subject: [PyQt] Menu Item Opening Web Page?
>
> Is there a way to create a QAction object (aka, what is created when you add an \
> item to a menu bar in Designer) that links to a web page? For example, I want to \
> create a "User Documentation" menu option that will just open up a specific web \
> page using the default browser. Qt must have some sort of smarts for this because \
> if I create a hyperlink in a text field it will do just that. I'm just trying to \
> figure out how to do that with menu options. Any thoughts?
> -Brent
> _______________________________________________
> PyQt mailing list PyQt@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
>
>
>
>
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic