[PyQt] qdialog and QLinearGradient shows dark gray
I'm having a QLinearGradient that doesn't work correctly on ubuntu with Qt 4.6.2 and PyQt 4.7.2. I believe these are the standard ubuntu 10.04 versions. I'm new to Qt css, but this is working on windows so I believe my css is valid. If I add this line, I get nothing but a dark background which is not quite black. self.setStyleSheet( "QDialog {background-color: QLinearGradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #f6f7fa, stop: 1 #dadbde);}") If I replace the above line with self.setStyleSheet( "QDialog {background-color: GREEN}") I get a charming (??!! not) bright green background as I'd expect. The same applies to message boxes with this dialog as parent due to the inheritance of style sheets (which is correct). Is this a bug in my specific versions? What else can I try to figure out how to fix the problem? Joel ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Links in QMessageBox.about() not working
On Tuesday, May 17, 2011 08:46:57 am David Boddie wrote: > On Tue May 17 10:21:04 BST 2011, Hans-Peter Jansen wrote: > > On Monday 16 May 2011, 14:28:00 Anoop Panavalappil wrote: > > > I am developing a simple cross platform GUI using PyQt. I have tried > > > to show the about dialog using QMessageBox.about() with richtext > > > formatting with html tags (, , and ). The dialog correctly > > > renders the HTML but the links are not working. > > > > > > Interestingly, when I tried the QMessageBox.aboutQt() to show the > > > "About Qt" dialog, the links in that dialog doesn't work either. Same > > > with the "About Qt" dialog form the help menu of Qt Designer also. > > > > > > Is there any workaround for the issue? Or is it a reported bug? > > > > Works for me. Since you didn't told us your OS/versions, I will leave it > > up to you to find out mine. Hehe. > > Anoop and I discussed the problem on IRC. We're both using Qt 4.7.2. The > problem occurs with KDE 4 on Kubuntu (10.10, if I remember correctly). > On the other hand, on KDE 3 and Windows, it apparently works fine. I concur that the links don't work on ubuntu 10.04 with qt 4.6.2 in a PyQt application. They do work in the kmail kde about box. It is also working on my windows install, but I forget the exact versions and am in linux at the moment. -- Joel ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Links in QMessageBox.about() not working
On Tue May 17 10:21:04 BST 2011, Hans-Peter Jansen wrote: > On Monday 16 May 2011, 14:28:00 Anoop Panavalappil wrote: > > > I am developing a simple cross platform GUI using PyQt. I have tried > > to show the about dialog using QMessageBox.about() with richtext > > formatting with html tags (, , and ). The dialog correctly > > renders the HTML but the links are not working. > > > > Interestingly, when I tried the QMessageBox.aboutQt() to show the > > "About Qt" dialog, the links in that dialog doesn't work either. Same > > with the "About Qt" dialog form the help menu of Qt Designer also. > > > > Is there any workaround for the issue? Or is it a reported bug? > > Works for me. Since you didn't told us your OS/versions, I will leave it > up to you to find out mine. Hehe. Anoop and I discussed the problem on IRC. We're both using Qt 4.7.2. The problem occurs with KDE 4 on Kubuntu (10.10, if I remember correctly). On the other hand, on KDE 3 and Windows, it apparently works fine. It might be worth asking about the issue on a KDE or Kubuntu mailing list. David ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Links in QMessageBox.about() not working
On Monday 16 May 2011, 14:28:00 Anoop Panavalappil wrote: > Hi There, > > I am developing a simple cross platform GUI using PyQt. I have tried > to show the about dialog using QMessageBox.about() with richtext > formatting with html tags (, , and ). The dialog correctly > renders the HTML but the links are not working. > > Interestingly, when I tried the QMessageBox.aboutQt() to show the > "About Qt" dialog, the links in that dialog doesn't work either. Same > with the "About Qt" dialog form the help menu of Qt Designer also. > > Is there any workaround for the issue? Or is it a reported bug? Works for me. Since you didn't told us your OS/versions, I will leave it up to you to find out mine. Hehe. Pete ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] App Color/Style Themes
On Monday 16 May 2011, 18:44:59 James Polk wrote: > Anyone have any experience working with,tweeking, and/or creating new > app color schemes? You can change your applications color scheme by tweaking QPalette and calling QApplication.setPalette(). > ...the one's specificed with "app.setStyle()"... > Of the released ones: > > "Plastique", > "CDE", > "motif", > "SGI", > "Windows", > "CleanLooks", > "Mac" > > is there a way to tweek the colors in these? Where are they found? > Can one create a new one from scratch? or a derivative of the above? You're mixing color schemes and styles here. Since some QStyles are loaded as a plugin, Phil doesn't support QStyle subclassing at all. To support this, an auxilliary sip module needs to be created, that copes with the nature of plugins. Please refer to a discussion of mine with Phil half a year ago on this list. > Are these "themes" related to or the same as "styleSheets" ? Well, themes derive from QStyle and stylesheets manipulate QStyle attributes. Hth, Pete ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt