From shoulderhigher at gmail.com Mon Apr 2 10:55:08 2012 From: shoulderhigher at gmail.com (higery) Date: Mon, 2 Apr 2012 16:55:08 +0800 Subject: [PySide] Proposal for "Visual tool to fast edit type system files" -- a Pyside idea In-Reply-To: <4F77258C.2050003@skynet.be> References: <4F77258C.2050003@skynet.be> Message-ID: 2012/3/31 Stefan Champailler > This in an interesting proposal. > > But, for having had to have a look inside Shiboken and all that stuff, > I'd say what's missing most is documentation. There's a lot of it, but a > walkthrough, from beginning to end would be very nice. For example, the > ownership stuff is not crystal clear, there are a lot of corner cases > which, I felt, are not documented enough for people like me who : > - are pretty fluent in programming Python and C++ > - but are not familiar with the way the bindings work between Python and > C++ > > I know documentation is not the funniest part but that would really help > people like me, outside the PySide core team, to be able to be > autonomous without having to work/read for days before understanding a > bit of what is happening... > > I hope I don't sound too harsh, that's not my point, I use PySide a lot > now and as a product it is really good and reliable. It's just that when > I meet a bug it's very hard to dive into the Shiboken code and get a > grasp of what's happening. Especially when one knows that it is not that > complicated... > > So the tool would be nice, but it has to make the inner workings of the > binding tools very clear. So I see that tool has something to help me to > more easily understand and fix PySide. > > (and again I love PySide :) I'm very grateful of having such a tool for > free) > > Stefan > Thank you for your attention, I will try my best to implement such a tool. -------------- next part -------------- An HTML attachment was scrubbed... URL: From frank at ohufx.com Wed Apr 4 06:46:50 2012 From: frank at ohufx.com (Frank Rueter | OHUfx) Date: Wed, 04 Apr 2012 16:46:50 +1200 Subject: [PySide] animate QStackedLayout? Message-ID: <4F7BD23A.2010208@ohufx.com> Hi everyone, I'm very new to Qt/PySide and am wondering if it's possible to add an animation effect to, let's say, QStackedLayout, for when the page changes. I guess it'd something similar to the way the AppStore works. In this example I'd like to see the new button "push" the old button out of view when the combobox changes: http://pastebin.com/i5sFgQzE I'm happy to take a good ol' fashioned RTFM, I'm just having a hard time finding the right bit of information out there. Any help would be greatly appreciated. Cheers, frank From kandraitibold at gmail.com Wed Apr 4 09:29:50 2012 From: kandraitibold at gmail.com (Tibold Kandrai) Date: Wed, 04 Apr 2012 09:29:50 +0200 Subject: [PySide] animate QStackedLayout? In-Reply-To: <4F7BD23A.2010208@ohufx.com> References: <4F7BD23A.2010208@ohufx.com> Message-ID: <4F7BF86E.7050105@gmail.com> Hey! Try QtAnimation: http://qt-project.org/doc/qt-4.8/animation-overview.html I use it with in a QGraphicsWidget, but this should work everywhere AFAIR. Cheers, Tibold On 04/04/2012 06:46, Frank Rueter | OHUfx wrote: > Hi everyone, > > I'm very new to Qt/PySide and am wondering if it's possible to add an > animation effect to, let's say, QStackedLayout, for when the page > changes. I guess it'd something similar to the way the AppStore works. > > In this example I'd like to see the new button "push" the old button out > of view when the combobox changes: > http://pastebin.com/i5sFgQzE > > I'm happy to take a good ol' fashioned RTFM, I'm just having a hard time > finding the right bit of information out there. > > Any help would be greatly appreciated. > > Cheers, > frank > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside -- Tibold Kandrai, CEO @ Dotz Team I/S, Software developer, consultant -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 552 bytes Desc: OpenPGP digital signature URL: From sebastian at risefx.com Wed Apr 4 09:43:44 2012 From: sebastian at risefx.com (Sebastian Elsner) Date: Wed, 04 Apr 2012 09:43:44 +0200 Subject: [PySide] animate QStackedLayout? In-Reply-To: <4F7BD23A.2010208@ohufx.com> References: <4F7BD23A.2010208@ohufx.com> Message-ID: <4F7BFBB0.1030804@risefx.com> Hey Frank, if you are going for a more graphical approach try out Qt Quick: http://qt-project.org/doc/qt-4.8/qml-intro.html Cheers Sebastian On 04/04/2012 06:46 AM, Frank Rueter | OHUfx wrote: > Hi everyone, > > I'm very new to Qt/PySide and am wondering if it's possible to add an > animation effect to, let's say, QStackedLayout, for when the page > changes. I guess it'd something similar to the way the AppStore works. > > In this example I'd like to see the new button "push" the old button out > of view when the combobox changes: > http://pastebin.com/i5sFgQzE > > I'm happy to take a good ol' fashioned RTFM, I'm just having a hard time > finding the right bit of information out there. > > Any help would be greatly appreciated. > > Cheers, > frank > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside -- Sebastian Elsner - pipeline td - r i s e | fx t: +49 30 20180300 sebastian at risefx.com www.risefx.com r i s e | fx GmbH Schlesische Strasse 28 Aufgang B, 10997 Berlin Geschäftsführer: Sven Pannicke, Robert Pinnow Handelsregister Berlin HRB 106667 B On 04/04/2012 06:46 AM, Frank Rueter | OHUfx wrote: > Hi everyone, > > I'm very new to Qt/PySide and am wondering if it's possible to add an > animation effect to, let's say, QStackedLayout, for when the page > changes. I guess it'd something similar to the way the AppStore works. > > In this example I'd like to see the new button "push" the old button out > of view when the combobox changes: > http://pastebin.com/i5sFgQzE > > I'm happy to take a good ol' fashioned RTFM, I'm just having a hard time > finding the right bit of information out there. > > Any help would be greatly appreciated. > > Cheers, > frank > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside -- Sebastian Elsner - pipeline td - r i s e | fx t: +49 30 20180300 sebastian at risefx.com www.risefx.com r i s e | fx GmbH Schlesische Strasse 28 Aufgang B, 10997 Berlin Geschäftsführer: Sven Pannicke, Robert Pinnow Handelsregister Berlin HRB 106667 B From a.richi at bluewin.ch Wed Apr 4 11:06:52 2012 From: a.richi at bluewin.ch (Aaron Richiger) Date: Wed, 04 Apr 2012 11:06:52 +0200 Subject: [PySide] animate QStackedLayout? In-Reply-To: <4F7BD23A.2010208@ohufx.com> References: <4F7BD23A.2010208@ohufx.com> Message-ID: <4F7C0F2C.405@bluewin.ch> Hello frank! I just changed your code a little with overwriting QStackedWidget. But for your purpose, QtStackedWidget seems the wrong widget for me, because it's designed to always show only one widget at a time, but what you want (I guess) is having a short moment where you see the old page sliding out and the new one already behind. You could do so by implementing your own StackedWidget. Please note, that my quick and dirty version is just a possibility to solve your issue, but there are probably more elegant ways to do so (QtAnimation, QtQuick) with less overhead. You get the code here: http://pastebin.com/BLWdryVa I hope, this gives you a rough idea of this possibility! Cheers aaron Am 04.04.2012 06:46, schrieb Frank Rueter | OHUfx: > Hi everyone, > > I'm very new to Qt/PySide and am wondering if it's possible to add an > animation effect to, let's say, QStackedLayout, for when the page > changes. I guess it'd something similar to the way the AppStore works. > > In this example I'd like to see the new button "push" the old button out > of view when the combobox changes: > http://pastebin.com/i5sFgQzE > > I'm happy to take a good ol' fashioned RTFM, I'm just having a hard time > finding the right bit of information out there. > > Any help would be greatly appreciated. > > Cheers, > frank > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside From frank at ohufx.com Wed Apr 4 23:33:08 2012 From: frank at ohufx.com (Frank Rueter | OHUfx) Date: Thu, 05 Apr 2012 09:33:08 +1200 Subject: [PySide] animate QStackedLayout? In-Reply-To: <4F7BF86E.7050105@gmail.com> References: <4F7BD23A.2010208@ohufx.com> <4F7BF86E.7050105@gmail.com> Message-ID: <4F7CBE14.9070304@ohufx.com> thanks Tibold, will check it out. On 4/4/12 7:29 PM, Tibold Kandrai wrote: > Hey! > > Try QtAnimation: > http://qt-project.org/doc/qt-4.8/animation-overview.html > > I use it with in a QGraphicsWidget, but this should work everywhere AFAIR. > > Cheers, > Tibold > > On 04/04/2012 06:46, Frank Rueter | OHUfx wrote: >> Hi everyone, >> >> I'm very new to Qt/PySide and am wondering if it's possible to add an >> animation effect to, let's say, QStackedLayout, for when the page >> changes. I guess it'd something similar to the way the AppStore works. >> >> In this example I'd like to see the new button "push" the old button out >> of view when the combobox changes: >> http://pastebin.com/i5sFgQzE >> >> I'm happy to take a good ol' fashioned RTFM, I'm just having a hard time >> finding the right bit of information out there. >> >> Any help would be greatly appreciated. >> >> Cheers, >> frank >> _______________________________________________ >> PySide mailing list >> PySide at qt-project.org >> http://lists.qt-project.org/mailman/listinfo/pyside > > > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside -------------- next part -------------- An HTML attachment was scrubbed... URL: From frank at ohufx.com Wed Apr 4 23:53:15 2012 From: frank at ohufx.com (Frank Rueter | OHUfx) Date: Thu, 05 Apr 2012 09:53:15 +1200 Subject: [PySide] animate QStackedLayout? In-Reply-To: <4F7C0F2C.405@bluewin.ch> References: <4F7BD23A.2010208@ohufx.com> <4F7C0F2C.405@bluewin.ch> Message-ID: <4F7CC2CB.1030506@ohufx.com> Hi Aaron, thanks for your reply and especially the code snippet! It's kinda cool and it should help me a lot to pick it apart. as you guessed, ultimately I am after pages filled with various widgets to slide in and out of view, so not sure if this solution will work. Nonetheless it's a great example for me to look at and learn a bit more. Thanks everyone!! frank On 4/4/12 9:06 PM, Aaron Richiger wrote: > Hello frank! > > I just changed your code a little with overwriting QStackedWidget. But > for your purpose, QtStackedWidget seems the wrong widget for me, because > it's designed to always show only one widget at a time, but what you > want (I guess) is having a short moment where you see the old page > sliding out and the new one already behind. You could do so by > implementing your own StackedWidget. Please note, that my quick and > dirty version is just a possibility to solve your issue, but there are > probably more elegant ways to do so (QtAnimation, QtQuick) with less > overhead. You get the code here: > > http://pastebin.com/BLWdryVa > > I hope, this gives you a rough idea of this possibility! > > Cheers > aaron > > > > Am 04.04.2012 06:46, schrieb Frank Rueter | OHUfx: >> Hi everyone, >> >> I'm very new to Qt/PySide and am wondering if it's possible to add an >> animation effect to, let's say, QStackedLayout, for when the page >> changes. I guess it'd something similar to the way the AppStore works. >> >> In this example I'd like to see the new button "push" the old button out >> of view when the combobox changes: >> http://pastebin.com/i5sFgQzE >> >> I'm happy to take a good ol' fashioned RTFM, I'm just having a hard time >> finding the right bit of information out there. >> >> Any help would be greatly appreciated. >> >> Cheers, >> frank >> _______________________________________________ >> PySide mailing list >> PySide at qt-project.org >> http://lists.qt-project.org/mailman/listinfo/pyside > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside From abarzuaf at gmail.com Thu Apr 5 00:28:24 2012 From: abarzuaf at gmail.com (craf) Date: Wed, 04 Apr 2012 19:28:24 -0300 Subject: [PySide] Passing parameter from one class to an external function Message-ID: <1333578504.1767.6.camel@cristian> Hi Everyone!. Recently start with Pyside and I would like to know how I can call the function greetings from within the Form class, passing the self argument. My Code:--------------------------------------------------- import sys from PySide.QtCore import * from PySide.QtGui import * class Form(QDialog): def __init__(self, parent=None): QDialog.__init__(self, parent=None) self.edit = QLineEdit("Write my name here") self.button = QPushButton("Show Greetings") self.layout = QVBoxLayout() self.layout.addWidget(self.edit) self.layout.addWidget(self.button) self.setLayout(self.layout) self.button.clicked.connect(greetings) def greetings(self): print ("Hello %s" % self.edit.text()) if __name__ == '__main__': app = QApplication(sys.argv) form = Form() form.show() sys.exit(app.exec_()) ---------------------------------------------------- I try with: self.button.clicked.connect(greetings) self.button.clicked.connect(lambda e: greetings(self)) self.button.clicked.connect(lambda e, self=self:greetings(self)) but, nothing. I appreciate any information Best Regards Cris From frank at ohufx.com Thu Apr 5 00:38:03 2012 From: frank at ohufx.com (Frank Rueter | OHUfx) Date: Thu, 05 Apr 2012 10:38:03 +1200 Subject: [PySide] Passing parameter from one class to an external function In-Reply-To: <1333578504.1767.6.camel@cristian> References: <1333578504.1767.6.camel@cristian> Message-ID: <4F7CCD4B.7070503@ohufx.com> just indent your "greetings" function so it becomes a method to the "Form" class, then it will work. import sys from PySide.QtCore import * from PySide.QtGui import * class Form(QDialog): def __init__(self, parent=None): QDialog.__init__(self, parent=None) self.edit = QLineEdit("Write my name here") self.button = QPushButton("Show Greetings") self.layout = QVBoxLayout() self.layout.addWidget(self.edit) self.layout.addWidget(self.button) self.setLayout(self.layout) self.button.clicked.connect(self.greetings) def greetings(self): print ("Hello %s" % self.edit.text()) if __name__ == '__main__': app = QApplication(sys.argv) form = Form() form.show() sys.exit( app.exec_() ) On 4/5/12 10:28 AM, craf wrote: > Hi Everyone!. > > Recently start with Pyside and I would like to know how I can call the > function greetings from within the Form class, passing the self > argument. > > My Code:--------------------------------------------------- > > import sys > from PySide.QtCore import * > from PySide.QtGui import * > > > class Form(QDialog): > > def __init__(self, parent=None): > > QDialog.__init__(self, parent=None) > > self.edit = QLineEdit("Write my name here") > self.button = QPushButton("Show Greetings") > self.layout = QVBoxLayout() > self.layout.addWidget(self.edit) > self.layout.addWidget(self.button) > self.setLayout(self.layout) > self.button.clicked.connect(greetings) > > > def greetings(self): > print ("Hello %s" % self.edit.text()) > > > if __name__ == '__main__': > app = QApplication(sys.argv) > form = Form() > form.show() > sys.exit(app.exec_()) > > ---------------------------------------------------- > > I try with: > > self.button.clicked.connect(greetings) > self.button.clicked.connect(lambda e: greetings(self)) > self.button.clicked.connect(lambda e, self=self:greetings(self)) > > but, nothing. > > I appreciate any information > > Best Regards > > Cris > > > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside From abarzuaf at gmail.com Thu Apr 5 03:27:47 2012 From: abarzuaf at gmail.com (craf) Date: Wed, 04 Apr 2012 22:27:47 -0300 Subject: [PySide] Passing parameter from one class to an external function In-Reply-To: <4F7CCD4B.7070503@ohufx.com> References: <1333578504.1767.6.camel@cristian> <4F7CCD4B.7070503@ohufx.com> Message-ID: <1333589267.1815.1.camel@cristian> >just indent your "greetings" function so it becomes a method to the >"Form" class, then it will work. Hi Frank. Thanks for your response, but the code is fine. The function is outside the class, and I need to call it from within. In WxWidget and Pygtk can be done, but I've failed PySide. Any suggestions? Regards, Cris From frank at ohufx.com Thu Apr 5 06:54:38 2012 From: frank at ohufx.com (Frank Rueter | OHUfx) Date: Thu, 05 Apr 2012 16:54:38 +1200 Subject: [PySide] Passing parameter from one class to an external function In-Reply-To: <1333589267.1815.1.camel@cristian> References: <1333578504.1767.6.camel@cristian> <4F7CCD4B.7070503@ohufx.com> <1333589267.1815.1.camel@cristian> Message-ID: <4F7D258E.80604@ohufx.com> Not sure if I follow (I'm new to PySide myself). Your "greetings" function is outside the "Form" class, yet it takes the argument "self" and tries to call "self.edit.text()" which is unknown outside of the "Form" class. Hence my suggestion to simply increase the indentation of the function to make it a method to the class and things will fall into place: http://pastebin.com/rNu2NQQa On 4/5/12 1:27 PM, craf wrote: >> just indent your "greetings" function so it becomes a method to the >> "Form" class, then it will work. > Hi Frank. > > Thanks for your response, but the code is fine. > The function is outside the class, and I need to call it from within. In > WxWidget and Pygtk can be done, but I've failed PySide. > > Any suggestions? > > Regards, > > Cris > > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside From kandraitibold at gmail.com Thu Apr 5 07:36:51 2012 From: kandraitibold at gmail.com (Tibold Kandrai) Date: Thu, 05 Apr 2012 07:36:51 +0200 Subject: [PySide] Passing parameter from one class to an external function In-Reply-To: <1333578504.1767.6.camel@cristian> References: <1333578504.1767.6.camel@cristian> Message-ID: <4F7D2F73.4030707@gmail.com> Hey! You can use another method in the class to handle the event and call the greetings with self: http://pastebin.com/0m6csu6v Or you can use functools.partial: http://pastebin.com/NH3PNmKE Best regards, On 05/04/2012 00:28, craf wrote: > Hi Everyone!. > > Recently start with Pyside and I would like to know how I can call the > function greetings from within the Form class, passing the self > argument. > > My Code:--------------------------------------------------- > > import sys > from PySide.QtCore import * > from PySide.QtGui import * > > > class Form(QDialog): > > def __init__(self, parent=None): > > QDialog.__init__(self, parent=None) > > self.edit = QLineEdit("Write my name here") > self.button = QPushButton("Show Greetings") > self.layout = QVBoxLayout() > self.layout.addWidget(self.edit) > self.layout.addWidget(self.button) > self.setLayout(self.layout) > self.button.clicked.connect(greetings) > > > def greetings(self): > print ("Hello %s" % self.edit.text()) > > > if __name__ == '__main__': > app = QApplication(sys.argv) > form = Form() > form.show() > sys.exit(app.exec_()) > > ---------------------------------------------------- > > I try with: > > self.button.clicked.connect(greetings) > self.button.clicked.connect(lambda e: greetings(self)) > self.button.clicked.connect(lambda e, self=self:greetings(self)) > > but, nothing. > > I appreciate any information > > Best Regards > > Cris > > > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside -- Tibold Kandrai, CEO @ Dotz Team I/S, Software developer, consultant From sebastian at risefx.com Thu Apr 5 08:37:24 2012 From: sebastian at risefx.com (Sebastian Elsner) Date: Thu, 05 Apr 2012 08:37:24 +0200 Subject: [PySide] Passing parameter from one class to an external function In-Reply-To: <4F7D258E.80604@ohufx.com> References: <1333578504.1767.6.camel@cristian> <4F7CCD4B.7070503@ohufx.com> <1333589267.1815.1.camel@cristian> <4F7D258E.80604@ohufx.com> Message-ID: <4F7D3DA4.8040900@risefx.com> Having a slot (your greetings function) outside a Class is never going to work. This is from the Qt docs: All classes that contain signals or slots must mention Q_OBJECT at the top of their declaration. They must also derive (directly or indirectly) from QObject . The last sentence is the most interesting for you. I suggest reading the whole signal slots page, its very important. What you can do is this: import sys from PySide.QtCore import * from PySide.QtGui import * class Form(QDialog): def __init__(self, parent=None): QDialog.__init__(self, parent=None) self.edit = QLineEdit("Write my name here") self.button = QPushButton("Show Greetings") self.layout = QVBoxLayout() self.layout.addWidget(self.edit) self.layout.addWidget(self.button) self.setLayout(self.layout) self.button.clicked.connect(self._greetings) def _greetings(self): greetings(self) def greetings(form_instance): print ("Hello %s" %form_instance.edit.text()) if __name__ == '__main__': app = QApplication(sys.argv) form = Form() form.show() sys.exit( app.exec_() ) Am 05.04.2012 06:54, schrieb Frank Rueter | OHUfx: > Not sure if I follow (I'm new to PySide myself). > Your "greetings" function is outside the "Form" class, yet it takes the > argument "self" and tries to call "self.edit.text()" which is unknown > outside of the "Form" class. > Hence my suggestion to simply increase the indentation of the function > to make it a method to the class and things will fall into place: > http://pastebin.com/rNu2NQQa > > > > On 4/5/12 1:27 PM, craf wrote: >>> just indent your "greetings" function so it becomes a method to the >>> "Form" class, then it will work. >> Hi Frank. >> >> Thanks for your response, but the code is fine. >> The function is outside the class, and I need to call it from within. In >> WxWidget and Pygtk can be done, but I've failed PySide. >> >> Any suggestions? >> >> Regards, >> >> Cris >> >> _______________________________________________ >> PySide mailing list >> PySide at qt-project.org >> http://lists.qt-project.org/mailman/listinfo/pyside > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside -------------- next part -------------- An HTML attachment was scrubbed... URL: From abarzuaf at gmail.com Thu Apr 5 14:22:14 2012 From: abarzuaf at gmail.com (craf) Date: Thu, 05 Apr 2012 09:22:14 -0300 Subject: [PySide] Passing parameter from one class to an external function In-Reply-To: <4F7D2F73.4030707@gmail.com> References: <1333578504.1767.6.camel@cristian> <4F7D2F73.4030707@gmail.com> Message-ID: <1333628534.1987.2.camel@cristian> Hi Guys. Tkanks for the tip! That was what I wanted Best Regards Cris From jpe at wingware.com Thu Apr 5 22:08:36 2012 From: jpe at wingware.com (John Ehresman) Date: Thu, 05 Apr 2012 16:08:36 -0400 Subject: [PySide] Problems wrapping a struct with a void * field Message-ID: <4F7DFBC4.6000503@wingware.com> Hi, Shiboken is generating code that doesn't compile when a struct contains a field of type void * (e.g. struct T { void *field; };). I've opened a bug for this at https://bugreports.qt-project.org/browse/PYSIDE-49 Is there any way to work around this? I'm not actually interesting in accessing the field with the void * type; I only want to access other fields in the same struct. The code being wrapped is not code that I wrote so I don't want to change the type of the field. Thanks, John From frank at ohufx.com Fri Apr 6 02:50:19 2012 From: frank at ohufx.com (Frank Rueter | OHUfx) Date: Fri, 06 Apr 2012 12:50:19 +1200 Subject: [PySide] custom table sorting Message-ID: <4F7E3DCB.9030201@ohufx.com> Hi guys, I'm working on a table that has ItemWidgets (comboBoxes, checkBoxes etc) in some cells and I'm trying to figure out how to write a custom sort behaviour that will enable me to sort the table by columns containing widgets using the respective widgets' current value (e.g. show all rows with a checked checkBox first, followed by all rows with an unchecked checkBox). Has anyone done this before? Any pointers would be fabulous! Cheers, frank From frank at ohufx.com Fri Apr 6 06:05:21 2012 From: frank at ohufx.com (Frank Rueter | OHUfx) Date: Fri, 06 Apr 2012 16:05:21 +1200 Subject: [PySide] animate QStackedLayout? In-Reply-To: <4F7BF86E.7050105@gmail.com> References: <4F7BD23A.2010208@ohufx.com> <4F7BF86E.7050105@gmail.com> Message-ID: <4F7E6B81.1090105@ohufx.com> Thanks again for this tip Tibold. It seems to be what I'm after, though I just discovered that QAnimationGroup doesn't seem to be supported in PySide. I got this error when I tried to create an instance of it: NotImplementedError: 'QAnimationGroup' represents a C++ abstract class and cannot be instantiated I will try and add all widgets to one "page" widget (whatever that may be, I need to find out yet), and then apply the animation to that. Fingers crossed... Cheers, frank On 4/4/12 7:29 PM, Tibold Kandrai wrote: > Hey! > > Try QtAnimation: > http://qt-project.org/doc/qt-4.8/animation-overview.html > > I use it with in a QGraphicsWidget, but this should work everywhere AFAIR. > > Cheers, > Tibold > > On 04/04/2012 06:46, Frank Rueter | OHUfx wrote: >> Hi everyone, >> >> I'm very new to Qt/PySide and am wondering if it's possible to add an >> animation effect to, let's say, QStackedLayout, for when the page >> changes. I guess it'd something similar to the way the AppStore works. >> >> In this example I'd like to see the new button "push" the old button out >> of view when the combobox changes: >> http://pastebin.com/i5sFgQzE >> >> I'm happy to take a good ol' fashioned RTFM, I'm just having a hard time >> finding the right bit of information out there. >> >> Any help would be greatly appreciated. >> >> Cheers, >> frank >> _______________________________________________ >> PySide mailing list >> PySide at qt-project.org >> http://lists.qt-project.org/mailman/listinfo/pyside > > > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside -------------- next part -------------- An HTML attachment was scrubbed... URL: From frank at ohufx.com Fri Apr 6 06:45:50 2012 From: frank at ohufx.com (Frank Rueter | OHUfx) Date: Fri, 06 Apr 2012 16:45:50 +1200 Subject: [PySide] animate QStackedLayout? In-Reply-To: <4F7E6B81.1090105@ohufx.com> References: <4F7BD23A.2010208@ohufx.com> <4F7BF86E.7050105@gmail.com> <4F7E6B81.1090105@ohufx.com> Message-ID: <4F7E74FE.1020902@ohufx.com> I think I found the problem in the fact that it's an abstract class and not meant to be used directly. the joy of learning new stuff.... On 4/6/12 4:05 PM, Frank Rueter | OHUfx wrote: > Thanks again for this tip Tibold. It seems to be what I'm after, > though I just discovered that QAnimationGroup doesn't seem to be > supported in PySide. I got this error when I tried to create an > instance of it: > > NotImplementedError: 'QAnimationGroup' represents a C++ abstract class > and cannot be instantiated > > > I will try and add all widgets to one "page" widget (whatever that may > be, I need to find out yet), and then apply the animation to that. > Fingers crossed... > > Cheers, > frank > > > On 4/4/12 7:29 PM, Tibold Kandrai wrote: >> Hey! >> >> Try QtAnimation: >> http://qt-project.org/doc/qt-4.8/animation-overview.html >> >> I use it with in a QGraphicsWidget, but this should work everywhere AFAIR. >> >> Cheers, >> Tibold >> >> On 04/04/2012 06:46, Frank Rueter | OHUfx wrote: >>> Hi everyone, >>> >>> I'm very new to Qt/PySide and am wondering if it's possible to add an >>> animation effect to, let's say, QStackedLayout, for when the page >>> changes. I guess it'd something similar to the way the AppStore works. >>> >>> In this example I'd like to see the new button "push" the old button out >>> of view when the combobox changes: >>> http://pastebin.com/i5sFgQzE >>> >>> I'm happy to take a good ol' fashioned RTFM, I'm just having a hard time >>> finding the right bit of information out there. >>> >>> Any help would be greatly appreciated. >>> >>> Cheers, >>> frank >>> _______________________________________________ >>> PySide mailing list >>> PySide at qt-project.org >>> http://lists.qt-project.org/mailman/listinfo/pyside >> >> >> _______________________________________________ >> PySide mailing list >> PySide at qt-project.org >> http://lists.qt-project.org/mailman/listinfo/pyside > > > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside -------------- next part -------------- An HTML attachment was scrubbed... URL: From kandraitibold at gmail.com Fri Apr 6 08:28:48 2012 From: kandraitibold at gmail.com (Tibold Kandrai) Date: Fri, 06 Apr 2012 08:28:48 +0200 Subject: [PySide] animate QStackedLayout? In-Reply-To: <4F7E74FE.1020902@ohufx.com> References: <4F7BD23A.2010208@ohufx.com> <4F7BF86E.7050105@gmail.com> <4F7E6B81.1090105@ohufx.com> <4F7E74FE.1020902@ohufx.com> Message-ID: <4F7E8D20.5000004@gmail.com> Hi! Exactly! Instead of QAnimationGroup you have to use QParallelAnimationGroup orQSequentialAnimationGroup . Or you can create your own group by subclassing QAnimationGroup if you have special needs. :) Cheers, Tibold On 06/04/2012 06:45, Frank Rueter | OHUfx wrote: > I think I found the problem in the fact that it's an abstract class > and not meant to be used directly. > the joy of learning new stuff.... > > > On 4/6/12 4:05 PM, Frank Rueter | OHUfx wrote: >> Thanks again for this tip Tibold. It seems to be what I'm after, >> though I just discovered that QAnimationGroup doesn't seem to be >> supported in PySide. I got this error when I tried to create an >> instance of it: >> >> NotImplementedError: 'QAnimationGroup' represents a C++ abstract >> class and cannot be instantiated >> >> >> I will try and add all widgets to one "page" widget (whatever that >> may be, I need to find out yet), and then apply the animation to that. >> Fingers crossed... >> >> Cheers, >> frank >> >> >> On 4/4/12 7:29 PM, Tibold Kandrai wrote: >>> Hey! >>> >>> Try QtAnimation: >>> http://qt-project.org/doc/qt-4.8/animation-overview.html >>> >>> I use it with in a QGraphicsWidget, but this should work everywhere AFAIR. >>> >>> Cheers, >>> Tibold >>> >>> On 04/04/2012 06:46, Frank Rueter | OHUfx wrote: >>>> Hi everyone, >>>> >>>> I'm very new to Qt/PySide and am wondering if it's possible to add an >>>> animation effect to, let's say, QStackedLayout, for when the page >>>> changes. I guess it'd something similar to the way the AppStore works. >>>> >>>> In this example I'd like to see the new button "push" the old button out >>>> of view when the combobox changes: >>>> http://pastebin.com/i5sFgQzE >>>> >>>> I'm happy to take a good ol' fashioned RTFM, I'm just having a hard time >>>> finding the right bit of information out there. >>>> >>>> Any help would be greatly appreciated. >>>> >>>> Cheers, >>>> frank >>>> _______________________________________________ >>>> PySide mailing list >>>> PySide at qt-project.org >>>> http://lists.qt-project.org/mailman/listinfo/pyside >>> >>> >>> _______________________________________________ >>> PySide mailing list >>> PySide at qt-project.org >>> http://lists.qt-project.org/mailman/listinfo/pyside >> >> >> _______________________________________________ >> PySide mailing list >> PySide at qt-project.org >> http://lists.qt-project.org/mailman/listinfo/pyside > > > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside -- Tibold Kandrai, CEO @ Dotz Team I/S, Software developer, consultant -------------- next part -------------- An HTML attachment was scrubbed... URL: From frank at ohufx.com Fri Apr 6 09:13:04 2012 From: frank at ohufx.com (Frank Rueter | OHUfx) Date: Fri, 06 Apr 2012 19:13:04 +1200 Subject: [PySide] animate QStackedLayout? In-Reply-To: <4F7E8D20.5000004@gmail.com> References: <4F7BD23A.2010208@ohufx.com> <4F7BF86E.7050105@gmail.com> <4F7E6B81.1090105@ohufx.com> <4F7E74FE.1020902@ohufx.com> <4F7E8D20.5000004@gmail.com> Message-ID: <4F7E9780.2030809@ohufx.com> yes, I think I'm starting to get it, thanks. So here is a very rough and ugly test using a single animated table (feel free to laugh): http://pastebin.com/PbZ8ismH I am trying to see if it's feasible to stuff all my widgets into one big table, then animate the table's position so that only the requested column(s) are within the view according to which button is pushed on the left hand side. Obviously I'd have to hide the headers and lines etc. (no idea how to do that yet either). What do people think how best to approach this? The above doesn't feel right and I'd have to do a lot of hacking to make this look pretty (though the animation is easy to control as it's just one widget). Or should I rather create one table per button and move them around as a group (I guess I could hide the unwanted tables as well then). Or does anyone have completely different ideas how to tackle this? I'm sure there is a way more elegant solution. I'm still trying to stick to default QT stuff before I dive into Qt Quick and such. Thanks for all the help and pointers so far! frank On 4/6/12 6:28 PM, Tibold Kandrai wrote: > Hi! > > Exactly! Instead of QAnimationGroup you have to use > QParallelAnimationGroup > orQSequentialAnimationGroup > . > Or you can create your own group by subclassing QAnimationGroup if you > have special needs. :) > > Cheers, > Tibold > > On 06/04/2012 06:45, Frank Rueter | OHUfx wrote: >> I think I found the problem in the fact that it's an abstract class >> and not meant to be used directly. >> the joy of learning new stuff.... >> >> >> On 4/6/12 4:05 PM, Frank Rueter | OHUfx wrote: >>> Thanks again for this tip Tibold. It seems to be what I'm after, >>> though I just discovered that QAnimationGroup doesn't seem to be >>> supported in PySide. I got this error when I tried to create an >>> instance of it: >>> >>> NotImplementedError: 'QAnimationGroup' represents a C++ abstract >>> class and cannot be instantiated >>> >>> >>> I will try and add all widgets to one "page" widget (whatever that >>> may be, I need to find out yet), and then apply the animation to that. >>> Fingers crossed... >>> >>> Cheers, >>> frank >>> >>> >>> On 4/4/12 7:29 PM, Tibold Kandrai wrote: >>>> Hey! >>>> >>>> Try QtAnimation: >>>> http://qt-project.org/doc/qt-4.8/animation-overview.html >>>> >>>> I use it with in a QGraphicsWidget, but this should work everywhere AFAIR. >>>> >>>> Cheers, >>>> Tibold >>>> >>>> On 04/04/2012 06:46, Frank Rueter | OHUfx wrote: >>>>> Hi everyone, >>>>> >>>>> I'm very new to Qt/PySide and am wondering if it's possible to add an >>>>> animation effect to, let's say, QStackedLayout, for when the page >>>>> changes. I guess it'd something similar to the way the AppStore works. >>>>> >>>>> In this example I'd like to see the new button "push" the old button out >>>>> of view when the combobox changes: >>>>> http://pastebin.com/i5sFgQzE >>>>> >>>>> I'm happy to take a good ol' fashioned RTFM, I'm just having a hard time >>>>> finding the right bit of information out there. >>>>> >>>>> Any help would be greatly appreciated. >>>>> >>>>> Cheers, >>>>> frank >>>>> _______________________________________________ >>>>> PySide mailing list >>>>> PySide at qt-project.org >>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>> >>>> >>>> _______________________________________________ >>>> PySide mailing list >>>> PySide at qt-project.org >>>> http://lists.qt-project.org/mailman/listinfo/pyside >>> >>> >>> _______________________________________________ >>> PySide mailing list >>> PySide at qt-project.org >>> http://lists.qt-project.org/mailman/listinfo/pyside >> >> >> _______________________________________________ >> PySide mailing list >> PySide at qt-project.org >> http://lists.qt-project.org/mailman/listinfo/pyside > > -- > Tibold Kandrai, > CEO @ Dotz Team I/S, > Software developer, consultant > > > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastian at risefx.com Fri Apr 6 12:03:21 2012 From: sebastian at risefx.com (Sebastian Elsner) Date: Fri, 06 Apr 2012 12:03:21 +0200 Subject: [PySide] custom table sorting In-Reply-To: <4F7E3DCB.9030201@ohufx.com> References: <4F7E3DCB.9030201@ohufx.com> Message-ID: <4F7EBF69.2030400@risefx.com> Hi, assuming the checkboxes and the combo boxes are different data types (bool, vs, string) and thus displayed in different columns, sorting should happen automatically when you setSortingEnabled(True). Please note that you have to disable sorting while inserting items because this may lead to stringe behaviour. Also if you want to display checkboxes these should be set by QTableWidgetItem.setFlags(QTablewidgetItem.flags() | Qt.ItemIsUSerCheckable)) and setCheckState() rather than doing a QTableWidget.setCellWidget(), because this is way faster. The combooxes can be inserted with setCellWidget, but be aware that you may run into performance issues if you add a lot of them. Alternatively you could subclass the QTableWidgetItem and override the < operator to provide your own sorting, which will be - of course - solower because implemented in python. Finally when dealing with large datasets I would recommend going for the true model/view approach with QTableView, QTableModel and QStyledItemDelegate, but those are more hard to use. Cheers Sebastian Am 06.04.2012 02:50, schrieb Frank Rueter | OHUfx: > Hi guys, > > I'm working on a table that has ItemWidgets (comboBoxes, checkBoxes etc) > in some cells and I'm trying to figure out how to write a custom sort > behaviour that will enable me to sort the table by columns containing > widgets using the respective widgets' current value (e.g. show all rows > with a checked checkBox first, followed by all rows with an unchecked > checkBox). > > Has anyone done this before? > Any pointers would be fabulous! > > Cheers, > frank > > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside From sebastian at risefx.com Fri Apr 6 13:31:21 2012 From: sebastian at risefx.com (Sebastian Elsner) Date: Fri, 06 Apr 2012 13:31:21 +0200 Subject: [PySide] animate QStackedLayout? In-Reply-To: <4F7E9780.2030809@ohufx.com> References: <4F7BD23A.2010208@ohufx.com> <4F7BF86E.7050105@gmail.com> <4F7E6B81.1090105@ohufx.com> <4F7E74FE.1020902@ohufx.com> <4F7E8D20.5000004@gmail.com> <4F7E9780.2030809@ohufx.com> Message-ID: <4F7ED409.1060708@risefx.com> This Approach seems really off, Frank. I am not really getting what you want to do, maybe you can give us the specific purpose of this... What I could imagine is using a QScrollArea, which makes a QGridLayout scrollable. Am 06.04.2012 09:13, schrieb Frank Rueter | OHUfx: > yes, I think I'm starting to get it, thanks. > > So here is a very rough and ugly test using a single animated table > (feel free to laugh): > http://pastebin.com/PbZ8ismH > > I am trying to see if it's feasible to stuff all my widgets into one > big table, then animate the table's position so that only the > requested column(s) are within the view according to which button is > pushed on the left hand side. Obviously I'd have to hide the headers > and lines etc. (no idea how to do that yet either). > > What do people think how best to approach this? The above doesn't feel > right and I'd have to do a lot of hacking to make this look pretty > (though the animation is easy to control as it's just one widget). Or > should I rather create one table per button and move them around as a > group (I guess I could hide the unwanted tables as well then). > > Or does anyone have completely different ideas how to tackle this? I'm > sure there is a way more elegant solution. > I'm still trying to stick to default QT stuff before I dive into Qt > Quick and such. > > Thanks for all the help and pointers so far! > > frank > > > On 4/6/12 6:28 PM, Tibold Kandrai wrote: >> Hi! >> >> Exactly! Instead of QAnimationGroup you have to use >> QParallelAnimationGroup >> orQSequentialAnimationGroup >> . >> Or you can create your own group by subclassing QAnimationGroup if >> you have special needs. :) >> >> Cheers, >> Tibold >> >> On 06/04/2012 06:45, Frank Rueter | OHUfx wrote: >>> I think I found the problem in the fact that it's an abstract class >>> and not meant to be used directly. >>> the joy of learning new stuff.... >>> >>> >>> On 4/6/12 4:05 PM, Frank Rueter | OHUfx wrote: >>>> Thanks again for this tip Tibold. It seems to be what I'm after, >>>> though I just discovered that QAnimationGroup doesn't seem to be >>>> supported in PySide. I got this error when I tried to create an >>>> instance of it: >>>> >>>> NotImplementedError: 'QAnimationGroup' represents a C++ abstract >>>> class and cannot be instantiated >>>> >>>> >>>> I will try and add all widgets to one "page" widget (whatever that >>>> may be, I need to find out yet), and then apply the animation to that. >>>> Fingers crossed... >>>> >>>> Cheers, >>>> frank >>>> >>>> >>>> On 4/4/12 7:29 PM, Tibold Kandrai wrote: >>>>> Hey! >>>>> >>>>> Try QtAnimation: >>>>> http://qt-project.org/doc/qt-4.8/animation-overview.html >>>>> >>>>> I use it with in a QGraphicsWidget, but this should work everywhere AFAIR. >>>>> >>>>> Cheers, >>>>> Tibold >>>>> >>>>> On 04/04/2012 06:46, Frank Rueter | OHUfx wrote: >>>>>> Hi everyone, >>>>>> >>>>>> I'm very new to Qt/PySide and am wondering if it's possible to add an >>>>>> animation effect to, let's say, QStackedLayout, for when the page >>>>>> changes. I guess it'd something similar to the way the AppStore works. >>>>>> >>>>>> In this example I'd like to see the new button "push" the old button out >>>>>> of view when the combobox changes: >>>>>> http://pastebin.com/i5sFgQzE >>>>>> >>>>>> I'm happy to take a good ol' fashioned RTFM, I'm just having a hard time >>>>>> finding the right bit of information out there. >>>>>> >>>>>> Any help would be greatly appreciated. >>>>>> >>>>>> Cheers, >>>>>> frank >>>>>> _______________________________________________ >>>>>> PySide mailing list >>>>>> PySide at qt-project.org >>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>> >>>>> >>>>> _______________________________________________ >>>>> PySide mailing list >>>>> PySide at qt-project.org >>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>> >>>> >>>> _______________________________________________ >>>> PySide mailing list >>>> PySide at qt-project.org >>>> http://lists.qt-project.org/mailman/listinfo/pyside >>> >>> >>> _______________________________________________ >>> PySide mailing list >>> PySide at qt-project.org >>> http://lists.qt-project.org/mailman/listinfo/pyside >> >> -- >> Tibold Kandrai, >> CEO @ Dotz Team I/S, >> Software developer, consultant >> >> >> _______________________________________________ >> PySide mailing list >> PySide at qt-project.org >> http://lists.qt-project.org/mailman/listinfo/pyside > > > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside -------------- next part -------------- An HTML attachment was scrubbed... URL: From a.richi at bluewin.ch Fri Apr 6 23:05:43 2012 From: a.richi at bluewin.ch (Aaron Richiger) Date: Fri, 06 Apr 2012 23:05:43 +0200 Subject: [PySide] animate QStackedLayout? In-Reply-To: <4F7E9780.2030809@ohufx.com> References: <4F7BD23A.2010208@ohufx.com> <4F7BF86E.7050105@gmail.com> <4F7E6B81.1090105@ohufx.com> <4F7E74FE.1020902@ohufx.com> <4F7E8D20.5000004@gmail.com> <4F7E9780.2030809@ohufx.com> Message-ID: <4F7F5AA7.8060208@bluewin.ch> Hello Frank! For me, it seems, you are not really looking after a QTableWidget and I guess also not a QTableView (if you don't want the headers and lines etc.). So I just hacked some lines of code together (mostly edited yours, quick and dirty style as usual, but should give you an idea). Probably it's not what you are looking for, because I couldn't understand all your wishes, but it could be interesting anyways for other developers looking after an animated GUI (please forgive me the quick and therefore bad layout, I like implementing more than moving pixels around...): http://pastebin.com/jQtsf2tk You can show or hide a widget with the checkboxes and sort them with the button. Hope it helps! Aaron Am 06.04.2012 09:13, schrieb Frank Rueter | OHUfx: > yes, I think I'm starting to get it, thanks. > > So here is a very rough and ugly test using a single animated table > (feel free to laugh): > http://pastebin.com/PbZ8ismH > > I am trying to see if it's feasible to stuff all my widgets into one > big table, then animate the table's position so that only the > requested column(s) are within the view according to which button is > pushed on the left hand side. Obviously I'd have to hide the headers > and lines etc. (no idea how to do that yet either). > > What do people think how best to approach this? The above doesn't feel > right and I'd have to do a lot of hacking to make this look pretty > (though the animation is easy to control as it's just one widget). Or > should I rather create one table per button and move them around as a > group (I guess I could hide the unwanted tables as well then). > > Or does anyone have completely different ideas how to tackle this? I'm > sure there is a way more elegant solution. > I'm still trying to stick to default QT stuff before I dive into Qt > Quick and such. > > Thanks for all the help and pointers so far! > > frank > > > On 4/6/12 6:28 PM, Tibold Kandrai wrote: >> Hi! >> >> Exactly! Instead of QAnimationGroup you have to use >> QParallelAnimationGroup >> orQSequentialAnimationGroup >> . >> Or you can create your own group by subclassing QAnimationGroup if >> you have special needs. :) >> >> Cheers, >> Tibold >> >> On 06/04/2012 06:45, Frank Rueter | OHUfx wrote: >>> I think I found the problem in the fact that it's an abstract class >>> and not meant to be used directly. >>> the joy of learning new stuff.... >>> >>> >>> On 4/6/12 4:05 PM, Frank Rueter | OHUfx wrote: >>>> Thanks again for this tip Tibold. It seems to be what I'm after, >>>> though I just discovered that QAnimationGroup doesn't seem to be >>>> supported in PySide. I got this error when I tried to create an >>>> instance of it: >>>> >>>> NotImplementedError: 'QAnimationGroup' represents a C++ abstract >>>> class and cannot be instantiated >>>> >>>> >>>> I will try and add all widgets to one "page" widget (whatever that >>>> may be, I need to find out yet), and then apply the animation to that. >>>> Fingers crossed... >>>> >>>> Cheers, >>>> frank >>>> >>>> >>>> On 4/4/12 7:29 PM, Tibold Kandrai wrote: >>>>> Hey! >>>>> >>>>> Try QtAnimation: >>>>> http://qt-project.org/doc/qt-4.8/animation-overview.html >>>>> >>>>> I use it with in a QGraphicsWidget, but this should work everywhere AFAIR. >>>>> >>>>> Cheers, >>>>> Tibold >>>>> >>>>> On 04/04/2012 06:46, Frank Rueter | OHUfx wrote: >>>>>> Hi everyone, >>>>>> >>>>>> I'm very new to Qt/PySide and am wondering if it's possible to add an >>>>>> animation effect to, let's say, QStackedLayout, for when the page >>>>>> changes. I guess it'd something similar to the way the AppStore works. >>>>>> >>>>>> In this example I'd like to see the new button "push" the old button out >>>>>> of view when the combobox changes: >>>>>> http://pastebin.com/i5sFgQzE >>>>>> >>>>>> I'm happy to take a good ol' fashioned RTFM, I'm just having a hard time >>>>>> finding the right bit of information out there. >>>>>> >>>>>> Any help would be greatly appreciated. >>>>>> >>>>>> Cheers, >>>>>> frank >>>>>> _______________________________________________ >>>>>> PySide mailing list >>>>>> PySide at qt-project.org >>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>> >>>>> >>>>> _______________________________________________ >>>>> PySide mailing list >>>>> PySide at qt-project.org >>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>> >>>> >>>> _______________________________________________ >>>> PySide mailing list >>>> PySide at qt-project.org >>>> http://lists.qt-project.org/mailman/listinfo/pyside >>> >>> >>> _______________________________________________ >>> PySide mailing list >>> PySide at qt-project.org >>> http://lists.qt-project.org/mailman/listinfo/pyside >> >> -- >> Tibold Kandrai, >> CEO @ Dotz Team I/S, >> Software developer, consultant >> >> >> _______________________________________________ >> PySide mailing list >> PySide at qt-project.org >> http://lists.qt-project.org/mailman/listinfo/pyside > > > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside -------------- next part -------------- An HTML attachment was scrubbed... URL: From frank at ohufx.com Sat Apr 7 01:51:40 2012 From: frank at ohufx.com (Frank Rueter | OHUfx) Date: Sat, 07 Apr 2012 11:51:40 +1200 Subject: [PySide] animate QStackedLayout? In-Reply-To: <4F7ED409.1060708@risefx.com> References: <4F7BD23A.2010208@ohufx.com> <4F7BF86E.7050105@gmail.com> <4F7E6B81.1090105@ohufx.com> <4F7E74FE.1020902@ohufx.com> <4F7E8D20.5000004@gmail.com> <4F7E9780.2030809@ohufx.com> <4F7ED409.1060708@risefx.com> Message-ID: <4F7F818C.8020504@ohufx.com> I agree, it does seem off, which is why I'm throwing it out here to get some ideas on how to tackle this from more experienced peeps. I will try to clarify what I'm after: The idea is to have a collection of buttons per category, let's say a "page" of buttons. When the category is chosen via the buttons on the left, the requested page with buttons slides into view pushing the current one out of view. It's like an animated toolbox. I like your suggestion, will investigate. Cheers, frank On 6/04/12 11:31 PM, Sebastian Elsner wrote: > This Approach seems really off, Frank. I am not really getting what > you want to do, maybe you can give us the specific purpose of this... > What I could imagine is using a QScrollArea, which makes a QGridLayout > scrollable. > > > Am 06.04.2012 09:13, schrieb Frank Rueter | OHUfx: >> yes, I think I'm starting to get it, thanks. >> >> So here is a very rough and ugly test using a single animated table >> (feel free to laugh): >> http://pastebin.com/PbZ8ismH >> >> I am trying to see if it's feasible to stuff all my widgets into one >> big table, then animate the table's position so that only the >> requested column(s) are within the view according to which button is >> pushed on the left hand side. Obviously I'd have to hide the headers >> and lines etc. (no idea how to do that yet either). >> >> What do people think how best to approach this? The above doesn't >> feel right and I'd have to do a lot of hacking to make this look >> pretty (though the animation is easy to control as it's just one >> widget). Or should I rather create one table per button and move them >> around as a group (I guess I could hide the unwanted tables as well >> then). >> >> Or does anyone have completely different ideas how to tackle this? >> I'm sure there is a way more elegant solution. >> I'm still trying to stick to default QT stuff before I dive into Qt >> Quick and such. >> >> Thanks for all the help and pointers so far! >> >> frank >> >> >> On 4/6/12 6:28 PM, Tibold Kandrai wrote: >>> Hi! >>> >>> Exactly! Instead of QAnimationGroup you have to use >>> QParallelAnimationGroup >>> orQSequentialAnimationGroup >>> . >>> Or you can create your own group by subclassing QAnimationGroup if >>> you have special needs. :) >>> >>> Cheers, >>> Tibold >>> >>> On 06/04/2012 06:45, Frank Rueter | OHUfx wrote: >>>> I think I found the problem in the fact that it's an abstract class >>>> and not meant to be used directly. >>>> the joy of learning new stuff.... >>>> >>>> >>>> On 4/6/12 4:05 PM, Frank Rueter | OHUfx wrote: >>>>> Thanks again for this tip Tibold. It seems to be what I'm after, >>>>> though I just discovered that QAnimationGroup doesn't seem to be >>>>> supported in PySide. I got this error when I tried to create an >>>>> instance of it: >>>>> >>>>> NotImplementedError: 'QAnimationGroup' represents a C++ abstract >>>>> class and cannot be instantiated >>>>> >>>>> >>>>> I will try and add all widgets to one "page" widget (whatever that >>>>> may be, I need to find out yet), and then apply the animation to that. >>>>> Fingers crossed... >>>>> >>>>> Cheers, >>>>> frank >>>>> >>>>> >>>>> On 4/4/12 7:29 PM, Tibold Kandrai wrote: >>>>>> Hey! >>>>>> >>>>>> Try QtAnimation: >>>>>> http://qt-project.org/doc/qt-4.8/animation-overview.html >>>>>> >>>>>> I use it with in a QGraphicsWidget, but this should work everywhere AFAIR. >>>>>> >>>>>> Cheers, >>>>>> Tibold >>>>>> >>>>>> On 04/04/2012 06:46, Frank Rueter | OHUfx wrote: >>>>>>> Hi everyone, >>>>>>> >>>>>>> I'm very new to Qt/PySide and am wondering if it's possible to add an >>>>>>> animation effect to, let's say, QStackedLayout, for when the page >>>>>>> changes. I guess it'd something similar to the way the AppStore works. >>>>>>> >>>>>>> In this example I'd like to see the new button "push" the old button out >>>>>>> of view when the combobox changes: >>>>>>> http://pastebin.com/i5sFgQzE >>>>>>> >>>>>>> I'm happy to take a good ol' fashioned RTFM, I'm just having a hard time >>>>>>> finding the right bit of information out there. >>>>>>> >>>>>>> Any help would be greatly appreciated. >>>>>>> >>>>>>> Cheers, >>>>>>> frank >>>>>>> _______________________________________________ >>>>>>> PySide mailing list >>>>>>> PySide at qt-project.org >>>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> PySide mailing list >>>>>> PySide at qt-project.org >>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>> >>>>> >>>>> _______________________________________________ >>>>> PySide mailing list >>>>> PySide at qt-project.org >>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>> >>>> >>>> _______________________________________________ >>>> PySide mailing list >>>> PySide at qt-project.org >>>> http://lists.qt-project.org/mailman/listinfo/pyside >>> >>> -- >>> Tibold Kandrai, >>> CEO @ Dotz Team I/S, >>> Software developer, consultant >>> >>> >>> _______________________________________________ >>> PySide mailing list >>> PySide at qt-project.org >>> http://lists.qt-project.org/mailman/listinfo/pyside >> >> >> _______________________________________________ >> PySide mailing list >> PySide at qt-project.org >> http://lists.qt-project.org/mailman/listinfo/pyside > > > > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside -------------- next part -------------- An HTML attachment was scrubbed... URL: From frank at ohufx.com Sat Apr 7 01:55:19 2012 From: frank at ohufx.com (Frank Rueter | OHUfx) Date: Sat, 07 Apr 2012 11:55:19 +1200 Subject: [PySide] animate QStackedLayout? In-Reply-To: <4F7F5AA7.8060208@bluewin.ch> References: <4F7BD23A.2010208@ohufx.com> <4F7BF86E.7050105@gmail.com> <4F7E6B81.1090105@ohufx.com> <4F7E74FE.1020902@ohufx.com> <4F7E8D20.5000004@gmail.com> <4F7E9780.2030809@ohufx.com> <4F7F5AA7.8060208@bluewin.ch> Message-ID: <4F7F8267.4090100@ohufx.com> Aaron, this is awesome, thank you so much. It's not quite what I'm after but very close and will help me heaps to move forward! Thanks again! frank On 7/04/12 9:05 AM, Aaron Richiger wrote: > Hello Frank! > > For me, it seems, you are not really looking after a QTableWidget and > I guess also not a QTableView (if you don't want the headers and lines > etc.). So I just hacked some lines of code together (mostly edited > yours, quick and dirty style as usual, but should give you an idea). > Probably it's not what you are looking for, because I couldn't > understand all your wishes, but it could be interesting anyways for > other developers looking after an animated GUI (please forgive me the > quick and therefore bad layout, I like implementing more than moving > pixels around...): > > http://pastebin.com/jQtsf2tk > > You can show or hide a widget with the checkboxes and sort them with > the button. > > Hope it helps! > Aaron > > > > > > Am 06.04.2012 09:13, schrieb Frank Rueter | OHUfx: >> yes, I think I'm starting to get it, thanks. >> >> So here is a very rough and ugly test using a single animated table >> (feel free to laugh): >> http://pastebin.com/PbZ8ismH >> >> I am trying to see if it's feasible to stuff all my widgets into one >> big table, then animate the table's position so that only the >> requested column(s) are within the view according to which button is >> pushed on the left hand side. Obviously I'd have to hide the headers >> and lines etc. (no idea how to do that yet either). >> >> What do people think how best to approach this? The above doesn't >> feel right and I'd have to do a lot of hacking to make this look >> pretty (though the animation is easy to control as it's just one >> widget). Or should I rather create one table per button and move them >> around as a group (I guess I could hide the unwanted tables as well >> then). >> >> Or does anyone have completely different ideas how to tackle this? >> I'm sure there is a way more elegant solution. >> I'm still trying to stick to default QT stuff before I dive into Qt >> Quick and such. >> >> Thanks for all the help and pointers so far! >> >> frank >> >> >> On 4/6/12 6:28 PM, Tibold Kandrai wrote: >>> Hi! >>> >>> Exactly! Instead of QAnimationGroup you have to use >>> QParallelAnimationGroup >>> orQSequentialAnimationGroup >>> . >>> Or you can create your own group by subclassing QAnimationGroup if >>> you have special needs. :) >>> >>> Cheers, >>> Tibold >>> >>> On 06/04/2012 06:45, Frank Rueter | OHUfx wrote: >>>> I think I found the problem in the fact that it's an abstract class >>>> and not meant to be used directly. >>>> the joy of learning new stuff.... >>>> >>>> >>>> On 4/6/12 4:05 PM, Frank Rueter | OHUfx wrote: >>>>> Thanks again for this tip Tibold. It seems to be what I'm after, >>>>> though I just discovered that QAnimationGroup doesn't seem to be >>>>> supported in PySide. I got this error when I tried to create an >>>>> instance of it: >>>>> >>>>> NotImplementedError: 'QAnimationGroup' represents a C++ abstract >>>>> class and cannot be instantiated >>>>> >>>>> >>>>> I will try and add all widgets to one "page" widget (whatever that >>>>> may be, I need to find out yet), and then apply the animation to that. >>>>> Fingers crossed... >>>>> >>>>> Cheers, >>>>> frank >>>>> >>>>> >>>>> On 4/4/12 7:29 PM, Tibold Kandrai wrote: >>>>>> Hey! >>>>>> >>>>>> Try QtAnimation: >>>>>> http://qt-project.org/doc/qt-4.8/animation-overview.html >>>>>> >>>>>> I use it with in a QGraphicsWidget, but this should work everywhere AFAIR. >>>>>> >>>>>> Cheers, >>>>>> Tibold >>>>>> >>>>>> On 04/04/2012 06:46, Frank Rueter | OHUfx wrote: >>>>>>> Hi everyone, >>>>>>> >>>>>>> I'm very new to Qt/PySide and am wondering if it's possible to add an >>>>>>> animation effect to, let's say, QStackedLayout, for when the page >>>>>>> changes. I guess it'd something similar to the way the AppStore works. >>>>>>> >>>>>>> In this example I'd like to see the new button "push" the old button out >>>>>>> of view when the combobox changes: >>>>>>> http://pastebin.com/i5sFgQzE >>>>>>> >>>>>>> I'm happy to take a good ol' fashioned RTFM, I'm just having a hard time >>>>>>> finding the right bit of information out there. >>>>>>> >>>>>>> Any help would be greatly appreciated. >>>>>>> >>>>>>> Cheers, >>>>>>> frank >>>>>>> _______________________________________________ >>>>>>> PySide mailing list >>>>>>> PySide at qt-project.org >>>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> PySide mailing list >>>>>> PySide at qt-project.org >>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>> >>>>> >>>>> _______________________________________________ >>>>> PySide mailing list >>>>> PySide at qt-project.org >>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>> >>>> >>>> _______________________________________________ >>>> PySide mailing list >>>> PySide at qt-project.org >>>> http://lists.qt-project.org/mailman/listinfo/pyside >>> >>> -- >>> Tibold Kandrai, >>> CEO @ Dotz Team I/S, >>> Software developer, consultant >>> >>> >>> _______________________________________________ >>> PySide mailing list >>> PySide at qt-project.org >>> http://lists.qt-project.org/mailman/listinfo/pyside >> >> >> _______________________________________________ >> PySide mailing list >> PySide at qt-project.org >> http://lists.qt-project.org/mailman/listinfo/pyside > > > > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside -------------- next part -------------- An HTML attachment was scrubbed... URL: From frank at ohufx.com Sat Apr 7 02:00:53 2012 From: frank at ohufx.com (Frank Rueter | OHUfx) Date: Sat, 07 Apr 2012 12:00:53 +1200 Subject: [PySide] custom table sorting In-Reply-To: <4F7EBF69.2030400@risefx.com> References: <4F7E3DCB.9030201@ohufx.com> <4F7EBF69.2030400@risefx.com> Message-ID: <4F7F83B5.5030006@ohufx.com> Hi Sebastian, thanks again for your help. I couldn't get the sorting to work even though the widgets in each column were always the same type. You are probably totally right that this won't be very scalable, I just wanted to get a grip on it first before diving into the QTableView/QTableModel solution, which I think I won't be able to avoid. These tables can indeed grow very large. I shall read up on this though and try and do it properly. ;) Cheers, frank On 6/04/12 10:03 PM, Sebastian Elsner wrote: > Hi, > > assuming the checkboxes and the combo boxes are different data types > (bool, vs, string) and thus displayed in different columns, sorting > should happen automatically when you setSortingEnabled(True). Please > note that you have to disable sorting while inserting items because this > may lead to stringe behaviour. Also if you want to display checkboxes > these should be set by > QTableWidgetItem.setFlags(QTablewidgetItem.flags() | > Qt.ItemIsUSerCheckable)) and setCheckState() rather than doing a > QTableWidget.setCellWidget(), because this is way faster. The combooxes > can be inserted with setCellWidget, but be aware that you may run into > performance issues if you add a lot of them. > > Alternatively you could subclass the QTableWidgetItem and override the< > operator to provide your own sorting, which will be - of course - > solower because implemented in python. > > Finally when dealing with large datasets I would recommend going for the > true model/view approach with QTableView, QTableModel and > QStyledItemDelegate, but those are more hard to use. > > Cheers > > Sebastian > > > Am 06.04.2012 02:50, schrieb Frank Rueter | OHUfx: >> Hi guys, >> >> I'm working on a table that has ItemWidgets (comboBoxes, checkBoxes etc) >> in some cells and I'm trying to figure out how to write a custom sort >> behaviour that will enable me to sort the table by columns containing >> widgets using the respective widgets' current value (e.g. show all rows >> with a checked checkBox first, followed by all rows with an unchecked >> checkBox). >> >> Has anyone done this before? >> Any pointers would be fabulous! >> >> Cheers, >> frank >> >> _______________________________________________ >> PySide mailing list >> PySide at qt-project.org >> http://lists.qt-project.org/mailman/listinfo/pyside > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside From sebastian at risefx.com Sat Apr 7 11:27:23 2012 From: sebastian at risefx.com (Sebastian Elsner) Date: Sat, 07 Apr 2012 11:27:23 +0200 Subject: [PySide] custom table sorting In-Reply-To: <4F7F83B5.5030006@ohufx.com> References: <4F7E3DCB.9030201@ohufx.com> <4F7EBF69.2030400@risefx.com> <4F7F83B5.5030006@ohufx.com> Message-ID: <4F80087B.5070404@risefx.com> I recommend reading the appropriate chapters in this book: http://www.qtrac.eu/pyqtbook.html and have a look this ressource: http://www.yasinuludag.com/blog/ also download a version of PyQt, it has all original Qt examples (including the model view thingies) translated to python, which helps a lot and is a good starting point. Am 07.04.2012 02:00, schrieb Frank Rueter | OHUfx: > Hi Sebastian, > > thanks again for your help. I couldn't get the sorting to work even > though the widgets in each column were always the same type. > You are probably totally right that this won't be very scalable, I just > wanted to get a grip on it first before diving into the > QTableView/QTableModel solution, which I think I won't be able to avoid. > These tables can indeed grow very large. > I shall read up on this though and try and do it properly. ;) > > > Cheers, > frank > > > On 6/04/12 10:03 PM, Sebastian Elsner wrote: >> Hi, >> >> assuming the checkboxes and the combo boxes are different data types >> (bool, vs, string) and thus displayed in different columns, sorting >> should happen automatically when you setSortingEnabled(True). Please >> note that you have to disable sorting while inserting items because this >> may lead to stringe behaviour. Also if you want to display checkboxes >> these should be set by >> QTableWidgetItem.setFlags(QTablewidgetItem.flags() | >> Qt.ItemIsUSerCheckable)) and setCheckState() rather than doing a >> QTableWidget.setCellWidget(), because this is way faster. The combooxes >> can be inserted with setCellWidget, but be aware that you may run into >> performance issues if you add a lot of them. >> >> Alternatively you could subclass the QTableWidgetItem and override the< >> operator to provide your own sorting, which will be - of course - >> solower because implemented in python. >> >> Finally when dealing with large datasets I would recommend going for the >> true model/view approach with QTableView, QTableModel and >> QStyledItemDelegate, but those are more hard to use. >> >> Cheers >> >> Sebastian >> >> >> Am 06.04.2012 02:50, schrieb Frank Rueter | OHUfx: >>> Hi guys, >>> >>> I'm working on a table that has ItemWidgets (comboBoxes, checkBoxes etc) >>> in some cells and I'm trying to figure out how to write a custom sort >>> behaviour that will enable me to sort the table by columns containing >>> widgets using the respective widgets' current value (e.g. show all rows >>> with a checked checkBox first, followed by all rows with an unchecked >>> checkBox). >>> >>> Has anyone done this before? >>> Any pointers would be fabulous! >>> >>> Cheers, >>> frank >>> >>> _______________________________________________ >>> PySide mailing list >>> PySide at qt-project.org >>> http://lists.qt-project.org/mailman/listinfo/pyside >> _______________________________________________ >> PySide mailing list >> PySide at qt-project.org >> http://lists.qt-project.org/mailman/listinfo/pyside > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside From a.richi at bluewin.ch Sat Apr 7 17:23:57 2012 From: a.richi at bluewin.ch (Aaron Richiger) Date: Sat, 07 Apr 2012 17:23:57 +0200 Subject: [PySide] animate QStackedLayout? In-Reply-To: <4F8050DD.8050801@bluewin.ch> References: <4F8050DD.8050801@bluewin.ch> Message-ID: <4F805C0D.1020300@bluewin.ch> Hello Frank! I slightly changed my code to your new informations and added comments for better understanding;-)! I also changed the sorting method to show you a possibility to separe checked from unchecked checkboxes. Because I first thought, that multiple pages must be visible at once, I created two versions, but according to your mail, the second possibility will meet your requirements closer I guess. But the multi-version might be interesting for others: Mutliple pages visible: http://pastebin.com/hW0zeL4P Only one page visible: http://pastebin.com/cjn0UuA9 Easter-greetings Am 07.04.2012 01:51, schrieb Frank Rueter | OHUfx: > I agree, it does seem off, which is why I'm throwing it out here to > get some ideas on how to tackle this from more experienced peeps. > > I will try to clarify what I'm after: > The idea is to have a collection of buttons per category, let's say a > "page" of buttons. When the category is chosen via the buttons on the > left, the requested page with buttons slides into view pushing the > current one out of view. It's like an animated toolbox. > > I like your suggestion, will investigate. > > Cheers, > frank > > > > On 6/04/12 11:31 PM, Sebastian Elsner wrote: >> This Approach seems really off, Frank. I am not really getting what >> you want to do, maybe you can give us the specific purpose of this... >> What I could imagine is using a QScrollArea, which makes a >> QGridLayout scrollable. >> >> >> Am 06.04.2012 09:13, schrieb Frank Rueter | OHUfx: >>> yes, I think I'm starting to get it, thanks. >>> >>> So here is a very rough and ugly test using a single animated table >>> (feel free to laugh): >>> http://pastebin.com/PbZ8ismH >>> >>> I am trying to see if it's feasible to stuff all my widgets into one >>> big table, then animate the table's position so that only the >>> requested column(s) are within the view according to which button is >>> pushed on the left hand side. Obviously I'd have to hide the headers >>> and lines etc. (no idea how to do that yet either). >>> >>> What do people think how best to approach this? The above doesn't >>> feel right and I'd have to do a lot of hacking to make this look >>> pretty (though the animation is easy to control as it's just one >>> widget). Or should I rather create one table per button and move >>> them around as a group (I guess I could hide the unwanted tables as >>> well then). >>> >>> Or does anyone have completely different ideas how to tackle this? >>> I'm sure there is a way more elegant solution. >>> I'm still trying to stick to default QT stuff before I dive into Qt >>> Quick and such. >>> >>> Thanks for all the help and pointers so far! >>> >>> frank >>> >>> >>> On 4/6/12 6:28 PM, Tibold Kandrai wrote: >>>> Hi! >>>> >>>> Exactly! Instead of QAnimationGroup you have to use >>>> QParallelAnimationGroup >>>> orQSequentialAnimationGroup >>>> . >>>> Or you can create your own group by subclassing QAnimationGroup if >>>> you have special needs. :) >>>> >>>> Cheers, >>>> Tibold >>>> >>>> On 06/04/2012 06:45, Frank Rueter | OHUfx wrote: >>>>> I think I found the problem in the fact that it's an abstract >>>>> class and not meant to be used directly. >>>>> the joy of learning new stuff.... >>>>> >>>>> >>>>> On 4/6/12 4:05 PM, Frank Rueter | OHUfx wrote: >>>>>> Thanks again for this tip Tibold. It seems to be what I'm after, >>>>>> though I just discovered that QAnimationGroup doesn't seem to be >>>>>> supported in PySide. I got this error when I tried to create an >>>>>> instance of it: >>>>>> >>>>>> NotImplementedError: 'QAnimationGroup' represents a C++ abstract >>>>>> class and cannot be instantiated >>>>>> >>>>>> >>>>>> I will try and add all widgets to one "page" widget (whatever >>>>>> that may be, I need to find out yet), and then apply the >>>>>> animation to that. >>>>>> Fingers crossed... >>>>>> >>>>>> Cheers, >>>>>> frank >>>>>> >>>>>> >>>>>> On 4/4/12 7:29 PM, Tibold Kandrai wrote: >>>>>>> Hey! >>>>>>> >>>>>>> Try QtAnimation: >>>>>>> http://qt-project.org/doc/qt-4.8/animation-overview.html >>>>>>> >>>>>>> I use it with in a QGraphicsWidget, but this should work everywhere AFAIR. >>>>>>> >>>>>>> Cheers, >>>>>>> Tibold >>>>>>> >>>>>>> On 04/04/2012 06:46, Frank Rueter | OHUfx wrote: >>>>>>>> Hi everyone, >>>>>>>> >>>>>>>> I'm very new to Qt/PySide and am wondering if it's possible to add an >>>>>>>> animation effect to, let's say, QStackedLayout, for when the page >>>>>>>> changes. I guess it'd something similar to the way the AppStore works. >>>>>>>> >>>>>>>> In this example I'd like to see the new button "push" the old button out >>>>>>>> of view when the combobox changes: >>>>>>>> http://pastebin.com/i5sFgQzE >>>>>>>> >>>>>>>> I'm happy to take a good ol' fashioned RTFM, I'm just having a hard time >>>>>>>> finding the right bit of information out there. >>>>>>>> >>>>>>>> Any help would be greatly appreciated. >>>>>>>> >>>>>>>> Cheers, >>>>>>>> frank >>>>>>>> _______________________________________________ >>>>>>>> PySide mailing list >>>>>>>> PySide at qt-project.org >>>>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> PySide mailing list >>>>>>> PySide at qt-project.org >>>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> PySide mailing list >>>>>> PySide at qt-project.org >>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>> >>>>> >>>>> _______________________________________________ >>>>> PySide mailing list >>>>> PySide at qt-project.org >>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>> >>>> -- >>>> Tibold Kandrai, >>>> CEO @ Dotz Team I/S, >>>> Software developer, consultant >>>> >>>> >>>> _______________________________________________ >>>> PySide mailing list >>>> PySide at qt-project.org >>>> http://lists.qt-project.org/mailman/listinfo/pyside >>> >>> >>> _______________________________________________ >>> PySide mailing list >>> PySide at qt-project.org >>> http://lists.qt-project.org/mailman/listinfo/pyside >> >> >> >> _______________________________________________ >> PySide mailing list >> PySide at qt-project.org >> http://lists.qt-project.org/mailman/listinfo/pyside > > > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside -------------- next part -------------- An HTML attachment was scrubbed... URL: From juande at jdmanjon.net Sat Apr 7 19:47:02 2012 From: juande at jdmanjon.net (Juande Manjon) Date: Sat, 07 Apr 2012 19:47:02 +0200 Subject: [PySide] animate QStackedLayout? In-Reply-To: <4F805C0D.1020300@bluewin.ch> References: <4F8050DD.8050801@bluewin.ch> <4F805C0D.1020300@bluewin.ch> Message-ID: <4F807D96.5080909@jdmanjon.net> Hi Aaron, Pretty cool your solutions! Just a comment about animated_widgets_with_only_one_widget, there is an visibility issue when window is resize. Happy Easter! Juande > Hello Frank! > > I slightly changed my code to your new informations and added comments > for better understanding;-)! I also changed the sorting method to show > you a possibility to separe checked from unchecked checkboxes. Because > I first thought, that multiple pages must be visible at once, I > created two versions, but according to your mail, the second > possibility will meet your requirements closer I guess. But the > multi-version might be interesting for others: > > Mutliple pages visible: > http://pastebin.com/hW0zeL4P > > Only one page visible: > http://pastebin.com/cjn0UuA9 > > Easter-greetings > > > > > > > > > Am 07.04.2012 01:51, schrieb Frank Rueter | OHUfx: >> I agree, it does seem off, which is why I'm throwing it out here to >> get some ideas on how to tackle this from more experienced peeps. >> >> I will try to clarify what I'm after: >> The idea is to have a collection of buttons per category, let's say a >> "page" of buttons. When the category is chosen via the buttons on the >> left, the requested page with buttons slides into view pushing the >> current one out of view. It's like an animated toolbox. >> >> I like your suggestion, will investigate. >> >> Cheers, >> frank >> >> >> >> On 6/04/12 11:31 PM, Sebastian Elsner wrote: >>> This Approach seems really off, Frank. I am not really getting what >>> you want to do, maybe you can give us the specific purpose of >>> this... What I could imagine is using a QScrollArea, which makes a >>> QGridLayout scrollable. >>> >>> >>> Am 06.04.2012 09:13, schrieb Frank Rueter | OHUfx: >>>> yes, I think I'm starting to get it, thanks. >>>> >>>> So here is a very rough and ugly test using a single animated table >>>> (feel free to laugh): >>>> http://pastebin.com/PbZ8ismH >>>> >>>> I am trying to see if it's feasible to stuff all my widgets into >>>> one big table, then animate the table's position so that only the >>>> requested column(s) are within the view according to which button >>>> is pushed on the left hand side. Obviously I'd have to hide the >>>> headers and lines etc. (no idea how to do that yet either). >>>> >>>> What do people think how best to approach this? The above doesn't >>>> feel right and I'd have to do a lot of hacking to make this look >>>> pretty (though the animation is easy to control as it's just one >>>> widget). Or should I rather create one table per button and move >>>> them around as a group (I guess I could hide the unwanted tables as >>>> well then). >>>> >>>> Or does anyone have completely different ideas how to tackle this? >>>> I'm sure there is a way more elegant solution. >>>> I'm still trying to stick to default QT stuff before I dive into >>>> Qt Quick and such. >>>> >>>> Thanks for all the help and pointers so far! >>>> >>>> frank >>>> >>>> >>>> On 4/6/12 6:28 PM, Tibold Kandrai wrote: >>>>> Hi! >>>>> >>>>> Exactly! Instead of QAnimationGroup you have to use >>>>> QParallelAnimationGroup >>>>> orQSequentialAnimationGroup >>>>> . >>>>> Or you can create your own group by subclassing QAnimationGroup if >>>>> you have special needs. :) >>>>> >>>>> Cheers, >>>>> Tibold >>>>> >>>>> On 06/04/2012 06:45, Frank Rueter | OHUfx wrote: >>>>>> I think I found the problem in the fact that it's an abstract >>>>>> class and not meant to be used directly. >>>>>> the joy of learning new stuff.... >>>>>> >>>>>> >>>>>> On 4/6/12 4:05 PM, Frank Rueter | OHUfx wrote: >>>>>>> Thanks again for this tip Tibold. It seems to be what I'm after, >>>>>>> though I just discovered that QAnimationGroup doesn't seem to be >>>>>>> supported in PySide. I got this error when I tried to create an >>>>>>> instance of it: >>>>>>> >>>>>>> NotImplementedError: 'QAnimationGroup' represents a C++ abstract >>>>>>> class and cannot be instantiated >>>>>>> >>>>>>> >>>>>>> I will try and add all widgets to one "page" widget (whatever >>>>>>> that may be, I need to find out yet), and then apply the >>>>>>> animation to that. >>>>>>> Fingers crossed... >>>>>>> >>>>>>> Cheers, >>>>>>> frank >>>>>>> >>>>>>> >>>>>>> On 4/4/12 7:29 PM, Tibold Kandrai wrote: >>>>>>>> Hey! >>>>>>>> >>>>>>>> Try QtAnimation: >>>>>>>> http://qt-project.org/doc/qt-4.8/animation-overview.html >>>>>>>> >>>>>>>> I use it with in a QGraphicsWidget, but this should work everywhere AFAIR. >>>>>>>> >>>>>>>> Cheers, >>>>>>>> Tibold >>>>>>>> >>>>>>>> On 04/04/2012 06:46, Frank Rueter | OHUfx wrote: >>>>>>>>> Hi everyone, >>>>>>>>> >>>>>>>>> I'm very new to Qt/PySide and am wondering if it's possible to add an >>>>>>>>> animation effect to, let's say, QStackedLayout, for when the page >>>>>>>>> changes. I guess it'd something similar to the way the AppStore works. >>>>>>>>> >>>>>>>>> In this example I'd like to see the new button "push" the old button out >>>>>>>>> of view when the combobox changes: >>>>>>>>> http://pastebin.com/i5sFgQzE >>>>>>>>> >>>>>>>>> I'm happy to take a good ol' fashioned RTFM, I'm just having a hard time >>>>>>>>> finding the right bit of information out there. >>>>>>>>> >>>>>>>>> Any help would be greatly appreciated. >>>>>>>>> >>>>>>>>> Cheers, >>>>>>>>> frank >>>>>>>>> _______________________________________________ >>>>>>>>> PySide mailing list >>>>>>>>> PySide at qt-project.org >>>>>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> PySide mailing list >>>>>>>> PySide at qt-project.org >>>>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> PySide mailing list >>>>>>> PySide at qt-project.org >>>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> PySide mailing list >>>>>> PySide at qt-project.org >>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>> >>>>> -- >>>>> Tibold Kandrai, >>>>> CEO @ Dotz Team I/S, >>>>> Software developer, consultant >>>>> >>>>> >>>>> _______________________________________________ >>>>> PySide mailing list >>>>> PySide at qt-project.org >>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>> >>>> >>>> _______________________________________________ >>>> PySide mailing list >>>> PySide at qt-project.org >>>> http://lists.qt-project.org/mailman/listinfo/pyside >>> >>> >>> >>> _______________________________________________ >>> PySide mailing list >>> PySide at qt-project.org >>> http://lists.qt-project.org/mailman/listinfo/pyside >> >> >> _______________________________________________ >> PySide mailing list >> PySide at qt-project.org >> http://lists.qt-project.org/mailman/listinfo/pyside > > > > > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside -------------- next part -------------- An HTML attachment was scrubbed... URL: From a.richi at bluewin.ch Sat Apr 7 20:13:33 2012 From: a.richi at bluewin.ch (Aaron Richiger) Date: Sat, 07 Apr 2012 20:13:33 +0200 Subject: [PySide] animate QStackedLayout? In-Reply-To: <4F807D96.5080909@jdmanjon.net> References: <4F8050DD.8050801@bluewin.ch> <4F805C0D.1020300@bluewin.ch> <4F807D96.5080909@jdmanjon.net> Message-ID: <4F8083CD.3010909@bluewin.ch> Thanks Juande for pointing this out. Fixed it in the following version at pastebin: Only one page visible: http://pastebin.com/kP1rdLHx Good luck with finding the eggs! > Hi Aaron, > > Pretty cool your solutions! > > Just a comment about animated_widgets_with_only_one_widget, there is > an visibility issue when window is resize. > > Happy Easter! > Juande > >> Hello Frank! >> >> I slightly changed my code to your new informations and added >> comments for better understanding;-)! I also changed the sorting >> method to show you a possibility to separe checked from unchecked >> checkboxes. Because I first thought, that multiple pages must be >> visible at once, I created two versions, but according to your mail, >> the second possibility will meet your requirements closer I guess. >> But the multi-version might be interesting for others: >> >> Mutliple pages visible: >> http://pastebin.com/hW0zeL4P >> >> Only one page visible: >> http://pastebin.com/cjn0UuA9 >> >> Easter-greetings >> >> >> >> >> >> >> >> >> Am 07.04.2012 01:51, schrieb Frank Rueter | OHUfx: >>> I agree, it does seem off, which is why I'm throwing it out here to >>> get some ideas on how to tackle this from more experienced peeps. >>> >>> I will try to clarify what I'm after: >>> The idea is to have a collection of buttons per category, let's say >>> a "page" of buttons. When the category is chosen via the buttons on >>> the left, the requested page with buttons slides into view pushing >>> the current one out of view. It's like an animated toolbox. >>> >>> I like your suggestion, will investigate. >>> >>> Cheers, >>> frank >>> >>> >>> >>> On 6/04/12 11:31 PM, Sebastian Elsner wrote: >>>> This Approach seems really off, Frank. I am not really getting what >>>> you want to do, maybe you can give us the specific purpose of >>>> this... What I could imagine is using a QScrollArea, which makes a >>>> QGridLayout scrollable. >>>> >>>> >>>> Am 06.04.2012 09:13, schrieb Frank Rueter | OHUfx: >>>>> yes, I think I'm starting to get it, thanks. >>>>> >>>>> So here is a very rough and ugly test using a single animated >>>>> table (feel free to laugh): >>>>> http://pastebin.com/PbZ8ismH >>>>> >>>>> I am trying to see if it's feasible to stuff all my widgets into >>>>> one big table, then animate the table's position so that only the >>>>> requested column(s) are within the view according to which button >>>>> is pushed on the left hand side. Obviously I'd have to hide the >>>>> headers and lines etc. (no idea how to do that yet either). >>>>> >>>>> What do people think how best to approach this? The above doesn't >>>>> feel right and I'd have to do a lot of hacking to make this look >>>>> pretty (though the animation is easy to control as it's just one >>>>> widget). Or should I rather create one table per button and move >>>>> them around as a group (I guess I could hide the unwanted tables >>>>> as well then). >>>>> >>>>> Or does anyone have completely different ideas how to tackle this? >>>>> I'm sure there is a way more elegant solution. >>>>> I'm still trying to stick to default QT stuff before I dive into >>>>> Qt Quick and such. >>>>> >>>>> Thanks for all the help and pointers so far! >>>>> >>>>> frank >>>>> >>>>> >>>>> On 4/6/12 6:28 PM, Tibold Kandrai wrote: >>>>>> Hi! >>>>>> >>>>>> Exactly! Instead of QAnimationGroup you have to use >>>>>> QParallelAnimationGroup >>>>>> orQSequentialAnimationGroup >>>>>> . >>>>>> Or you can create your own group by subclassing QAnimationGroup >>>>>> if you have special needs. :) >>>>>> >>>>>> Cheers, >>>>>> Tibold >>>>>> >>>>>> On 06/04/2012 06:45, Frank Rueter | OHUfx wrote: >>>>>>> I think I found the problem in the fact that it's an abstract >>>>>>> class and not meant to be used directly. >>>>>>> the joy of learning new stuff.... >>>>>>> >>>>>>> >>>>>>> On 4/6/12 4:05 PM, Frank Rueter | OHUfx wrote: >>>>>>>> Thanks again for this tip Tibold. It seems to be what I'm >>>>>>>> after, though I just discovered that QAnimationGroup doesn't >>>>>>>> seem to be supported in PySide. I got this error when I tried >>>>>>>> to create an instance of it: >>>>>>>> >>>>>>>> NotImplementedError: 'QAnimationGroup' represents a C++ >>>>>>>> abstract class and cannot be instantiated >>>>>>>> >>>>>>>> >>>>>>>> I will try and add all widgets to one "page" widget (whatever >>>>>>>> that may be, I need to find out yet), and then apply the >>>>>>>> animation to that. >>>>>>>> Fingers crossed... >>>>>>>> >>>>>>>> Cheers, >>>>>>>> frank >>>>>>>> >>>>>>>> >>>>>>>> On 4/4/12 7:29 PM, Tibold Kandrai wrote: >>>>>>>>> Hey! >>>>>>>>> >>>>>>>>> Try QtAnimation: >>>>>>>>> http://qt-project.org/doc/qt-4.8/animation-overview.html >>>>>>>>> >>>>>>>>> I use it with in a QGraphicsWidget, but this should work everywhere AFAIR. >>>>>>>>> >>>>>>>>> Cheers, >>>>>>>>> Tibold >>>>>>>>> >>>>>>>>> On 04/04/2012 06:46, Frank Rueter | OHUfx wrote: >>>>>>>>>> Hi everyone, >>>>>>>>>> >>>>>>>>>> I'm very new to Qt/PySide and am wondering if it's possible to add an >>>>>>>>>> animation effect to, let's say, QStackedLayout, for when the page >>>>>>>>>> changes. I guess it'd something similar to the way the AppStore works. >>>>>>>>>> >>>>>>>>>> In this example I'd like to see the new button "push" the old button out >>>>>>>>>> of view when the combobox changes: >>>>>>>>>> http://pastebin.com/i5sFgQzE >>>>>>>>>> >>>>>>>>>> I'm happy to take a good ol' fashioned RTFM, I'm just having a hard time >>>>>>>>>> finding the right bit of information out there. >>>>>>>>>> >>>>>>>>>> Any help would be greatly appreciated. >>>>>>>>>> >>>>>>>>>> Cheers, >>>>>>>>>> frank >>>>>>>>>> _______________________________________________ >>>>>>>>>> PySide mailing list >>>>>>>>>> PySide at qt-project.org >>>>>>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>>>>>> >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> PySide mailing list >>>>>>>>> PySide at qt-project.org >>>>>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> PySide mailing list >>>>>>>> PySide at qt-project.org >>>>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> PySide mailing list >>>>>>> PySide at qt-project.org >>>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>>> >>>>>> -- >>>>>> Tibold Kandrai, >>>>>> CEO @ Dotz Team I/S, >>>>>> Software developer, consultant >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> PySide mailing list >>>>>> PySide at qt-project.org >>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>> >>>>> >>>>> _______________________________________________ >>>>> PySide mailing list >>>>> PySide at qt-project.org >>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>> >>>> >>>> >>>> _______________________________________________ >>>> PySide mailing list >>>> PySide at qt-project.org >>>> http://lists.qt-project.org/mailman/listinfo/pyside >>> >>> >>> _______________________________________________ >>> PySide mailing list >>> PySide at qt-project.org >>> http://lists.qt-project.org/mailman/listinfo/pyside >> >> >> >> >> _______________________________________________ >> PySide mailing list >> PySide at qt-project.org >> http://lists.qt-project.org/mailman/listinfo/pyside > -------------- next part -------------- An HTML attachment was scrubbed... URL: From frank at ohufx.com Sun Apr 8 00:23:36 2012 From: frank at ohufx.com (Frank Rueter | OHUfx) Date: Sun, 08 Apr 2012 10:23:36 +1200 Subject: [PySide] animate QStackedLayout? In-Reply-To: <4F805C0D.1020300@bluewin.ch> References: <4F8050DD.8050801@bluewin.ch> <4F805C0D.1020300@bluewin.ch> Message-ID: <4F80BE68.6060903@ohufx.com> Hi Aaron, wow, that will give me something to think about/learn, thanks so much! The sortable table and the animated pages are actually two different projects, but this should help heaps understanding a lot more about PySide/QT. Happy Easter! frank On 8/04/12 3:23 AM, Aaron Richiger wrote: > Hello Frank! > > I slightly changed my code to your new informations and added comments > for better understanding;-)! I also changed the sorting method to show > you a possibility to separe checked from unchecked checkboxes. Because > I first thought, that multiple pages must be visible at once, I > created two versions, but according to your mail, the second > possibility will meet your requirements closer I guess. But the > multi-version might be interesting for others: > > Mutliple pages visible: > http://pastebin.com/hW0zeL4P > > Only one page visible: > http://pastebin.com/cjn0UuA9 > > Easter-greetings > > > > > > > > > Am 07.04.2012 01:51, schrieb Frank Rueter | OHUfx: >> I agree, it does seem off, which is why I'm throwing it out here to >> get some ideas on how to tackle this from more experienced peeps. >> >> I will try to clarify what I'm after: >> The idea is to have a collection of buttons per category, let's say a >> "page" of buttons. When the category is chosen via the buttons on the >> left, the requested page with buttons slides into view pushing the >> current one out of view. It's like an animated toolbox. >> >> I like your suggestion, will investigate. >> >> Cheers, >> frank >> >> >> >> On 6/04/12 11:31 PM, Sebastian Elsner wrote: >>> This Approach seems really off, Frank. I am not really getting what >>> you want to do, maybe you can give us the specific purpose of >>> this... What I could imagine is using a QScrollArea, which makes a >>> QGridLayout scrollable. >>> >>> >>> Am 06.04.2012 09:13, schrieb Frank Rueter | OHUfx: >>>> yes, I think I'm starting to get it, thanks. >>>> >>>> So here is a very rough and ugly test using a single animated table >>>> (feel free to laugh): >>>> http://pastebin.com/PbZ8ismH >>>> >>>> I am trying to see if it's feasible to stuff all my widgets into >>>> one big table, then animate the table's position so that only the >>>> requested column(s) are within the view according to which button >>>> is pushed on the left hand side. Obviously I'd have to hide the >>>> headers and lines etc. (no idea how to do that yet either). >>>> >>>> What do people think how best to approach this? The above doesn't >>>> feel right and I'd have to do a lot of hacking to make this look >>>> pretty (though the animation is easy to control as it's just one >>>> widget). Or should I rather create one table per button and move >>>> them around as a group (I guess I could hide the unwanted tables as >>>> well then). >>>> >>>> Or does anyone have completely different ideas how to tackle this? >>>> I'm sure there is a way more elegant solution. >>>> I'm still trying to stick to default QT stuff before I dive into >>>> Qt Quick and such. >>>> >>>> Thanks for all the help and pointers so far! >>>> >>>> frank >>>> >>>> >>>> On 4/6/12 6:28 PM, Tibold Kandrai wrote: >>>>> Hi! >>>>> >>>>> Exactly! Instead of QAnimationGroup you have to use >>>>> QParallelAnimationGroup >>>>> orQSequentialAnimationGroup >>>>> . >>>>> Or you can create your own group by subclassing QAnimationGroup if >>>>> you have special needs. :) >>>>> >>>>> Cheers, >>>>> Tibold >>>>> >>>>> On 06/04/2012 06:45, Frank Rueter | OHUfx wrote: >>>>>> I think I found the problem in the fact that it's an abstract >>>>>> class and not meant to be used directly. >>>>>> the joy of learning new stuff.... >>>>>> >>>>>> >>>>>> On 4/6/12 4:05 PM, Frank Rueter | OHUfx wrote: >>>>>>> Thanks again for this tip Tibold. It seems to be what I'm after, >>>>>>> though I just discovered that QAnimationGroup doesn't seem to be >>>>>>> supported in PySide. I got this error when I tried to create an >>>>>>> instance of it: >>>>>>> >>>>>>> NotImplementedError: 'QAnimationGroup' represents a C++ abstract >>>>>>> class and cannot be instantiated >>>>>>> >>>>>>> >>>>>>> I will try and add all widgets to one "page" widget (whatever >>>>>>> that may be, I need to find out yet), and then apply the >>>>>>> animation to that. >>>>>>> Fingers crossed... >>>>>>> >>>>>>> Cheers, >>>>>>> frank >>>>>>> >>>>>>> >>>>>>> On 4/4/12 7:29 PM, Tibold Kandrai wrote: >>>>>>>> Hey! >>>>>>>> >>>>>>>> Try QtAnimation: >>>>>>>> http://qt-project.org/doc/qt-4.8/animation-overview.html >>>>>>>> >>>>>>>> I use it with in a QGraphicsWidget, but this should work everywhere AFAIR. >>>>>>>> >>>>>>>> Cheers, >>>>>>>> Tibold >>>>>>>> >>>>>>>> On 04/04/2012 06:46, Frank Rueter | OHUfx wrote: >>>>>>>>> Hi everyone, >>>>>>>>> >>>>>>>>> I'm very new to Qt/PySide and am wondering if it's possible to add an >>>>>>>>> animation effect to, let's say, QStackedLayout, for when the page >>>>>>>>> changes. I guess it'd something similar to the way the AppStore works. >>>>>>>>> >>>>>>>>> In this example I'd like to see the new button "push" the old button out >>>>>>>>> of view when the combobox changes: >>>>>>>>> http://pastebin.com/i5sFgQzE >>>>>>>>> >>>>>>>>> I'm happy to take a good ol' fashioned RTFM, I'm just having a hard time >>>>>>>>> finding the right bit of information out there. >>>>>>>>> >>>>>>>>> Any help would be greatly appreciated. >>>>>>>>> >>>>>>>>> Cheers, >>>>>>>>> frank >>>>>>>>> _______________________________________________ >>>>>>>>> PySide mailing list >>>>>>>>> PySide at qt-project.org >>>>>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> PySide mailing list >>>>>>>> PySide at qt-project.org >>>>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> PySide mailing list >>>>>>> PySide at qt-project.org >>>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> PySide mailing list >>>>>> PySide at qt-project.org >>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>> >>>>> -- >>>>> Tibold Kandrai, >>>>> CEO @ Dotz Team I/S, >>>>> Software developer, consultant >>>>> >>>>> >>>>> _______________________________________________ >>>>> PySide mailing list >>>>> PySide at qt-project.org >>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>> >>>> >>>> _______________________________________________ >>>> PySide mailing list >>>> PySide at qt-project.org >>>> http://lists.qt-project.org/mailman/listinfo/pyside >>> >>> >>> >>> _______________________________________________ >>> PySide mailing list >>> PySide at qt-project.org >>> http://lists.qt-project.org/mailman/listinfo/pyside >> >> >> _______________________________________________ >> PySide mailing list >> PySide at qt-project.org >> http://lists.qt-project.org/mailman/listinfo/pyside > > > > > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside -------------- next part -------------- An HTML attachment was scrubbed... URL: From frank at ohufx.com Sun Apr 8 00:23:58 2012 From: frank at ohufx.com (Frank Rueter | OHUfx) Date: Sun, 08 Apr 2012 10:23:58 +1200 Subject: [PySide] custom table sorting In-Reply-To: <4F80087B.5070404@risefx.com> References: <4F7E3DCB.9030201@ohufx.com> <4F7EBF69.2030400@risefx.com> <4F7F83B5.5030006@ohufx.com> <4F80087B.5070404@risefx.com> Message-ID: <4F80BE7E.9080603@ohufx.com> will do, thanks On 7/04/12 9:27 PM, Sebastian Elsner wrote: > I recommend reading the appropriate chapters in this book: > http://www.qtrac.eu/pyqtbook.html > and have a look this ressource: http://www.yasinuludag.com/blog/ > also download a version of PyQt, it has all original Qt examples > (including the model view thingies) translated to python, which helps a > lot and is a good starting point. > > Am 07.04.2012 02:00, schrieb Frank Rueter | OHUfx: >> Hi Sebastian, >> >> thanks again for your help. I couldn't get the sorting to work even >> though the widgets in each column were always the same type. >> You are probably totally right that this won't be very scalable, I just >> wanted to get a grip on it first before diving into the >> QTableView/QTableModel solution, which I think I won't be able to avoid. >> These tables can indeed grow very large. >> I shall read up on this though and try and do it properly. ;) >> >> >> Cheers, >> frank >> >> >> On 6/04/12 10:03 PM, Sebastian Elsner wrote: >>> Hi, >>> >>> assuming the checkboxes and the combo boxes are different data types >>> (bool, vs, string) and thus displayed in different columns, sorting >>> should happen automatically when you setSortingEnabled(True). Please >>> note that you have to disable sorting while inserting items because this >>> may lead to stringe behaviour. Also if you want to display checkboxes >>> these should be set by >>> QTableWidgetItem.setFlags(QTablewidgetItem.flags() | >>> Qt.ItemIsUSerCheckable)) and setCheckState() rather than doing a >>> QTableWidget.setCellWidget(), because this is way faster. The combooxes >>> can be inserted with setCellWidget, but be aware that you may run into >>> performance issues if you add a lot of them. >>> >>> Alternatively you could subclass the QTableWidgetItem and override the< >>> operator to provide your own sorting, which will be - of course - >>> solower because implemented in python. >>> >>> Finally when dealing with large datasets I would recommend going for the >>> true model/view approach with QTableView, QTableModel and >>> QStyledItemDelegate, but those are more hard to use. >>> >>> Cheers >>> >>> Sebastian >>> >>> >>> Am 06.04.2012 02:50, schrieb Frank Rueter | OHUfx: >>>> Hi guys, >>>> >>>> I'm working on a table that has ItemWidgets (comboBoxes, checkBoxes etc) >>>> in some cells and I'm trying to figure out how to write a custom sort >>>> behaviour that will enable me to sort the table by columns containing >>>> widgets using the respective widgets' current value (e.g. show all rows >>>> with a checked checkBox first, followed by all rows with an unchecked >>>> checkBox). >>>> >>>> Has anyone done this before? >>>> Any pointers would be fabulous! >>>> >>>> Cheers, >>>> frank >>>> >>>> _______________________________________________ >>>> PySide mailing list >>>> PySide at qt-project.org >>>> http://lists.qt-project.org/mailman/listinfo/pyside >>> _______________________________________________ >>> PySide mailing list >>> PySide at qt-project.org >>> http://lists.qt-project.org/mailman/listinfo/pyside >> _______________________________________________ >> PySide mailing list >> PySide at qt-project.org >> http://lists.qt-project.org/mailman/listinfo/pyside > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside From frank at ohufx.com Mon Apr 2 02:34:55 2012 From: frank at ohufx.com (Frank Rueter | OHUfx) Date: Mon, 02 Apr 2012 12:34:55 +1200 Subject: [PySide] how to sort QTableWidget when cell widgets are used? Message-ID: <4F78F42F.4040904@ohufx.com> Hi everyone, I'm pretty new to QT/Pyside and am trying to create a simple table that has checkboxes and dropdown menus for cell widgets. Now I'm wondering how I could sort the respective columns that contain such widgets (sorting by their respective values). Here is an example of the code I've got, which gives you a string field (default), a dropdown and a checkbox widget for each row. I'd like to be able to sort all three columns: http://pastebin.com/LQzEQghz Any help would be greatly appreciated! Cheers, frank From abarzuaf at gmail.com Thu Apr 5 00:14:28 2012 From: abarzuaf at gmail.com (craf) Date: Wed, 04 Apr 2012 19:14:28 -0300 Subject: [PySide] Passing parameter from one class to an external function Message-ID: <1333577668.1767.5.camel@cristian> Hi Everyone!. Recently start with Pyside and I would like to know how I can call the function greetings from within the Form class, passing the self argument. My Code:--------------------------------------------------- import sys from PySide.QtCore import * from PySide.QtGui import * class Form(QDialog): def __init__(self, parent=None): QDialog.__init__(self, parent=None) self.edit = QLineEdit("Write my name here") self.button = QPushButton("Show Greetings") self.layout = QVBoxLayout() self.layout.addWidget(self.edit) self.layout.addWidget(self.button) self.setLayout(self.layout) self.button.clicked.connect(greetings) def greetings(self): print ("Hello %s" % self.edit.text()) if __name__ == '__main__': app = QApplication(sys.argv) form = Form() form.show() sys.exit(app.exec_()) ---------------------------------------------------- I try with: self.button.clicked.connect(greetings) self.button.clicked.connect(lambda e: greetings(self)) self.button.clicked.connect(lambda e, self=self:greetings(self)) but, nothing. I appreciate any information Best Regards Cris From alberto.soto at lmsintl.com Sun Apr 8 19:19:30 2012 From: alberto.soto at lmsintl.com (Alberto Soto) Date: Sun, 8 Apr 2012 19:19:30 +0200 Subject: [PySide] Passing parameter from one class to an external function In-Reply-To: <1333577668.1767.5.camel@cristian> References: <1333577668.1767.5.camel@cristian> Message-ID: <405C1CC9FAF496428CDF79BE775E05B7A41CD9867D@ROAP-EXMSG01.lmsintl.com> Hi Cris, Welcome to Pyside programming! I do not know what you intend to do, but based on your example I can think of 2 main options and a 3rd option that is simply a lambda version of the 2nd one. Here is the example code: import sys from PySide import QtCore from PySide import QtGui class Form(QtGui.QDialog): greetings = QtCore.Signal(str) def __init__(self, parent=None): QtGui.QDialog.__init__(self, parent=None) self.edit = QtGui.QLineEdit("Write my name here") self.button = QtGui.QPushButton("Show Greetings 1") self.special_button = QtGui.QPushButton("Show Greetings 2") self.lambda_button = QtGui.QPushButton("Show Greetings 3") self.layout = QtGui.QVBoxLayout() self.layout.addWidget(self.edit) self.layout.addWidget(self.button) self.layout.addWidget(self.special_button) self.layout.addWidget(self.lambda_button) self.setLayout(self.layout) # option 1 self.button.clicked.connect(self.greetings) # option 2 def lambdaGReetings (): greetings(self) self.special_button.clicked.connect(lambdaGReetings) # option 3 self.lambda_button.clicked.connect(lambda: greetings(self)) def greetings (self): greetings(self) def greetings(self): print ("Hello %s" % self.edit.text()) if __name__ == '__main__': app = QtGui.QApplication(sys.argv) form = Form() form.show() sys.exit(app.exec_()) Option 1 implies that something has to be done before or after calling the greetings option inside your class. If, you just want to call the greetings and nothing else, you can define a local function as I did in option 2. You can also do this by using the lambda function, though I personally prefer defining functions. self.button.clicked.connect(greetings) => You are not passing the self argument is passed self.button.clicked.connect(lambda e: greetings(self)) => Lambda is expecting a "e" argument, but the button clicked signal will not give one. For it to send an argument you should explicitlly call the clicked signal version that cointains a bool argument: # this modified version will work self.lambda_button.clicked[bool].connect(lambda e: greetings(self)) self.button.clicked.connect(lambda e, self=self:greetings(self)) => => you do not need to define self, because it is already abailable in the scope. I hope this helps and that I was clear. Best regards, ASO -----Original Message----- From: pyside-bounces+alberto.soto=lmsintl.com at qt-project.org [mailto:pyside-bounces+alberto.soto=lmsintl.com at qt-project.org] On Behalf Of craf Sent: jeudi 5 avril 2012 00:14 To: pyside at lists.pyside.org Subject: [PySide] Passing parameter from one class to an external function Hi Everyone!. Recently start with Pyside and I would like to know how I can call the function greetings from within the Form class, passing the self argument. My Code:--------------------------------------------------- import sys from PySide.QtCore import * from PySide.QtGui import * class Form(QDialog): def __init__(self, parent=None): QDialog.__init__(self, parent=None) self.edit = QLineEdit("Write my name here") self.button = QPushButton("Show Greetings") self.layout = QVBoxLayout() self.layout.addWidget(self.edit) self.layout.addWidget(self.button) self.setLayout(self.layout) self.button.clicked.connect(greetings) def greetings(self): print ("Hello %s" % self.edit.text()) if __name__ == '__main__': app = QApplication(sys.argv) form = Form() form.show() sys.exit(app.exec_()) ---------------------------------------------------- I try with: self.button.clicked.connect(greetings) self.button.clicked.connect(lambda e: greetings(self)) self.button.clicked.connect(lambda e, self=self:greetings(self)) but, nothing. I appreciate any information Best Regards Cris _______________________________________________ PySide mailing list PySide at qt-project.org http://lists.qt-project.org/mailman/listinfo/pyside From frank at ohufx.com Mon Apr 9 09:21:53 2012 From: frank at ohufx.com (Frank Rueter | OHUfx) Date: Mon, 09 Apr 2012 19:21:53 +1200 Subject: [PySide] animate QStackedLayout? In-Reply-To: <4F8083CD.3010909@bluewin.ch> References: <4F8050DD.8050801@bluewin.ch> <4F805C0D.1020300@bluewin.ch> <4F807D96.5080909@jdmanjon.net> <4F8083CD.3010909@bluewin.ch> Message-ID: <4F828E11.50503@ohufx.com> Hi Aaron, I've modified your example code in an attempt to make it dynamic based on a given data set. The data is a nested dictionary of this form: data = dict( containerA= ( dict(CatAA=['A1', 'B1', 'C1'], CatAB=['A2', 'B2', 'C2'], CatAC=['A3', 'B3', 'C3'])), containerB= ( dict(CatBA=['A4', 'B4', 'C4'], CatBB=['A5', 'B5', 'C5'], CatBC=['A6', 'B6', 'C6'])), containerC= ( dict(CatCA=['A7', 'B7', 'C7'], CatCB=['A8', 'B8', 'C8'], CatCC=['A9', 'B9', 'C9']))) I now have to create buttons dynamically based on how the containers and categories in this data set (and eventually figure out how to also take the categories' contents into account and generate buttons for those as well, which can be controlled by Animator instance). At the moment I'm running into the problem that when I create an instance of a "WidgetPage" inside a loop and hand it over to your Animator (see line 113), the bindings go all wrong of course and the pages all end up at the same memory address, thus overwriting each other. I tried copy.deepcopy (see line 111) but that seems to barf with class instances. Here is my full code: http://pastebin.com/txzstwJV Any ideas? Cheers and thanks again for this awesome example! frank On 4/8/12 6:13 AM, Aaron Richiger wrote: > Thanks Juande for pointing this out. Fixed it in the following version > at pastebin: > > Only one page visible: > http://pastebin.com/kP1rdLHx > > Good luck with finding the eggs! > > >> Hi Aaron, >> >> Pretty cool your solutions! >> >> Just a comment about animated_widgets_with_only_one_widget, there is >> an visibility issue when window is resize. >> >> Happy Easter! >> Juande >> >>> Hello Frank! >>> >>> I slightly changed my code to your new informations and added >>> comments for better understanding;-)! I also changed the sorting >>> method to show you a possibility to separe checked from unchecked >>> checkboxes. Because I first thought, that multiple pages must be >>> visible at once, I created two versions, but according to your mail, >>> the second possibility will meet your requirements closer I guess. >>> But the multi-version might be interesting for others: >>> >>> Mutliple pages visible: >>> http://pastebin.com/hW0zeL4P >>> >>> Only one page visible: >>> http://pastebin.com/cjn0UuA9 >>> >>> Easter-greetings >>> >>> >>> >>> >>> >>> >>> >>> >>> Am 07.04.2012 01:51, schrieb Frank Rueter | OHUfx: >>>> I agree, it does seem off, which is why I'm throwing it out here to >>>> get some ideas on how to tackle this from more experienced peeps. >>>> >>>> I will try to clarify what I'm after: >>>> The idea is to have a collection of buttons per category, let's say >>>> a "page" of buttons. When the category is chosen via the buttons on >>>> the left, the requested page with buttons slides into view pushing >>>> the current one out of view. It's like an animated toolbox. >>>> >>>> I like your suggestion, will investigate. >>>> >>>> Cheers, >>>> frank >>>> >>>> >>>> >>>> On 6/04/12 11:31 PM, Sebastian Elsner wrote: >>>>> This Approach seems really off, Frank. I am not really getting >>>>> what you want to do, maybe you can give us the specific purpose of >>>>> this... What I could imagine is using a QScrollArea, which makes a >>>>> QGridLayout scrollable. >>>>> >>>>> >>>>> Am 06.04.2012 09:13, schrieb Frank Rueter | OHUfx: >>>>>> yes, I think I'm starting to get it, thanks. >>>>>> >>>>>> So here is a very rough and ugly test using a single animated >>>>>> table (feel free to laugh): >>>>>> http://pastebin.com/PbZ8ismH >>>>>> >>>>>> I am trying to see if it's feasible to stuff all my widgets into >>>>>> one big table, then animate the table's position so that only the >>>>>> requested column(s) are within the view according to which button >>>>>> is pushed on the left hand side. Obviously I'd have to hide the >>>>>> headers and lines etc. (no idea how to do that yet either). >>>>>> >>>>>> What do people think how best to approach this? The above doesn't >>>>>> feel right and I'd have to do a lot of hacking to make this look >>>>>> pretty (though the animation is easy to control as it's just one >>>>>> widget). Or should I rather create one table per button and move >>>>>> them around as a group (I guess I could hide the unwanted tables >>>>>> as well then). >>>>>> >>>>>> Or does anyone have completely different ideas how to tackle >>>>>> this? I'm sure there is a way more elegant solution. >>>>>> I'm still trying to stick to default QT stuff before I dive into >>>>>> Qt Quick and such. >>>>>> >>>>>> Thanks for all the help and pointers so far! >>>>>> >>>>>> frank >>>>>> >>>>>> >>>>>> On 4/6/12 6:28 PM, Tibold Kandrai wrote: >>>>>>> Hi! >>>>>>> >>>>>>> Exactly! Instead of QAnimationGroup you have to use >>>>>>> QParallelAnimationGroup >>>>>>> orQSequentialAnimationGroup >>>>>>> . >>>>>>> Or you can create your own group by subclassing QAnimationGroup >>>>>>> if you have special needs. :) >>>>>>> >>>>>>> Cheers, >>>>>>> Tibold >>>>>>> >>>>>>> On 06/04/2012 06:45, Frank Rueter | OHUfx wrote: >>>>>>>> I think I found the problem in the fact that it's an abstract >>>>>>>> class and not meant to be used directly. >>>>>>>> the joy of learning new stuff.... >>>>>>>> >>>>>>>> >>>>>>>> On 4/6/12 4:05 PM, Frank Rueter | OHUfx wrote: >>>>>>>>> Thanks again for this tip Tibold. It seems to be what I'm >>>>>>>>> after, though I just discovered that QAnimationGroup doesn't >>>>>>>>> seem to be supported in PySide. I got this error when I tried >>>>>>>>> to create an instance of it: >>>>>>>>> >>>>>>>>> NotImplementedError: 'QAnimationGroup' represents a C++ >>>>>>>>> abstract class and cannot be instantiated >>>>>>>>> >>>>>>>>> >>>>>>>>> I will try and add all widgets to one "page" widget (whatever >>>>>>>>> that may be, I need to find out yet), and then apply the >>>>>>>>> animation to that. >>>>>>>>> Fingers crossed... >>>>>>>>> >>>>>>>>> Cheers, >>>>>>>>> frank >>>>>>>>> >>>>>>>>> >>>>>>>>> On 4/4/12 7:29 PM, Tibold Kandrai wrote: >>>>>>>>>> Hey! >>>>>>>>>> >>>>>>>>>> Try QtAnimation: >>>>>>>>>> http://qt-project.org/doc/qt-4.8/animation-overview.html >>>>>>>>>> >>>>>>>>>> I use it with in a QGraphicsWidget, but this should work everywhere AFAIR. >>>>>>>>>> >>>>>>>>>> Cheers, >>>>>>>>>> Tibold >>>>>>>>>> >>>>>>>>>> On 04/04/2012 06:46, Frank Rueter | OHUfx wrote: >>>>>>>>>>> Hi everyone, >>>>>>>>>>> >>>>>>>>>>> I'm very new to Qt/PySide and am wondering if it's possible to add an >>>>>>>>>>> animation effect to, let's say, QStackedLayout, for when the page >>>>>>>>>>> changes. I guess it'd something similar to the way the AppStore works. >>>>>>>>>>> >>>>>>>>>>> In this example I'd like to see the new button "push" the old button out >>>>>>>>>>> of view when the combobox changes: >>>>>>>>>>> http://pastebin.com/i5sFgQzE >>>>>>>>>>> >>>>>>>>>>> I'm happy to take a good ol' fashioned RTFM, I'm just having a hard time >>>>>>>>>>> finding the right bit of information out there. >>>>>>>>>>> >>>>>>>>>>> Any help would be greatly appreciated. >>>>>>>>>>> >>>>>>>>>>> Cheers, >>>>>>>>>>> frank >>>>>>>>>>> _______________________________________________ >>>>>>>>>>> PySide mailing list >>>>>>>>>>> PySide at qt-project.org >>>>>>>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> _______________________________________________ >>>>>>>>>> PySide mailing list >>>>>>>>>> PySide at qt-project.org >>>>>>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>>>>>> >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> PySide mailing list >>>>>>>>> PySide at qt-project.org >>>>>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> PySide mailing list >>>>>>>> PySide at qt-project.org >>>>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>>>> >>>>>>> -- >>>>>>> Tibold Kandrai, >>>>>>> CEO @ Dotz Team I/S, >>>>>>> Software developer, consultant >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> PySide mailing list >>>>>>> PySide at qt-project.org >>>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> PySide mailing list >>>>>> PySide at qt-project.org >>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> PySide mailing list >>>>> PySide at qt-project.org >>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>> >>>> >>>> _______________________________________________ >>>> PySide mailing list >>>> PySide at qt-project.org >>>> http://lists.qt-project.org/mailman/listinfo/pyside >>> >>> >>> >>> >>> _______________________________________________ >>> PySide mailing list >>> PySide at qt-project.org >>> http://lists.qt-project.org/mailman/listinfo/pyside >> > > > > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside -------------- next part -------------- An HTML attachment was scrubbed... URL: From a.richi at bluewin.ch Tue Apr 10 11:07:11 2012 From: a.richi at bluewin.ch (Aaron Richiger) Date: Tue, 10 Apr 2012 11:07:11 +0200 Subject: [PySide] animate QStackedLayout? In-Reply-To: <4F828E11.50503@ohufx.com> References: <4F8050DD.8050801@bluewin.ch> <4F805C0D.1020300@bluewin.ch> <4F807D96.5080909@jdmanjon.net> <4F8083CD.3010909@bluewin.ch> <4F828E11.50503@ohufx.com> Message-ID: <4F83F83F.7050103@bluewin.ch> Hello Frank! Easter is over, so it's time to code... Passing a variable to a lambda function multiple times in a loop does not work here. So, the only thing I changed in your code was: Connect the clicked event of the buttons with a method without parameters and therefore write a wrapper "pageChangeRequest()" to evaluate the clicked button, the corresponding page and finally change the page in the animator. You can see your modified code here: http://pastebin.com/Mzd8minm Evaluating the sender of a signal with self.sender() was helpful for me quite often, but always keep in mind, that this only works in classes derived from QObject (which is the case in your code, since your ToolBrowser is inheriting from QWidget). So you always have to work with classes when using this functionality. Happy coding! aaron > Hi Aaron, > > I've modified your example code in an attempt to make it dynamic based > on a given data set. > The data is a nested dictionary of this form: > data = dict( > containerA= ( > dict(CatAA=['A1', 'B1', 'C1'], > CatAB=['A2', 'B2', 'C2'], > CatAC=['A3', 'B3', 'C3'])), > containerB= ( > dict(CatBA=['A4', 'B4', 'C4'], > CatBB=['A5', 'B5', 'C5'], > CatBC=['A6', 'B6', 'C6'])), > containerC= ( > dict(CatCA=['A7', 'B7', 'C7'], > CatCB=['A8', 'B8', 'C8'], > CatCC=['A9', 'B9', 'C9']))) > > I now have to create buttons dynamically based on how the containers > and categories in this data set (and eventually figure out how to also > take the categories' contents into account and generate buttons for > those as well, which can be controlled by Animator instance). > At the moment I'm running into the problem that when I create an > instance of a "WidgetPage" inside a loop and hand it over to your > Animator (see line 113), the bindings go all wrong of course and the > pages all end up at the same memory address, thus overwriting each other. > I tried copy.deepcopy (see line 111) but that seems to barf with class > instances. > > Here is my full code: > http://pastebin.com/txzstwJV > > Any ideas? > > Cheers and thanks again for this awesome example! > frank > > > On 4/8/12 6:13 AM, Aaron Richiger wrote: >> Thanks Juande for pointing this out. Fixed it in the following >> version at pastebin: >> >> Only one page visible: >> http://pastebin.com/kP1rdLHx >> >> Good luck with finding the eggs! >> >> >>> Hi Aaron, >>> >>> Pretty cool your solutions! >>> >>> Just a comment about animated_widgets_with_only_one_widget, there is >>> an visibility issue when window is resize. >>> >>> Happy Easter! >>> Juande >>> >>>> Hello Frank! >>>> >>>> I slightly changed my code to your new informations and added >>>> comments for better understanding;-)! I also changed the sorting >>>> method to show you a possibility to separe checked from unchecked >>>> checkboxes. Because I first thought, that multiple pages must be >>>> visible at once, I created two versions, but according to your >>>> mail, the second possibility will meet your requirements closer I >>>> guess. But the multi-version might be interesting for others: >>>> >>>> Mutliple pages visible: >>>> http://pastebin.com/hW0zeL4P >>>> >>>> Only one page visible: >>>> http://pastebin.com/cjn0UuA9 >>>> >>>> Easter-greetings >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> Am 07.04.2012 01:51, schrieb Frank Rueter | OHUfx: >>>>> I agree, it does seem off, which is why I'm throwing it out here >>>>> to get some ideas on how to tackle this from more experienced peeps. >>>>> >>>>> I will try to clarify what I'm after: >>>>> The idea is to have a collection of buttons per category, let's >>>>> say a "page" of buttons. When the category is chosen via the >>>>> buttons on the left, the requested page with buttons slides into >>>>> view pushing the current one out of view. It's like an animated >>>>> toolbox. >>>>> >>>>> I like your suggestion, will investigate. >>>>> >>>>> Cheers, >>>>> frank >>>>> >>>>> >>>>> >>>>> On 6/04/12 11:31 PM, Sebastian Elsner wrote: >>>>>> This Approach seems really off, Frank. I am not really getting >>>>>> what you want to do, maybe you can give us the specific purpose >>>>>> of this... What I could imagine is using a QScrollArea, which >>>>>> makes a QGridLayout scrollable. >>>>>> >>>>>> >>>>>> Am 06.04.2012 09:13, schrieb Frank Rueter | OHUfx: >>>>>>> yes, I think I'm starting to get it, thanks. >>>>>>> >>>>>>> So here is a very rough and ugly test using a single animated >>>>>>> table (feel free to laugh): >>>>>>> http://pastebin.com/PbZ8ismH >>>>>>> >>>>>>> I am trying to see if it's feasible to stuff all my widgets into >>>>>>> one big table, then animate the table's position so that only >>>>>>> the requested column(s) are within the view according to which >>>>>>> button is pushed on the left hand side. Obviously I'd have to >>>>>>> hide the headers and lines etc. (no idea how to do that yet either). >>>>>>> >>>>>>> What do people think how best to approach this? The above >>>>>>> doesn't feel right and I'd have to do a lot of hacking to make >>>>>>> this look pretty (though the animation is easy to control as >>>>>>> it's just one widget). Or should I rather create one table per >>>>>>> button and move them around as a group (I guess I could hide the >>>>>>> unwanted tables as well then). >>>>>>> >>>>>>> Or does anyone have completely different ideas how to tackle >>>>>>> this? I'm sure there is a way more elegant solution. >>>>>>> I'm still trying to stick to default QT stuff before I dive >>>>>>> into Qt Quick and such. >>>>>>> >>>>>>> Thanks for all the help and pointers so far! >>>>>>> >>>>>>> frank >>>>>>> >>>>>>> >>>>>>> On 4/6/12 6:28 PM, Tibold Kandrai wrote: >>>>>>>> Hi! >>>>>>>> >>>>>>>> Exactly! Instead of QAnimationGroup you have to use >>>>>>>> QParallelAnimationGroup >>>>>>>> orQSequentialAnimationGroup >>>>>>>> . >>>>>>>> Or you can create your own group by subclassing QAnimationGroup >>>>>>>> if you have special needs. :) >>>>>>>> >>>>>>>> Cheers, >>>>>>>> Tibold >>>>>>>> >>>>>>>> On 06/04/2012 06:45, Frank Rueter | OHUfx wrote: >>>>>>>>> I think I found the problem in the fact that it's an abstract >>>>>>>>> class and not meant to be used directly. >>>>>>>>> the joy of learning new stuff.... >>>>>>>>> >>>>>>>>> >>>>>>>>> On 4/6/12 4:05 PM, Frank Rueter | OHUfx wrote: >>>>>>>>>> Thanks again for this tip Tibold. It seems to be what I'm >>>>>>>>>> after, though I just discovered that QAnimationGroup doesn't >>>>>>>>>> seem to be supported in PySide. I got this error when I tried >>>>>>>>>> to create an instance of it: >>>>>>>>>> >>>>>>>>>> NotImplementedError: 'QAnimationGroup' represents a C++ >>>>>>>>>> abstract class and cannot be instantiated >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> I will try and add all widgets to one "page" widget (whatever >>>>>>>>>> that may be, I need to find out yet), and then apply the >>>>>>>>>> animation to that. >>>>>>>>>> Fingers crossed... >>>>>>>>>> >>>>>>>>>> Cheers, >>>>>>>>>> frank >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> On 4/4/12 7:29 PM, Tibold Kandrai wrote: >>>>>>>>>>> Hey! >>>>>>>>>>> >>>>>>>>>>> Try QtAnimation: >>>>>>>>>>> http://qt-project.org/doc/qt-4.8/animation-overview.html >>>>>>>>>>> >>>>>>>>>>> I use it with in a QGraphicsWidget, but this should work everywhere AFAIR. >>>>>>>>>>> >>>>>>>>>>> Cheers, >>>>>>>>>>> Tibold >>>>>>>>>>> >>>>>>>>>>> On 04/04/2012 06:46, Frank Rueter | OHUfx wrote: >>>>>>>>>>>> Hi everyone, >>>>>>>>>>>> >>>>>>>>>>>> I'm very new to Qt/PySide and am wondering if it's possible to add an >>>>>>>>>>>> animation effect to, let's say, QStackedLayout, for when the page >>>>>>>>>>>> changes. I guess it'd something similar to the way the AppStore works. >>>>>>>>>>>> >>>>>>>>>>>> In this example I'd like to see the new button "push" the old button out >>>>>>>>>>>> of view when the combobox changes: >>>>>>>>>>>> http://pastebin.com/i5sFgQzE >>>>>>>>>>>> >>>>>>>>>>>> I'm happy to take a good ol' fashioned RTFM, I'm just having a hard time >>>>>>>>>>>> finding the right bit of information out there. >>>>>>>>>>>> >>>>>>>>>>>> Any help would be greatly appreciated. >>>>>>>>>>>> >>>>>>>>>>>> Cheers, >>>>>>>>>>>> frank >>>>>>>>>>>> _______________________________________________ >>>>>>>>>>>> PySide mailing list >>>>>>>>>>>> PySide at qt-project.org >>>>>>>>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> _______________________________________________ >>>>>>>>>>> PySide mailing list >>>>>>>>>>> PySide at qt-project.org >>>>>>>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> _______________________________________________ >>>>>>>>>> PySide mailing list >>>>>>>>>> PySide at qt-project.org >>>>>>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>>>>>> >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> PySide mailing list >>>>>>>>> PySide at qt-project.org >>>>>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>>>>> >>>>>>>> -- >>>>>>>> Tibold Kandrai, >>>>>>>> CEO @ Dotz Team I/S, >>>>>>>> Software developer, consultant >>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> PySide mailing list >>>>>>>> PySide at qt-project.org >>>>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> PySide mailing list >>>>>>> PySide at qt-project.org >>>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>>> >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> PySide mailing list >>>>>> PySide at qt-project.org >>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>> >>>>> >>>>> _______________________________________________ >>>>> PySide mailing list >>>>> PySide at qt-project.org >>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>> >>>> >>>> >>>> >>>> _______________________________________________ >>>> PySide mailing list >>>> PySide at qt-project.org >>>> http://lists.qt-project.org/mailman/listinfo/pyside >>> >> >> >> >> _______________________________________________ >> PySide mailing list >> PySide at qt-project.org >> http://lists.qt-project.org/mailman/listinfo/pyside > > > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside -------------- next part -------------- An HTML attachment was scrubbed... URL: From a.richi at bluewin.ch Tue Apr 10 13:32:57 2012 From: a.richi at bluewin.ch (Aaron Richiger) Date: Tue, 10 Apr 2012 13:32:57 +0200 Subject: [PySide] custom table sorting In-Reply-To: <4F80BE7E.9080603@ohufx.com> References: <4F7E3DCB.9030201@ohufx.com> <4F7EBF69.2030400@risefx.com> <4F7F83B5.5030006@ohufx.com> <4F80087B.5070404@risefx.com> <4F80BE7E.9080603@ohufx.com> Message-ID: <4F841A69.3000209@bluewin.ch> Hello Frank Regarding your custom table sorting problem, there are at least two options: a) Using QTableWidget() Recommended for small, "stupid", static tables only. As soon as larger data, databases or manipulations (sorting, filtering, editing) appear, use option b)! But if you still want to go this way, I could imagine the following: 1) Store each row of the table in an appropriate datastructure, sort this datastructure 2) Remove all widgets from your TableWidgetItem 3) Refill the table from the sorted datastructure b) Using QTableModel()/ QTableView()/ Controller: (The following only covers the case without database. If you have an underlying database, similar solutions are provided by QSqlTableModel and others). I highly recommend this approach, but as other mentioned, it's a little bit harder to dive into, but if you are familiar with the MVC pattern from other languages or apps, it's not a too big deal. Checkboxes, comboboxes (QSqlTableModel) are already on board, if you need other widgets, just create them by using QStyledItemDelegate(). The same for sorting, filtering. The main work is not done any longer on the view, but in the model class (compared to option a)). I wrote a little example showing an MVC table with sortable checkboxes (but without custom delegates): http://pastebin.com/rw9ipbit It's far from completeness to keep the example short, but could be a starting or inspiration point. Have a nice day! Aaron > will do, thanks > > On 7/04/12 9:27 PM, Sebastian Elsner wrote: >> I recommend reading the appropriate chapters in this book: >> http://www.qtrac.eu/pyqtbook.html >> and have a look this ressource: http://www.yasinuludag.com/blog/ >> also download a version of PyQt, it has all original Qt examples >> (including the model view thingies) translated to python, which helps a >> lot and is a good starting point. >> >> Am 07.04.2012 02:00, schrieb Frank Rueter | OHUfx: >>> Hi Sebastian, >>> >>> thanks again for your help. I couldn't get the sorting to work even >>> though the widgets in each column were always the same type. >>> You are probably totally right that this won't be very scalable, I just >>> wanted to get a grip on it first before diving into the >>> QTableView/QTableModel solution, which I think I won't be able to avoid. >>> These tables can indeed grow very large. >>> I shall read up on this though and try and do it properly. ;) >>> >>> >>> Cheers, >>> frank >>> >>> >>> On 6/04/12 10:03 PM, Sebastian Elsner wrote: >>>> Hi, >>>> >>>> assuming the checkboxes and the combo boxes are different data types >>>> (bool, vs, string) and thus displayed in different columns, sorting >>>> should happen automatically when you setSortingEnabled(True). Please >>>> note that you have to disable sorting while inserting items because this >>>> may lead to stringe behaviour. Also if you want to display checkboxes >>>> these should be set by >>>> QTableWidgetItem.setFlags(QTablewidgetItem.flags() | >>>> Qt.ItemIsUSerCheckable)) and setCheckState() rather than doing a >>>> QTableWidget.setCellWidget(), because this is way faster. The combooxes >>>> can be inserted with setCellWidget, but be aware that you may run into >>>> performance issues if you add a lot of them. >>>> >>>> Alternatively you could subclass the QTableWidgetItem and override the< >>>> operator to provide your own sorting, which will be - of course - >>>> solower because implemented in python. >>>> >>>> Finally when dealing with large datasets I would recommend going for the >>>> true model/view approach with QTableView, QTableModel and >>>> QStyledItemDelegate, but those are more hard to use. >>>> >>>> Cheers >>>> >>>> Sebastian >>>> >>>> >>>> Am 06.04.2012 02:50, schrieb Frank Rueter | OHUfx: >>>>> Hi guys, >>>>> >>>>> I'm working on a table that has ItemWidgets (comboBoxes, checkBoxes etc) >>>>> in some cells and I'm trying to figure out how to write a custom sort >>>>> behaviour that will enable me to sort the table by columns containing >>>>> widgets using the respective widgets' current value (e.g. show all rows >>>>> with a checked checkBox first, followed by all rows with an unchecked >>>>> checkBox). >>>>> >>>>> Has anyone done this before? >>>>> Any pointers would be fabulous! >>>>> >>>>> Cheers, >>>>> frank >>>>> >>>>> _______________________________________________ >>>>> PySide mailing list >>>>> PySide at qt-project.org >>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>> _______________________________________________ >>>> PySide mailing list >>>> PySide at qt-project.org >>>> http://lists.qt-project.org/mailman/listinfo/pyside >>> _______________________________________________ >>> PySide mailing list >>> PySide at qt-project.org >>> http://lists.qt-project.org/mailman/listinfo/pyside >> _______________________________________________ >> PySide mailing list >> PySide at qt-project.org >> http://lists.qt-project.org/mailman/listinfo/pyside > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside From frank at ohufx.com Wed Apr 11 02:19:56 2012 From: frank at ohufx.com (Frank Rueter | OHUfx) Date: Wed, 11 Apr 2012 12:19:56 +1200 Subject: [PySide] animate QStackedLayout? In-Reply-To: <4F83F83F.7050103@bluewin.ch> References: <4F8050DD.8050801@bluewin.ch> <4F805C0D.1020300@bluewin.ch> <4F807D96.5080909@jdmanjon.net> <4F8083CD.3010909@bluewin.ch> <4F828E11.50503@ohufx.com> <4F83F83F.7050103@bluewin.ch> Message-ID: <4F84CE2C.6060005@ohufx.com> Hi Aaron, hope you had a good Easter. Thanks again for the example! It makes total sense I and kinda should have known that myself by now ;). I am now wondering if it's maybe best to create a dictionary that holds the buttons as keys and the respective pages as values. Would anything speak against that approach? I also have a couple of questions about your code changes (just want to understand things properly and learn the best practices): in line 101, why are you using xrange to loop through the list items rather than the straight forward approach of cycling through the list's contents? Is this faster? You have to sort the list twice this way and the code seems less intuitive, so I'm just wondering about the benefits. in line 106 you added "self" to the QPushButton's arguments, even though the button gets added into a layout that is already parented to the widget, so the button becomes a descendent of "self" automatically, right?! At least that's how I understood the documentation. Thanks again for your fantastic help, it's invaluable for me right now!! Cheers, frank On 4/10/12 9:07 PM, Aaron Richiger wrote: > Hello Frank! > > Easter is over, so it's time to code... Passing a variable to a lambda > function multiple times in a loop does not work here. So, the only > thing I changed in your code was: Connect the clicked event of the > buttons with a method without parameters and therefore write a wrapper > "pageChangeRequest()" to evaluate the clicked button, the > corresponding page and finally change the page in the animator. You > can see your modified code here: > > http://pastebin.com/Mzd8minm > > Evaluating the sender of a signal with self.sender() was helpful for > me quite often, but always keep in mind, that this only works in > classes derived from QObject (which is the case in your code, since > your ToolBrowser is inheriting from QWidget). So you always have to > work with classes when using this functionality. > > Happy coding! > aaron > > > > >> Hi Aaron, >> >> I've modified your example code in an attempt to make it dynamic >> based on a given data set. >> The data is a nested dictionary of this form: >> data = dict( >> containerA= ( >> dict(CatAA=['A1', 'B1', 'C1'], >> CatAB=['A2', 'B2', 'C2'], >> CatAC=['A3', 'B3', 'C3'])), >> containerB= ( >> dict(CatBA=['A4', 'B4', 'C4'], >> CatBB=['A5', 'B5', 'C5'], >> CatBC=['A6', 'B6', 'C6'])), >> containerC= ( >> dict(CatCA=['A7', 'B7', 'C7'], >> CatCB=['A8', 'B8', 'C8'], >> CatCC=['A9', 'B9', 'C9']))) >> >> I now have to create buttons dynamically based on how the containers >> and categories in this data set (and eventually figure out how to >> also take the categories' contents into account and generate buttons >> for those as well, which can be controlled by Animator instance). >> At the moment I'm running into the problem that when I create an >> instance of a "WidgetPage" inside a loop and hand it over to your >> Animator (see line 113), the bindings go all wrong of course and the >> pages all end up at the same memory address, thus overwriting each other. >> I tried copy.deepcopy (see line 111) but that seems to barf with >> class instances. >> >> Here is my full code: >> http://pastebin.com/txzstwJV >> >> Any ideas? >> >> Cheers and thanks again for this awesome example! >> frank >> >> >> On 4/8/12 6:13 AM, Aaron Richiger wrote: >>> Thanks Juande for pointing this out. Fixed it in the following >>> version at pastebin: >>> >>> Only one page visible: >>> http://pastebin.com/kP1rdLHx >>> >>> Good luck with finding the eggs! >>> >>> >>>> Hi Aaron, >>>> >>>> Pretty cool your solutions! >>>> >>>> Just a comment about animated_widgets_with_only_one_widget, there >>>> is an visibility issue when window is resize. >>>> >>>> Happy Easter! >>>> Juande >>>> >>>>> Hello Frank! >>>>> >>>>> I slightly changed my code to your new informations and added >>>>> comments for better understanding;-)! I also changed the sorting >>>>> method to show you a possibility to separe checked from unchecked >>>>> checkboxes. Because I first thought, that multiple pages must be >>>>> visible at once, I created two versions, but according to your >>>>> mail, the second possibility will meet your requirements closer I >>>>> guess. But the multi-version might be interesting for others: >>>>> >>>>> Mutliple pages visible: >>>>> http://pastebin.com/hW0zeL4P >>>>> >>>>> Only one page visible: >>>>> http://pastebin.com/cjn0UuA9 >>>>> >>>>> Easter-greetings >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> Am 07.04.2012 01:51, schrieb Frank Rueter | OHUfx: >>>>>> I agree, it does seem off, which is why I'm throwing it out here >>>>>> to get some ideas on how to tackle this from more experienced peeps. >>>>>> >>>>>> I will try to clarify what I'm after: >>>>>> The idea is to have a collection of buttons per category, let's >>>>>> say a "page" of buttons. When the category is chosen via the >>>>>> buttons on the left, the requested page with buttons slides into >>>>>> view pushing the current one out of view. It's like an animated >>>>>> toolbox. >>>>>> >>>>>> I like your suggestion, will investigate. >>>>>> >>>>>> Cheers, >>>>>> frank >>>>>> >>>>>> >>>>>> >>>>>> On 6/04/12 11:31 PM, Sebastian Elsner wrote: >>>>>>> This Approach seems really off, Frank. I am not really getting >>>>>>> what you want to do, maybe you can give us the specific purpose >>>>>>> of this... What I could imagine is using a QScrollArea, which >>>>>>> makes a QGridLayout scrollable. >>>>>>> >>>>>>> >>>>>>> Am 06.04.2012 09:13, schrieb Frank Rueter | OHUfx: >>>>>>>> yes, I think I'm starting to get it, thanks. >>>>>>>> >>>>>>>> So here is a very rough and ugly test using a single animated >>>>>>>> table (feel free to laugh): >>>>>>>> http://pastebin.com/PbZ8ismH >>>>>>>> >>>>>>>> I am trying to see if it's feasible to stuff all my widgets >>>>>>>> into one big table, then animate the table's position so that >>>>>>>> only the requested column(s) are within the view according to >>>>>>>> which button is pushed on the left hand side. Obviously I'd >>>>>>>> have to hide the headers and lines etc. (no idea how to do that >>>>>>>> yet either). >>>>>>>> >>>>>>>> What do people think how best to approach this? The above >>>>>>>> doesn't feel right and I'd have to do a lot of hacking to make >>>>>>>> this look pretty (though the animation is easy to control as >>>>>>>> it's just one widget). Or should I rather create one table per >>>>>>>> button and move them around as a group (I guess I could hide >>>>>>>> the unwanted tables as well then). >>>>>>>> >>>>>>>> Or does anyone have completely different ideas how to tackle >>>>>>>> this? I'm sure there is a way more elegant solution. >>>>>>>> I'm still trying to stick to default QT stuff before I dive >>>>>>>> into Qt Quick and such. >>>>>>>> >>>>>>>> Thanks for all the help and pointers so far! >>>>>>>> >>>>>>>> frank >>>>>>>> >>>>>>>> >>>>>>>> On 4/6/12 6:28 PM, Tibold Kandrai wrote: >>>>>>>>> Hi! >>>>>>>>> >>>>>>>>> Exactly! Instead of QAnimationGroup you have to use >>>>>>>>> QParallelAnimationGroup >>>>>>>>> orQSequentialAnimationGroup >>>>>>>>> . >>>>>>>>> Or you can create your own group by subclassing >>>>>>>>> QAnimationGroup if you have special needs. :) >>>>>>>>> >>>>>>>>> Cheers, >>>>>>>>> Tibold >>>>>>>>> >>>>>>>>> On 06/04/2012 06:45, Frank Rueter | OHUfx wrote: >>>>>>>>>> I think I found the problem in the fact that it's an abstract >>>>>>>>>> class and not meant to be used directly. >>>>>>>>>> the joy of learning new stuff.... >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> On 4/6/12 4:05 PM, Frank Rueter | OHUfx wrote: >>>>>>>>>>> Thanks again for this tip Tibold. It seems to be what I'm >>>>>>>>>>> after, though I just discovered that QAnimationGroup doesn't >>>>>>>>>>> seem to be supported in PySide. I got this error when I >>>>>>>>>>> tried to create an instance of it: >>>>>>>>>>> >>>>>>>>>>> NotImplementedError: 'QAnimationGroup' represents a C++ >>>>>>>>>>> abstract class and cannot be instantiated >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> I will try and add all widgets to one "page" widget >>>>>>>>>>> (whatever that may be, I need to find out yet), and then >>>>>>>>>>> apply the animation to that. >>>>>>>>>>> Fingers crossed... >>>>>>>>>>> >>>>>>>>>>> Cheers, >>>>>>>>>>> frank >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> On 4/4/12 7:29 PM, Tibold Kandrai wrote: >>>>>>>>>>>> Hey! >>>>>>>>>>>> >>>>>>>>>>>> Try QtAnimation: >>>>>>>>>>>> http://qt-project.org/doc/qt-4.8/animation-overview.html >>>>>>>>>>>> >>>>>>>>>>>> I use it with in a QGraphicsWidget, but this should work everywhere AFAIR. >>>>>>>>>>>> >>>>>>>>>>>> Cheers, >>>>>>>>>>>> Tibold >>>>>>>>>>>> >>>>>>>>>>>> On 04/04/2012 06:46, Frank Rueter | OHUfx wrote: >>>>>>>>>>>>> Hi everyone, >>>>>>>>>>>>> >>>>>>>>>>>>> I'm very new to Qt/PySide and am wondering if it's possible to add an >>>>>>>>>>>>> animation effect to, let's say, QStackedLayout, for when the page >>>>>>>>>>>>> changes. I guess it'd something similar to the way the AppStore works. >>>>>>>>>>>>> >>>>>>>>>>>>> In this example I'd like to see the new button "push" the old button out >>>>>>>>>>>>> of view when the combobox changes: >>>>>>>>>>>>> http://pastebin.com/i5sFgQzE >>>>>>>>>>>>> >>>>>>>>>>>>> I'm happy to take a good ol' fashioned RTFM, I'm just having a hard time >>>>>>>>>>>>> finding the right bit of information out there. >>>>>>>>>>>>> >>>>>>>>>>>>> Any help would be greatly appreciated. >>>>>>>>>>>>> >>>>>>>>>>>>> Cheers, >>>>>>>>>>>>> frank >>>>>>>>>>>>> _______________________________________________ >>>>>>>>>>>>> PySide mailing list >>>>>>>>>>>>> PySide at qt-project.org >>>>>>>>>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> _______________________________________________ >>>>>>>>>>>> PySide mailing list >>>>>>>>>>>> PySide at qt-project.org >>>>>>>>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> _______________________________________________ >>>>>>>>>>> PySide mailing list >>>>>>>>>>> PySide at qt-project.org >>>>>>>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> _______________________________________________ >>>>>>>>>> PySide mailing list >>>>>>>>>> PySide at qt-project.org >>>>>>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>>>>>> >>>>>>>>> -- >>>>>>>>> Tibold Kandrai, >>>>>>>>> CEO @ Dotz Team I/S, >>>>>>>>> Software developer, consultant >>>>>>>>> >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> PySide mailing list >>>>>>>>> PySide at qt-project.org >>>>>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> PySide mailing list >>>>>>>> PySide at qt-project.org >>>>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>>>> >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> PySide mailing list >>>>>>> PySide at qt-project.org >>>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> PySide mailing list >>>>>> PySide at qt-project.org >>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>> >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> PySide mailing list >>>>> PySide at qt-project.org >>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>> >>> >>> >>> >>> _______________________________________________ >>> PySide mailing list >>> PySide at qt-project.org >>> http://lists.qt-project.org/mailman/listinfo/pyside >> >> >> _______________________________________________ >> PySide mailing list >> PySide at qt-project.org >> http://lists.qt-project.org/mailman/listinfo/pyside > > > > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside -------------- next part -------------- An HTML attachment was scrubbed... URL: From frank at ohufx.com Wed Apr 11 02:23:10 2012 From: frank at ohufx.com (Frank Rueter | OHUfx) Date: Wed, 11 Apr 2012 12:23:10 +1200 Subject: [PySide] custom table sorting In-Reply-To: <4F841A69.3000209@bluewin.ch> References: <4F7E3DCB.9030201@ohufx.com> <4F7EBF69.2030400@risefx.com> <4F7F83B5.5030006@ohufx.com> <4F80087B.5070404@risefx.com> <4F80BE7E.9080603@ohufx.com> <4F841A69.3000209@bluewin.ch> Message-ID: <4F84CEEE.90806@ohufx.com> Cool, thanks once again Aaron. I will get back to the sortable table task in a bit and look at your example, right after getting a grip on my animated pages. Need to start picking my battles to do things properly. :) Cheers, frank On 4/10/12 11:32 PM, Aaron Richiger wrote: > Hello Frank > > Regarding your custom table sorting problem, there are at least two options: > > a) Using QTableWidget() > Recommended for small, "stupid", static tables only. As soon as larger > data, databases or manipulations (sorting, filtering, editing) appear, > use option b)! But if you still want to go this way, I could imagine the > following: > 1) Store each row of the table in an appropriate datastructure, > sort this datastructure > 2) Remove all widgets from your TableWidgetItem > 3) Refill the table from the sorted datastructure > > b) Using QTableModel()/ QTableView()/ Controller: (The following only > covers the case without database. If you have an underlying database, > similar solutions are provided by QSqlTableModel and others). > I highly recommend this approach, but as other mentioned, it's a little > bit harder to dive into, but if you are familiar with the MVC pattern > from other languages or apps, it's not a too big deal. Checkboxes, > comboboxes (QSqlTableModel) are already on board, if you need other > widgets, just create them by using QStyledItemDelegate(). The same for > sorting, filtering. The main work is not done any longer on the view, > but in the model class (compared to option a)). I wrote a little example > showing an MVC table with sortable checkboxes (but without custom > delegates): > > http://pastebin.com/rw9ipbit > > It's far from completeness to keep the example short, but could be a > starting or inspiration point. > > Have a nice day! > Aaron > > >> will do, thanks >> >> On 7/04/12 9:27 PM, Sebastian Elsner wrote: >>> I recommend reading the appropriate chapters in this book: >>> http://www.qtrac.eu/pyqtbook.html >>> and have a look this ressource: http://www.yasinuludag.com/blog/ >>> also download a version of PyQt, it has all original Qt examples >>> (including the model view thingies) translated to python, which helps a >>> lot and is a good starting point. >>> >>> Am 07.04.2012 02:00, schrieb Frank Rueter | OHUfx: >>>> Hi Sebastian, >>>> >>>> thanks again for your help. I couldn't get the sorting to work even >>>> though the widgets in each column were always the same type. >>>> You are probably totally right that this won't be very scalable, I just >>>> wanted to get a grip on it first before diving into the >>>> QTableView/QTableModel solution, which I think I won't be able to avoid. >>>> These tables can indeed grow very large. >>>> I shall read up on this though and try and do it properly. ;) >>>> >>>> >>>> Cheers, >>>> frank >>>> >>>> >>>> On 6/04/12 10:03 PM, Sebastian Elsner wrote: >>>>> Hi, >>>>> >>>>> assuming the checkboxes and the combo boxes are different data types >>>>> (bool, vs, string) and thus displayed in different columns, sorting >>>>> should happen automatically when you setSortingEnabled(True). Please >>>>> note that you have to disable sorting while inserting items because this >>>>> may lead to stringe behaviour. Also if you want to display checkboxes >>>>> these should be set by >>>>> QTableWidgetItem.setFlags(QTablewidgetItem.flags() | >>>>> Qt.ItemIsUSerCheckable)) and setCheckState() rather than doing a >>>>> QTableWidget.setCellWidget(), because this is way faster. The combooxes >>>>> can be inserted with setCellWidget, but be aware that you may run into >>>>> performance issues if you add a lot of them. >>>>> >>>>> Alternatively you could subclass the QTableWidgetItem and override the< >>>>> operator to provide your own sorting, which will be - of course - >>>>> solower because implemented in python. >>>>> >>>>> Finally when dealing with large datasets I would recommend going for the >>>>> true model/view approach with QTableView, QTableModel and >>>>> QStyledItemDelegate, but those are more hard to use. >>>>> >>>>> Cheers >>>>> >>>>> Sebastian >>>>> >>>>> >>>>> Am 06.04.2012 02:50, schrieb Frank Rueter | OHUfx: >>>>>> Hi guys, >>>>>> >>>>>> I'm working on a table that has ItemWidgets (comboBoxes, checkBoxes etc) >>>>>> in some cells and I'm trying to figure out how to write a custom sort >>>>>> behaviour that will enable me to sort the table by columns containing >>>>>> widgets using the respective widgets' current value (e.g. show all rows >>>>>> with a checked checkBox first, followed by all rows with an unchecked >>>>>> checkBox). >>>>>> >>>>>> Has anyone done this before? >>>>>> Any pointers would be fabulous! >>>>>> >>>>>> Cheers, >>>>>> frank >>>>>> >>>>>> _______________________________________________ >>>>>> PySide mailing list >>>>>> PySide at qt-project.org >>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>> _______________________________________________ >>>>> PySide mailing list >>>>> PySide at qt-project.org >>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>> _______________________________________________ >>>> PySide mailing list >>>> PySide at qt-project.org >>>> http://lists.qt-project.org/mailman/listinfo/pyside >>> _______________________________________________ >>> PySide mailing list >>> PySide at qt-project.org >>> http://lists.qt-project.org/mailman/listinfo/pyside >> _______________________________________________ >> PySide mailing list >> PySide at qt-project.org >> http://lists.qt-project.org/mailman/listinfo/pyside > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside From frank at ohufx.com Wed Apr 11 23:59:07 2012 From: frank at ohufx.com (Frank Rueter | OHUfx) Date: Thu, 12 Apr 2012 09:59:07 +1200 Subject: [PySide] animate QStackedLayout? In-Reply-To: <4F855D6A.5080505@bluewin.ch> References: <4F8050DD.8050801@bluewin.ch> <4F805C0D.1020300@bluewin.ch> <4F807D96.5080909@jdmanjon.net> <4F8083CD.3010909@bluewin.ch> <4F828E11.50503@ohufx.com> <4F83F83F.7050103@bluewin.ch> <4F84CE2C.6060005@ohufx.com> <4F855D6A.5080505@bluewin.ch> Message-ID: <4F85FEAB.5010205@ohufx.com> Awesome, thanks, you are a really great help Aaron! The next challenge will be to create the item pages and slide them in when the category buttons are pressed. I will look at your code example and try and figure out how to hook that up (should be mostly more of the same I guess). The trick will be to write a WidgetPage/Animator class that automatically creates new pages if the given amount of widgets exceed a set amount per page. So if a page holds 9 items but has more than 9 widgets, it automatically creates a new page and hooks up the Animator accordingly. First of all I will make sure I have a good grip on your current example though, then I will try and figure this out. You might hear another cry of help from my side of the sandbox sooner or later :-D. Again, thanks for all your help thus far! frank On 4/11/12 10:31 PM, Aaron Richiger wrote: > Hello Frank! > > You were absolutely right in every point :-)! I changed some things to > find the best solution and at the end forgot the cleaning up... Using > a dict also seems a good idea to me, you get faster access time in the > method pageChangeRequest(): O(1) instead of O(n) I guess (but this > rarely matters for GUIs, because I think you won't have millions of > pages...). But it keeps the code shorter and more intuitive, so just > use it! Here is the corrected paste: > > http://pastebin.com/MAM9w5vk > > Cheers! > Aaron > > > > >> Hi Aaron, >> >> hope you had a good Easter. >> Thanks again for the example! It makes total sense I and kinda should >> have known that myself by now ;). >> I am now wondering if it's maybe best to create a dictionary that >> holds the buttons as keys and the respective pages as values. Would >> anything speak against that approach? >> >> I also have a couple of questions about your code changes (just want >> to understand things properly and learn the best practices): >> >> in line 101, why are you using xrange to loop through the list items >> rather than the straight forward approach of cycling through the >> list's contents? Is this faster? You have to sort the list twice this >> way and the code seems less intuitive, so I'm just wondering about >> the benefits. >> >> in line 106 you added "self" to the QPushButton's arguments, even >> though the button gets added into a layout that is already parented >> to the widget, so the button becomes a descendent of "self" >> automatically, right?! At least that's how I understood the >> documentation. >> >> >> Thanks again for your fantastic help, it's invaluable for me right now!! >> >> Cheers, >> frank >> >> On 4/10/12 9:07 PM, Aaron Richiger wrote: >>> Hello Frank! >>> >>> Easter is over, so it's time to code... Passing a variable to a >>> lambda function multiple times in a loop does not work here. So, the >>> only thing I changed in your code was: Connect the clicked event of >>> the buttons with a method without parameters and therefore write a >>> wrapper "pageChangeRequest()" to evaluate the clicked button, the >>> corresponding page and finally change the page in the animator. You >>> can see your modified code here: >>> >>> http://pastebin.com/Mzd8minm >>> >>> Evaluating the sender of a signal with self.sender() was helpful for >>> me quite often, but always keep in mind, that this only works in >>> classes derived from QObject (which is the case in your code, since >>> your ToolBrowser is inheriting from QWidget). So you always have to >>> work with classes when using this functionality. >>> >>> Happy coding! >>> aaron >>> >>> >>> >>> >>>> Hi Aaron, >>>> >>>> I've modified your example code in an attempt to make it dynamic >>>> based on a given data set. >>>> The data is a nested dictionary of this form: >>>> data = dict( >>>> containerA= ( >>>> dict(CatAA=['A1', 'B1', 'C1'], >>>> CatAB=['A2', 'B2', 'C2'], >>>> CatAC=['A3', 'B3', 'C3'])), >>>> containerB= ( >>>> dict(CatBA=['A4', 'B4', 'C4'], >>>> CatBB=['A5', 'B5', 'C5'], >>>> CatBC=['A6', 'B6', 'C6'])), >>>> containerC= ( >>>> dict(CatCA=['A7', 'B7', 'C7'], >>>> CatCB=['A8', 'B8', 'C8'], >>>> CatCC=['A9', 'B9', 'C9']))) >>>> >>>> I now have to create buttons dynamically based on how the >>>> containers and categories in this data set (and eventually figure >>>> out how to also take the categories' contents into account and >>>> generate buttons for those as well, which can be controlled by >>>> Animator instance). >>>> At the moment I'm running into the problem that when I create an >>>> instance of a "WidgetPage" inside a loop and hand it over to your >>>> Animator (see line 113), the bindings go all wrong of course and >>>> the pages all end up at the same memory address, thus overwriting >>>> each other. >>>> I tried copy.deepcopy (see line 111) but that seems to barf with >>>> class instances. >>>> >>>> Here is my full code: >>>> http://pastebin.com/txzstwJV >>>> >>>> Any ideas? >>>> >>>> Cheers and thanks again for this awesome example! >>>> frank >>>> >>>> >>>> On 4/8/12 6:13 AM, Aaron Richiger wrote: >>>>> Thanks Juande for pointing this out. Fixed it in the following >>>>> version at pastebin: >>>>> >>>>> Only one page visible: >>>>> http://pastebin.com/kP1rdLHx >>>>> >>>>> Good luck with finding the eggs! >>>>> >>>>> >>>>>> Hi Aaron, >>>>>> >>>>>> Pretty cool your solutions! >>>>>> >>>>>> Just a comment about animated_widgets_with_only_one_widget, there >>>>>> is an visibility issue when window is resize. >>>>>> >>>>>> Happy Easter! >>>>>> Juande >>>>>> >>>>>>> Hello Frank! >>>>>>> >>>>>>> I slightly changed my code to your new informations and added >>>>>>> comments for better understanding;-)! I also changed the sorting >>>>>>> method to show you a possibility to separe checked from >>>>>>> unchecked checkboxes. Because I first thought, that multiple >>>>>>> pages must be visible at once, I created two versions, but >>>>>>> according to your mail, the second possibility will meet your >>>>>>> requirements closer I guess. But the multi-version might be >>>>>>> interesting for others: >>>>>>> >>>>>>> Mutliple pages visible: >>>>>>> http://pastebin.com/hW0zeL4P >>>>>>> >>>>>>> Only one page visible: >>>>>>> http://pastebin.com/cjn0UuA9 >>>>>>> >>>>>>> Easter-greetings >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> Am 07.04.2012 01:51, schrieb Frank Rueter | OHUfx: >>>>>>>> I agree, it does seem off, which is why I'm throwing it out >>>>>>>> here to get some ideas on how to tackle this from more >>>>>>>> experienced peeps. >>>>>>>> >>>>>>>> I will try to clarify what I'm after: >>>>>>>> The idea is to have a collection of buttons per category, let's >>>>>>>> say a "page" of buttons. When the category is chosen via the >>>>>>>> buttons on the left, the requested page with buttons slides >>>>>>>> into view pushing the current one out of view. It's like an >>>>>>>> animated toolbox. >>>>>>>> >>>>>>>> I like your suggestion, will investigate. >>>>>>>> >>>>>>>> Cheers, >>>>>>>> frank >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> On 6/04/12 11:31 PM, Sebastian Elsner wrote: >>>>>>>>> This Approach seems really off, Frank. I am not really getting >>>>>>>>> what you want to do, maybe you can give us the specific >>>>>>>>> purpose of this... What I could imagine is using a >>>>>>>>> QScrollArea, which makes a QGridLayout scrollable. >>>>>>>>> >>>>>>>>> >>>>>>>>> Am 06.04.2012 09:13, schrieb Frank Rueter | OHUfx: >>>>>>>>>> yes, I think I'm starting to get it, thanks. >>>>>>>>>> >>>>>>>>>> So here is a very rough and ugly test using a single animated >>>>>>>>>> table (feel free to laugh): >>>>>>>>>> http://pastebin.com/PbZ8ismH >>>>>>>>>> >>>>>>>>>> I am trying to see if it's feasible to stuff all my widgets >>>>>>>>>> into one big table, then animate the table's position so that >>>>>>>>>> only the requested column(s) are within the view according to >>>>>>>>>> which button is pushed on the left hand side. Obviously I'd >>>>>>>>>> have to hide the headers and lines etc. (no idea how to do >>>>>>>>>> that yet either). >>>>>>>>>> >>>>>>>>>> What do people think how best to approach this? The above >>>>>>>>>> doesn't feel right and I'd have to do a lot of hacking to >>>>>>>>>> make this look pretty (though the animation is easy to >>>>>>>>>> control as it's just one widget). Or should I rather create >>>>>>>>>> one table per button and move them around as a group (I guess >>>>>>>>>> I could hide the unwanted tables as well then). >>>>>>>>>> >>>>>>>>>> Or does anyone have completely different ideas how to tackle >>>>>>>>>> this? I'm sure there is a way more elegant solution. >>>>>>>>>> I'm still trying to stick to default QT stuff before I dive >>>>>>>>>> into Qt Quick and such. >>>>>>>>>> >>>>>>>>>> Thanks for all the help and pointers so far! >>>>>>>>>> >>>>>>>>>> frank >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> On 4/6/12 6:28 PM, Tibold Kandrai wrote: >>>>>>>>>>> Hi! >>>>>>>>>>> >>>>>>>>>>> Exactly! Instead of QAnimationGroup you have to use >>>>>>>>>>> QParallelAnimationGroup >>>>>>>>>>> orQSequentialAnimationGroup >>>>>>>>>>> . >>>>>>>>>>> Or you can create your own group by subclassing >>>>>>>>>>> QAnimationGroup if you have special needs. :) >>>>>>>>>>> >>>>>>>>>>> Cheers, >>>>>>>>>>> Tibold >>>>>>>>>>> >>>>>>>>>>> On 06/04/2012 06:45, Frank Rueter | OHUfx wrote: >>>>>>>>>>>> I think I found the problem in the fact that it's an >>>>>>>>>>>> abstract class and not meant to be used directly. >>>>>>>>>>>> the joy of learning new stuff.... >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> On 4/6/12 4:05 PM, Frank Rueter | OHUfx wrote: >>>>>>>>>>>>> Thanks again for this tip Tibold. It seems to be what I'm >>>>>>>>>>>>> after, though I just discovered that QAnimationGroup >>>>>>>>>>>>> doesn't seem to be supported in PySide. I got this error >>>>>>>>>>>>> when I tried to create an instance of it: >>>>>>>>>>>>> >>>>>>>>>>>>> NotImplementedError: 'QAnimationGroup' represents a C++ >>>>>>>>>>>>> abstract class and cannot be instantiated >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> I will try and add all widgets to one "page" widget >>>>>>>>>>>>> (whatever that may be, I need to find out yet), and then >>>>>>>>>>>>> apply the animation to that. >>>>>>>>>>>>> Fingers crossed... >>>>>>>>>>>>> >>>>>>>>>>>>> Cheers, >>>>>>>>>>>>> frank >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> On 4/4/12 7:29 PM, Tibold Kandrai wrote: >>>>>>>>>>>>>> Hey! >>>>>>>>>>>>>> >>>>>>>>>>>>>> Try QtAnimation: >>>>>>>>>>>>>> http://qt-project.org/doc/qt-4.8/animation-overview.html >>>>>>>>>>>>>> >>>>>>>>>>>>>> I use it with in a QGraphicsWidget, but this should work everywhere AFAIR. >>>>>>>>>>>>>> >>>>>>>>>>>>>> Cheers, >>>>>>>>>>>>>> Tibold >>>>>>>>>>>>>> >>>>>>>>>>>>>> On 04/04/2012 06:46, Frank Rueter | OHUfx wrote: >>>>>>>>>>>>>>> Hi everyone, >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> I'm very new to Qt/PySide and am wondering if it's possible to add an >>>>>>>>>>>>>>> animation effect to, let's say, QStackedLayout, for when the page >>>>>>>>>>>>>>> changes. I guess it'd something similar to the way the AppStore works. >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> In this example I'd like to see the new button "push" the old button out >>>>>>>>>>>>>>> of view when the combobox changes: >>>>>>>>>>>>>>> http://pastebin.com/i5sFgQzE >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> I'm happy to take a good ol' fashioned RTFM, I'm just having a hard time >>>>>>>>>>>>>>> finding the right bit of information out there. >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> Any help would be greatly appreciated. >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> Cheers, >>>>>>>>>>>>>>> frank >>>>>>>>>>>>>>> _______________________________________________ >>>>>>>>>>>>>>> PySide mailing list >>>>>>>>>>>>>>> PySide at qt-project.org >>>>>>>>>>>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> _______________________________________________ >>>>>>>>>>>>>> PySide mailing list >>>>>>>>>>>>>> PySide at qt-project.org >>>>>>>>>>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> _______________________________________________ >>>>>>>>>>>>> PySide mailing list >>>>>>>>>>>>> PySide at qt-project.org >>>>>>>>>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> _______________________________________________ >>>>>>>>>>>> PySide mailing list >>>>>>>>>>>> PySide at qt-project.org >>>>>>>>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>>>>>>>> >>>>>>>>>>> -- >>>>>>>>>>> Tibold Kandrai, >>>>>>>>>>> CEO @ Dotz Team I/S, >>>>>>>>>>> Software developer, consultant >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> _______________________________________________ >>>>>>>>>>> PySide mailing list >>>>>>>>>>> PySide at qt-project.org >>>>>>>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> _______________________________________________ >>>>>>>>>> PySide mailing list >>>>>>>>>> PySide at qt-project.org >>>>>>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> PySide mailing list >>>>>>>>> PySide at qt-project.org >>>>>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> PySide mailing list >>>>>>>> PySide at qt-project.org >>>>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> PySide mailing list >>>>>>> PySide at qt-project.org >>>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>>> >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> PySide mailing list >>>>> PySide at qt-project.org >>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>> >>>> >>>> _______________________________________________ >>>> PySide mailing list >>>> PySide at qt-project.org >>>> http://lists.qt-project.org/mailman/listinfo/pyside >>> >>> >>> >>> _______________________________________________ >>> PySide mailing list >>> PySide at qt-project.org >>> http://lists.qt-project.org/mailman/listinfo/pyside >> >> >> _______________________________________________ >> PySide mailing list >> PySide at qt-project.org >> http://lists.qt-project.org/mailman/listinfo/pyside > -------------- next part -------------- An HTML attachment was scrubbed... URL: From techtonik at gmail.com Thu Apr 12 11:19:45 2012 From: techtonik at gmail.com (anatoly techtonik) Date: Thu, 12 Apr 2012 12:19:45 +0300 Subject: [PySide] Qt Codereview is now opened Message-ID: Good news. Code reviews for Qt projects are now opened to general public and don't require passwords for viewing. https://codereview.qt-project.org/#q,status:open+pyside,n,z -- anatoly t. From techtonik at gmail.com Thu Apr 12 11:24:25 2012 From: techtonik at gmail.com (anatoly techtonik) Date: Thu, 12 Apr 2012 12:24:25 +0300 Subject: [PySide] Qt Project release status Message-ID: Hi again, Now that code reviews are open, what's the status of the first PySide release as a Qt Project? What are the stumbling blocks at the moment? -- anatoly t. From georges.arsouze at gmail.com Thu Apr 12 12:32:15 2012 From: georges.arsouze at gmail.com (Georges Arsouze) Date: Thu, 12 Apr 2012 12:32:15 +0200 Subject: [PySide] How use QGraphicView, setWindow, setViewPort Message-ID: Hi How use QGraphicView, setWindow, setViewPort ? There are files in attachment I have a ui file interfaceDessin1.ui with only a QGraphicView (name zoneDessin) With this file i do interfaceDessin1.py Then i do dessin1.py which use interfaceDessin1 How can i do for drawing lines, points, ... in zoneDessin I want to use int coordinates in zoneDessin or real coordinates of my mathematical universe Sorry for my poor english Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: dessin1.py Type: application/octet-stream Size: 750 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: interfaceDessin1.ui Type: application/octet-stream Size: 591 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: interfaceDessin1.py Type: application/octet-stream Size: 796 bytes Desc: not available URL: From anderson.lizardo at openbossa.org Thu Apr 12 12:48:48 2012 From: anderson.lizardo at openbossa.org (Anderson Lizardo) Date: Thu, 12 Apr 2012 06:48:48 -0400 Subject: [PySide] Qt Codereview is now opened In-Reply-To: References: Message-ID: Hi anatoly, On Thu, Apr 12, 2012 at 5:19 AM, anatoly techtonik wrote: > Good news. Code reviews for Qt projects are now opened to general > public and don't require passwords for viewing. > https://codereview.qt-project.org/#q,status:open+pyside,n,z Good news indeed :) Best Regards, -- Anderson Lizardo Instituto Nokia de Tecnologia - INdT Manaus - Brazil From a.richi at bluewin.ch Thu Apr 12 13:32:03 2012 From: a.richi at bluewin.ch (Aaron Richiger) Date: Thu, 12 Apr 2012 13:32:03 +0200 Subject: [PySide] How use QGraphicView, setWindow, setViewPort In-Reply-To: References: Message-ID: <4F86BD33.9010803@bluewin.ch> Salut Georges J'ai change quelque lignes de votre code et j'ai pris toutes les classes dans une file pour pouvoir publier à pastebin.com: http://pastebin.com/zkVK5eve J'ai simplifié quelques trucs et j'ai introduit le classic MVC pattern avec un controller (classe Controller) entre le interface visuel (classes Ui_fi et Gui dans votre cas) et la logic (pas encore de logic dans votre cas...). Essayez tous et pour dessiner des autres trucs, tu peux voir les possibilités ici: http://www.pyside.org/docs/pyside/PySide/QtGui/QGraphicsScene.html A bientot! Aaron > > Hi > > How use QGraphicView, setWindow, setViewPort ? > > There are files in attachment > > I have a ui file interfaceDessin1.ui with only a QGraphicView (name > zoneDessin) > With this file i do interfaceDessin1.py > Then i do dessin1.py which use interfaceDessin1 > > How can i do for drawing lines, points, ... in zoneDessin > I want to use int coordinates in zoneDessin or real coordinates of my > mathematical universe > > Sorry for my poor english > Regards > > > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside -------------- next part -------------- An HTML attachment was scrubbed... URL: From hugo.lima at openbossa.org Thu Apr 12 21:24:14 2012 From: hugo.lima at openbossa.org (Hugo Parente Lima) Date: Thu, 12 Apr 2012 16:24:14 -0300 Subject: [PySide] Qt Project release status In-Reply-To: References: Message-ID: <201204121624.19139.hugo.lima@openbossa.org> On Thursday 12 April 2012 06:24:25 anatoly techtonik wrote: > Hi again, > > Now that code reviews are open, what's the status of the first PySide > release as a Qt Project? What are the stumbling blocks at the moment? I need to apply two patches and do the release, I plan to do that next week. > -- > anatoly t. > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside -- Hugo Parente Lima INdT - Instituto Nokia de Tecnologia -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part. URL: From techtonik at gmail.com Thu Apr 12 23:16:17 2012 From: techtonik at gmail.com (anatoly techtonik) Date: Fri, 13 Apr 2012 00:16:17 +0300 Subject: [PySide] Qt Project release status In-Reply-To: <201204121624.19139.hugo.lima@openbossa.org> References: <201204121624.19139.hugo.lima@openbossa.org> Message-ID: On Thu, Apr 12, 2012 at 10:24 PM, Hugo Parente Lima wrote: > On Thursday 12 April 2012 06:24:25 anatoly techtonik wrote: >> Hi again, >> >> Now that code reviews are open, what's the status of the first PySide >> release as a Qt Project? What are the stumbling blocks at the moment? > > I need to apply two patches and do the release, I plan to do that next week. That's good to know. Thanks. =) -- anatoly t. From frank at ohufx.com Fri Apr 13 02:48:41 2012 From: frank at ohufx.com (Frank Rueter | OHUfx) Date: Fri, 13 Apr 2012 12:48:41 +1200 Subject: [PySide] use text as a button / hyperlink? Message-ID: <4F8777E9.2000204@ohufx.com> Hi everyone, anther noob question: I'm wondering what the most elegant way is to use a list of QLabels like a group of QRadioButtons. I am after creating a simple list of labels that will drive how a widget in my UI will be sorted ('date', 'name', 'author', etc). I need to do this cause I don't have enough space to use radio buttons which is pretty much the functionality I need. So I thought if I just have clickable labels and make the click drive the sorting action that should work best in my case. How would people approach this? Thanks in advance, frank From frank at ohufx.com Fri Apr 13 03:27:15 2012 From: frank at ohufx.com (Frank Rueter | OHUfx) Date: Fri, 13 Apr 2012 13:27:15 +1200 Subject: [PySide] use text as a button / hyperlink? In-Reply-To: <4F8777E9.2000204@ohufx.com> References: <4F8777E9.2000204@ohufx.com> Message-ID: <4F8780F3.3080002@ohufx.com> I think I found a way but am not quite sure if its' the best way. I subclassed QLabel and (re)implemented the mousePressEvent. While this seems to work I'm not quite sure how to properly use the event argument required in the mousePressEvent. I just assigned a dummy method for now while I'm trying to find the answer to this. Could someone help clarify please? class SortWidget( QLabel ): def __init__( self, parent=None ): super( SortWidget, self).__init__( parent ) def myEvent( self ): pass def mousePressEvent( self, event ): print 'I was clicked' On 4/13/12 12:48 PM, Frank Rueter | OHUfx wrote: > Hi everyone, > > anther noob question: > > I'm wondering what the most elegant way is to use a list of QLabels like > a group of QRadioButtons. > I am after creating a simple list of labels that will drive how a widget > in my UI will be sorted ('date', 'name', 'author', etc). > > I need to do this cause I don't have enough space to use radio buttons > which is pretty much the functionality I need. > So I thought if I just have clickable labels and make the click drive > the sorting action that should work best in my case. > > How would people approach this? > > Thanks in advance, > frank > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside From ludo.visser at gmail.com Fri Apr 13 09:29:47 2012 From: ludo.visser at gmail.com (Ludo Visser) Date: Fri, 13 Apr 2012 09:29:47 +0200 Subject: [PySide] use text as a button / hyperlink? In-Reply-To: <4F8780F3.3080002@ohufx.com> References: <4F8777E9.2000204@ohufx.com> <4F8780F3.3080002@ohufx.com> Message-ID: <20FF671B-F3DE-4EB8-AE8D-73EA7703CEB6@gmail.com> On Apr 13, 2012, at 3:27 am, Frank Rueter | OHUfx wrote: > I think I found a way but am not quite sure if its' the best way. I > subclassed QLabel and (re)implemented the mousePressEvent. > While this seems to work I'm not quite sure how to properly use the > event argument required in the mousePressEvent. I just assigned a dummy > method for now while I'm trying to find the answer to this. > Could someone help clarify please? > > class SortWidget( QLabel ): > > def __init__( self, parent=None ): > super( SortWidget, self).__init__( parent ) > > def myEvent( self ): > pass > > def mousePressEvent( self, event ): > print 'I was clicked' > > > > On 4/13/12 12:48 PM, Frank Rueter | OHUfx wrote: >> Hi everyone, >> >> anther noob question: >> >> I'm wondering what the most elegant way is to use a list of QLabels like >> a group of QRadioButtons. >> I am after creating a simple list of labels that will drive how a widget >> in my UI will be sorted ('date', 'name', 'author', etc). >> >> I need to do this cause I don't have enough space to use radio buttons >> which is pretty much the functionality I need. >> So I thought if I just have clickable labels and make the click drive >> the sorting action that should work best in my case. >> >> How would people approach this? >> >> Thanks in advance, >> frank >> Hi, The only thing your probably need to do is accept the event (http://qt-project.org/doc/qt-4.8/qevent.html#accept): event.accept() Sometimes, if your program is in a state where you don't want to allow sorting, you can ignore the event and/or pass it to the widget's parent. - Ludo From frank at ohufx.com Fri Apr 13 09:35:22 2012 From: frank at ohufx.com (Frank Rueter | OHUfx) Date: Fri, 13 Apr 2012 19:35:22 +1200 Subject: [PySide] use text as a button / hyperlink? In-Reply-To: <20FF671B-F3DE-4EB8-AE8D-73EA7703CEB6@gmail.com> References: <4F8777E9.2000204@ohufx.com> <4F8780F3.3080002@ohufx.com> <20FF671B-F3DE-4EB8-AE8D-73EA7703CEB6@gmail.com> Message-ID: <4F87D73A.90104@ohufx.com> Hi Ludo, that would happen inside the mousePressEvent method, right?! I'm still not clear about the seeming redundancy between the mousePressEvent method and the event method. I'm sure it's just something in the object oriented philosophy that I'm not quite getting. Cheers, frank On 4/13/12 7:29 PM, Ludo Visser wrote: > On Apr 13, 2012, at 3:27 am, Frank Rueter | OHUfx wrote: > >> I think I found a way but am not quite sure if its' the best way. I >> subclassed QLabel and (re)implemented the mousePressEvent. >> While this seems to work I'm not quite sure how to properly use the >> event argument required in the mousePressEvent. I just assigned a dummy >> method for now while I'm trying to find the answer to this. >> Could someone help clarify please? >> >> class SortWidget( QLabel ): >> >> def __init__( self, parent=None ): >> super( SortWidget, self).__init__( parent ) >> >> def myEvent( self ): >> pass >> >> def mousePressEvent( self, event ): >> print 'I was clicked' >> >> >> >> On 4/13/12 12:48 PM, Frank Rueter | OHUfx wrote: >>> Hi everyone, >>> >>> anther noob question: >>> >>> I'm wondering what the most elegant way is to use a list of QLabels like >>> a group of QRadioButtons. >>> I am after creating a simple list of labels that will drive how a widget >>> in my UI will be sorted ('date', 'name', 'author', etc). >>> >>> I need to do this cause I don't have enough space to use radio buttons >>> which is pretty much the functionality I need. >>> So I thought if I just have clickable labels and make the click drive >>> the sorting action that should work best in my case. >>> >>> How would people approach this? >>> >>> Thanks in advance, >>> frank >>> > Hi, > > The only thing your probably need to do is accept the event (http://qt-project.org/doc/qt-4.8/qevent.html#accept): > > event.accept() > > Sometimes, if your program is in a state where you don't want to allow sorting, you can ignore the event and/or pass it to the widget's parent. > > - Ludo > From frank at ohufx.com Fri Apr 13 09:39:07 2012 From: frank at ohufx.com (Frank Rueter | OHUfx) Date: Fri, 13 Apr 2012 19:39:07 +1200 Subject: [PySide] use text as a button / hyperlink? In-Reply-To: <4F87D73A.90104@ohufx.com> References: <4F8777E9.2000204@ohufx.com> <4F8780F3.3080002@ohufx.com> <20FF671B-F3DE-4EB8-AE8D-73EA7703CEB6@gmail.com> <4F87D73A.90104@ohufx.com> Message-ID: <4F87D81B.5020005@ohufx.com> ah, I think the penny just dropped. I thought I need an actual "event" method in my class but I don't, and the event argument for the mousePressEvent simply holds the actual event object. is that correct? On 4/13/12 7:35 PM, Frank Rueter | OHUfx wrote: > Hi Ludo, > > that would happen inside the mousePressEvent method, right?! > I'm still not clear about the seeming redundancy between the > mousePressEvent method and the event method. I'm sure it's just > something in the object oriented philosophy that I'm not quite getting. > > Cheers, > frank > > On 4/13/12 7:29 PM, Ludo Visser wrote: >> On Apr 13, 2012, at 3:27 am, Frank Rueter | OHUfx wrote: >> >>> I think I found a way but am not quite sure if its' the best way. I >>> subclassed QLabel and (re)implemented the mousePressEvent. >>> While this seems to work I'm not quite sure how to properly use the >>> event argument required in the mousePressEvent. I just assigned a dummy >>> method for now while I'm trying to find the answer to this. >>> Could someone help clarify please? >>> >>> class SortWidget( QLabel ): >>> >>> def __init__( self, parent=None ): >>> super( SortWidget, self).__init__( parent ) >>> >>> def myEvent( self ): >>> pass >>> >>> def mousePressEvent( self, event ): >>> print 'I was clicked' >>> >>> >>> >>> On 4/13/12 12:48 PM, Frank Rueter | OHUfx wrote: >>>> Hi everyone, >>>> >>>> anther noob question: >>>> >>>> I'm wondering what the most elegant way is to use a list of QLabels like >>>> a group of QRadioButtons. >>>> I am after creating a simple list of labels that will drive how a widget >>>> in my UI will be sorted ('date', 'name', 'author', etc). >>>> >>>> I need to do this cause I don't have enough space to use radio buttons >>>> which is pretty much the functionality I need. >>>> So I thought if I just have clickable labels and make the click drive >>>> the sorting action that should work best in my case. >>>> >>>> How would people approach this? >>>> >>>> Thanks in advance, >>>> frank >>>> >> Hi, >> >> The only thing your probably need to do is accept the event (http://qt-project.org/doc/qt-4.8/qevent.html#accept): >> >> event.accept() >> >> Sometimes, if your program is in a state where you don't want to allow sorting, you can ignore the event and/or pass it to the widget's parent. >> >> - Ludo >> > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside From frank at ohufx.com Fri Apr 13 10:54:56 2012 From: frank at ohufx.com (Frank Rueter | OHUfx) Date: Fri, 13 Apr 2012 20:54:56 +1200 Subject: [PySide] uncheck button after drag&drop Message-ID: <4F87E9E0.3000703@ohufx.com> Hi everyone, me again :) I just implemented the tutorial on this page into my code as I needed to be able to copy QPushButtons from one widget to another via Drag&Drop. It all works great, accept for the fact that the original button that I drag becomes checked and stays checked after I drop it into the other widget. The example on the above page actually has the same problem accept it doesn't matter in that example. The QPushButton is not set to be checkable and I've tried using setChecked( False ) on the button both in the dragEnterEvent as well as the dropEvent, but to no avail. Any ideas how to make the button uncheck itself after it was dropped? Cheers, frank -------------- next part -------------- An HTML attachment was scrubbed... URL: From ludo.visser at gmail.com Fri Apr 13 11:47:43 2012 From: ludo.visser at gmail.com (Ludo Visser) Date: Fri, 13 Apr 2012 11:47:43 +0200 Subject: [PySide] use text as a button / hyperlink? In-Reply-To: <4F87D81B.5020005@ohufx.com> References: <4F8777E9.2000204@ohufx.com> <4F8780F3.3080002@ohufx.com> <20FF671B-F3DE-4EB8-AE8D-73EA7703CEB6@gmail.com> <4F87D73A.90104@ohufx.com> <4F87D81B.5020005@ohufx.com> Message-ID: On Apr 13, 2012, at 9:39 am, Frank Rueter | OHUfx wrote: > ah, I think the penny just dropped. I thought I need an actual "event" > method in my class but I don't, and the event argument for the > mousePressEvent simply holds the actual event object. > > is that correct? > That is correct. You could also reimplement the event function if you need custom behavior for your widget, but this seems not to be necessary in your case. Bests, Ludo From sebastian at risefx.com Fri Apr 13 13:56:41 2012 From: sebastian at risefx.com (Sebastian Elsner) Date: Fri, 13 Apr 2012 13:56:41 +0200 Subject: [PySide] uncheck button after drag&drop In-Reply-To: <4F87E9E0.3000703@ohufx.com> References: <4F87E9E0.3000703@ohufx.com> Message-ID: <4F881479.7040109@risefx.com> I guess this is a bug in PySide, which may depend on OS. I do not have this behaviour on win xp with newest Pyside and python 26 On 04/13/2012 10:54 AM, Frank Rueter | OHUfx wrote: > Hi everyone, > > me again :) > > I just implemented the tutorial on this page > into my code as I > needed to be able to copy QPushButtons from one widget to another via > Drag&Drop. It all works great, accept for the fact that the original > button that I drag becomes checked and stays checked after I drop it > into the other widget. > The example on the above page actually has the same problem accept it > doesn't matter in that example. > > The QPushButton is not set to be checkable and I've tried using > setChecked( False ) on the button both in the dragEnterEvent as well > as the dropEvent, but to no avail. > > Any ideas how to make the button uncheck itself after it was dropped? > > > Cheers, > frank > > > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside -- Sebastian Elsner - pipeline td - r i s e | fx t: +49 30 20180300 sebastian at risefx.com www.risefx.com r i s e | fx GmbH Schlesische Strasse 28 Aufgang B, 10997 Berlin Geschäftsführer: Sven Pannicke, Robert Pinnow Handelsregister Berlin HRB 106667 B -------------- next part -------------- An HTML attachment was scrubbed... URL: From a.richi at bluewin.ch Fri Apr 13 15:06:16 2012 From: a.richi at bluewin.ch (Aaron Richiger) Date: Fri, 13 Apr 2012 15:06:16 +0200 Subject: [PySide] use text as a button / hyperlink? In-Reply-To: References: <4F8777E9.2000204@ohufx.com> <4F8780F3.3080002@ohufx.com> <20FF671B-F3DE-4EB8-AE8D-73EA7703CEB6@gmail.com> <4F87D73A.90104@ohufx.com> <4F87D81B.5020005@ohufx.com> Message-ID: <4F8824C8.5050408@bluewin.ch> Hello Frank! There are at least two ways of doing this: - Create your own ClickableLabel and emit your own signal for mouse clicks. - Create your own HtmlLabel and use the QLabel-Signal: "linkActivated". You can see a basic implementation of both possibilities in the following paste: http://pastebin.com/Vaxg99P1 See you! Aaron From a.richi at bluewin.ch Fri Apr 13 16:01:02 2012 From: a.richi at bluewin.ch (Aaron Richiger) Date: Fri, 13 Apr 2012 16:01:02 +0200 Subject: [PySide] uncheck button after drag&drop In-Reply-To: <4F881479.7040109@risefx.com> References: <4F87E9E0.3000703@ohufx.com> <4F881479.7040109@risefx.com> Message-ID: <4F88319E.2060907@bluewin.ch> Hello Frank and Sebastian! You are both right... Because you are discussing about different code, I guess. The tutorial indicated by Frank does not work on Mac for me (maybe, I am just to stupid to figure out how to trigger a RightMouseButtonEvent on Mac, but anyways), so I guess, Sebastian tried the code of the tutorial on Windows, where right clicks perfectly work, but they do not leave down the original button. Then I guess, Frank changed the tutorial code slightly to drag and drop with left clicks on MacOS. And there it is, the original button stays down after dragging and I think, this behaviour is platform independent, so Sebastian would get the same problem I guess... But it's not a bug of PySide or Qt, but just the normal behaviour of buttons, if you click them with the left mousebutton. They are looking "down", to repair this, simply call self.setDown(False) in the mouseMoveEvent() method. You get a changed version of the tutorial (not only dragNdrop, but also creating a new widget as Frank wanted) here: http://pastebin.com/GMbcCWYM Play around dragging the buttons with the left mouse button and uncomment the self.setDown() call to see Franks issue platform independent. Lot's of "guesses" and "maybes", but could be the solution... Aaron > I guess this is a bug in PySide, which may depend on OS. I do not have > this behaviour on win xp with newest Pyside and python 26 > > > > > On 04/13/2012 10:54 AM, Frank Rueter | OHUfx wrote: >> Hi everyone, >> >> me again :) >> >> I just implemented the tutorial on this page >> into my code as I >> needed to be able to copy QPushButtons from one widget to another via >> Drag&Drop. It all works great, accept for the fact that the original >> button that I drag becomes checked and stays checked after I drop it >> into the other widget. >> The example on the above page actually has the same problem accept it >> doesn't matter in that example. >> >> The QPushButton is not set to be checkable and I've tried using >> setChecked( False ) on the button both in the dragEnterEvent as well >> as the dropEvent, but to no avail. >> >> Any ideas how to make the button uncheck itself after it was dropped? >> >> >> Cheers, >> frank >> >> >> _______________________________________________ >> PySide mailing list >> PySide at qt-project.org >> http://lists.qt-project.org/mailman/listinfo/pyside > > > -- > Sebastian Elsner - pipeline td - r i s e | fx > > t: +49 30 20180300sebastian at risefx.com > www.risefx.com > > r i s e | fx GmbH > Schlesische Strasse 28 Aufgang B, 10997 Berlin > Geschäftsführer: Sven Pannicke, Robert Pinnow > > Handelsregister Berlin HRB 106667 B > > > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside -------------- next part -------------- An HTML attachment was scrubbed... URL: From frank at ohufx.com Sat Apr 14 05:40:36 2012 From: frank at ohufx.com (Frank Rueter | OHUfx) Date: Sat, 14 Apr 2012 15:40:36 +1200 Subject: [PySide] uncheck button after drag&drop In-Reply-To: <4F88319E.2060907@bluewin.ch> References: <4F87E9E0.3000703@ohufx.com> <4F881479.7040109@risefx.com> <4F88319E.2060907@bluewin.ch> Message-ID: <4F88F1B4.1080604@ohufx.com> Sweet, the setDown() method was what I needed, thanks! It's a little disapointing that the right and middle mouse click events don't seem to work on a mac though. I guess in that case I will have to make sure that the mousePressEvent isn't called when the button is dragged. Is there an elegant way to set some sort of threshold or check if the button was moved a certain distance between the mouseDown and mouseUp events, and if so, don't trigger the mousePressEvent? Will have a play, I might have just answered my own question :-D Cheers, frank On 14/04/12 2:01 AM, Aaron Richiger wrote: > Hello Frank and Sebastian! > > You are both right... Because you are discussing about different code, > I guess. The tutorial indicated by Frank does not work on Mac for me > (maybe, I am just to stupid to figure out how to trigger a > RightMouseButtonEvent on Mac, but anyways), so I guess, Sebastian > tried the code of the tutorial on Windows, where right clicks > perfectly work, but they do not leave down the original button. > Then I guess, Frank changed the tutorial code slightly to drag and > drop with left clicks on MacOS. And there it is, the original button > stays down after dragging and I think, this behaviour is platform > independent, so Sebastian would get the same problem I guess... > But it's not a bug of PySide or Qt, but just the normal behaviour of > buttons, if you click them with the left mousebutton. They are looking > "down", to repair this, simply call self.setDown(False) in the > mouseMoveEvent() method. You get a changed version of the tutorial > (not only dragNdrop, but also creating a new widget as Frank wanted) here: > > http://pastebin.com/GMbcCWYM > > Play around dragging the buttons with the left mouse button and > uncomment the self.setDown() call to see Franks issue platform > independent. > > Lot's of "guesses" and "maybes", but could be the solution... > Aaron > > > >> I guess this is a bug in PySide, which may depend on OS. I do not >> have this behaviour on win xp with newest Pyside and python 26 >> >> >> >> >> On 04/13/2012 10:54 AM, Frank Rueter | OHUfx wrote: >>> Hi everyone, >>> >>> me again :) >>> >>> I just implemented the tutorial on this page >>> into my code as I >>> needed to be able to copy QPushButtons from one widget to another >>> via Drag&Drop. It all works great, accept for the fact that the >>> original button that I drag becomes checked and stays checked after >>> I drop it into the other widget. >>> The example on the above page actually has the same problem accept >>> it doesn't matter in that example. >>> >>> The QPushButton is not set to be checkable and I've tried using >>> setChecked( False ) on the button both in the dragEnterEvent as well >>> as the dropEvent, but to no avail. >>> >>> Any ideas how to make the button uncheck itself after it was dropped? >>> >>> >>> Cheers, >>> frank >>> >>> >>> _______________________________________________ >>> PySide mailing list >>> PySide at qt-project.org >>> http://lists.qt-project.org/mailman/listinfo/pyside >> >> >> -- >> Sebastian Elsner - pipeline td - r i s e | fx >> >> t: +49 30 20180300sebastian at risefx.com >> www.risefx.com >> >> r i s e | fx GmbH >> Schlesische Strasse 28 Aufgang B, 10997 Berlin >> Geschäftsführer: Sven Pannicke, Robert Pinnow >> >> Handelsregister Berlin HRB 106667 B >> >> >> _______________________________________________ >> PySide mailing list >> PySide at qt-project.org >> http://lists.qt-project.org/mailman/listinfo/pyside > > > > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside -------------- next part -------------- An HTML attachment was scrubbed... URL: From frank at ohufx.com Sat Apr 14 05:41:56 2012 From: frank at ohufx.com (Frank Rueter | OHUfx) Date: Sat, 14 Apr 2012 15:41:56 +1200 Subject: [PySide] use text as a button / hyperlink? In-Reply-To: <4F8824C8.5050408@bluewin.ch> References: <4F8777E9.2000204@ohufx.com> <4F8780F3.3080002@ohufx.com> <20FF671B-F3DE-4EB8-AE8D-73EA7703CEB6@gmail.com> <4F87D73A.90104@ohufx.com> <4F87D81B.5020005@ohufx.com> <4F8824C8.5050408@bluewin.ch> Message-ID: <4F88F204.9040209@ohufx.com> Thanks Aaron. Option one is what I have done for now. On 14/04/12 1:06 AM, Aaron Richiger wrote: > Hello Frank! > > There are at least two ways of doing this: > > - Create your own ClickableLabel and emit your own signal for mouse clicks. > - Create your own HtmlLabel and use the QLabel-Signal: "linkActivated". > > You can see a basic implementation of both possibilities in the > following paste: > > http://pastebin.com/Vaxg99P1 > > See you! > Aaron > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside From frank at ohufx.com Mon Apr 16 03:13:57 2012 From: frank at ohufx.com (Frank Rueter | OHUfx) Date: Mon, 16 Apr 2012 13:13:57 +1200 Subject: [PySide] uncheck button after drag&drop In-Reply-To: <4F88F1B4.1080604@ohufx.com> References: <4F87E9E0.3000703@ohufx.com> <4F881479.7040109@risefx.com> <4F88319E.2060907@bluewin.ch> <4F88F1B4.1080604@ohufx.com> Message-ID: <4F8B7255.1070001@ohufx.com> Hi all, in case somebody is interested: I've managed to implement "sloppy clicks", i.e. clicks during which the mouse pointer moves a little bit (happens a lot when using a wacom pen). This was a problem because the buttons need to be "dragable", and the moment the mouseMoveEvent started, the mouseReleaseEvent never got called. So even a 1 pixel shift which feels like a click to the user wouldn't result in the expected behaviour. http://pastebin.com/XK3QguAH I'm not sure if this is the best solution though, as I basically had to enable and implement drop events for the button itself, then compare the position where the button was dropped vs. it's original position. If the distance is within a given threshold (in my case 5 pixels) then the same function is called as is used by the mouseReleaseEvent(). Using the above and the mouseReleaseEvent rather than the mousePressEvent enables me to make the buttons "dragable" with the same mouse button as they are clicked with, and be able to differentiate between dragging event and a "sloppy" click. I don't feel this is the right way to go about it though, so any suggestions on how to do this more elegantly would be appreciated. Cheers, frank On 4/14/12 3:40 PM, Frank Rueter | OHUfx wrote: > Sweet, the setDown() method was what I needed, thanks! > It's a little disapointing that the right and middle mouse click > events don't seem to work on a mac though. > > I guess in that case I will have to make sure that the mousePressEvent > isn't called when the button is dragged. Is there an elegant way to > set some sort of threshold or check if the button was moved a certain > distance between the mouseDown and mouseUp events, and if so, don't > trigger the mousePressEvent? Will have a play, I might have just > answered my own question :-D > > Cheers, > frank > > On 14/04/12 2:01 AM, Aaron Richiger wrote: >> Hello Frank and Sebastian! >> >> You are both right... Because you are discussing about different >> code, I guess. The tutorial indicated by Frank does not work on Mac >> for me (maybe, I am just to stupid to figure out how to trigger a >> RightMouseButtonEvent on Mac, but anyways), so I guess, Sebastian >> tried the code of the tutorial on Windows, where right clicks >> perfectly work, but they do not leave down the original button. >> Then I guess, Frank changed the tutorial code slightly to drag and >> drop with left clicks on MacOS. And there it is, the original button >> stays down after dragging and I think, this behaviour is platform >> independent, so Sebastian would get the same problem I guess... >> But it's not a bug of PySide or Qt, but just the normal behaviour of >> buttons, if you click them with the left mousebutton. They are >> looking "down", to repair this, simply call self.setDown(False) in >> the mouseMoveEvent() method. You get a changed version of the >> tutorial (not only dragNdrop, but also creating a new widget as Frank >> wanted) here: >> >> http://pastebin.com/GMbcCWYM >> >> Play around dragging the buttons with the left mouse button and >> uncomment the self.setDown() call to see Franks issue platform >> independent. >> >> Lot's of "guesses" and "maybes", but could be the solution... >> Aaron >> >> >> >>> I guess this is a bug in PySide, which may depend on OS. I do not >>> have this behaviour on win xp with newest Pyside and python 26 >>> >>> >>> >>> >>> On 04/13/2012 10:54 AM, Frank Rueter | OHUfx wrote: >>>> Hi everyone, >>>> >>>> me again :) >>>> >>>> I just implemented the tutorial on this page >>>> into my code as I >>>> needed to be able to copy QPushButtons from one widget to another >>>> via Drag&Drop. It all works great, accept for the fact that the >>>> original button that I drag becomes checked and stays checked after >>>> I drop it into the other widget. >>>> The example on the above page actually has the same problem accept >>>> it doesn't matter in that example. >>>> >>>> The QPushButton is not set to be checkable and I've tried using >>>> setChecked( False ) on the button both in the dragEnterEvent as >>>> well as the dropEvent, but to no avail. >>>> >>>> Any ideas how to make the button uncheck itself after it was dropped? >>>> >>>> >>>> Cheers, >>>> frank >>>> >>>> >>>> _______________________________________________ >>>> PySide mailing list >>>> PySide at qt-project.org >>>> http://lists.qt-project.org/mailman/listinfo/pyside >>> >>> >>> -- >>> Sebastian Elsner - pipeline td - r i s e | fx >>> >>> t: +49 30 20180300sebastian at risefx.com >>> www.risefx.com >>> >>> r i s e | fx GmbH >>> Schlesische Strasse 28 Aufgang B, 10997 Berlin >>> Geschäftsführer: Sven Pannicke, Robert Pinnow >>> >>> Handelsregister Berlin HRB 106667 B >>> >>> >>> _______________________________________________ >>> PySide mailing list >>> PySide at qt-project.org >>> http://lists.qt-project.org/mailman/listinfo/pyside >> >> >> >> _______________________________________________ >> PySide mailing list >> PySide at qt-project.org >> http://lists.qt-project.org/mailman/listinfo/pyside > > > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside -------------- next part -------------- An HTML attachment was scrubbed... URL: From bradley at baysmith.com Mon Apr 16 05:57:35 2012 From: bradley at baysmith.com (Bradley Smith) Date: Sun, 15 Apr 2012 20:57:35 -0700 Subject: [PySide] uncheck button after drag&drop In-Reply-To: <4F8B7255.1070001@ohufx.com> References: <4F87E9E0.3000703@ohufx.com> <4F881479.7040109@risefx.com> <4F88319E.2060907@bluewin.ch> <4F88F1B4.1080604@ohufx.com> <4F8B7255.1070001@ohufx.com> Message-ID: > > in case somebody is interested: > I've managed to implement "sloppy clicks", i.e. clicks during which the > mouse pointer moves a little bit (happens a lot when using a wacom pen). > This was a problem because the buttons need to be "dragable", and the > moment the mouseMoveEvent started, the mouseReleaseEvent never got called. > So even a 1 pixel shift which feels like a click to the user wouldn't > result in the expected behaviour. > I don't think of it as sloppy clicks, but as not enough movement to start a drag. In the mouseMoveEvent handler, I would check that the manhattan distance over the 5 pixels and only then start the drag. I would also remove the check of the manhattan distance in the dropEvent handler. Even if the item is dragged away and then dropped exactly back at the start position, the operation should be seen as a drag/drop not a click. A click will occur only if the mouse is pressed and then released without ever moving more than 5 pixels from the press position. Bradley -------------- next part -------------- An HTML attachment was scrubbed... URL: From frank at ohufx.com Mon Apr 16 07:43:24 2012 From: frank at ohufx.com (Frank Rueter | OHUfx) Date: Mon, 16 Apr 2012 17:43:24 +1200 Subject: [PySide] uncheck button after drag&drop In-Reply-To: References: <4F87E9E0.3000703@ohufx.com> <4F881479.7040109@risefx.com> <4F88319E.2060907@bluewin.ch> <4F88F1B4.1080604@ohufx.com> <4F8B7255.1070001@ohufx.com> Message-ID: <4F8BB17C.4040809@ohufx.com> yeah, I just liked the name "sloppy click" :) totally agree though, and I guess that's why I was asking for help. I initially tried to read out how far the mouse is moving inside of the mouseMoveEvent but couldn't get it right. I used: setMouseTracking( True ) curPos = event.pos() but curPos is not evaluated until after the mouse button is released the first time. That's why I implemented the drag event to access the coordinates through that. But, of course as you pointed out, I want to avoid the drag event until the mouse has moved a certain distance. Do you have an example of how to read the cursor position in the mouseMoveEvent? Cheers, frank On 4/16/12 3:57 PM, Bradley Smith wrote: > > in case somebody is interested: > I've managed to implement "sloppy clicks", i.e. clicks during > which the mouse pointer moves a little bit (happens a lot when > using a wacom pen). This was a problem because the buttons need to > be "dragable", and the moment the mouseMoveEvent started, the > mouseReleaseEvent never got called. So even a 1 pixel shift which > feels like a click to the user wouldn't result in the expected > behaviour. > > > I don't think of it as sloppy clicks, but as not enough movement to > start a drag. In the mouseMoveEvent handler, I would check that the > manhattan distance over the 5 pixels and only then start the drag. I > would also remove the check of the manhattan distance in the dropEvent > handler. Even if the item is dragged away and then dropped exactly > back at the start position, the operation should be seen as a > drag/drop not a click. A click will occur only if the mouse is pressed > and then released without ever moving more than 5 pixels from the > press position. > > Bradley > -------------- next part -------------- An HTML attachment was scrubbed... URL: From frank at ohufx.com Mon Apr 16 13:54:20 2012 From: frank at ohufx.com (Frank Rueter | OHUfx) Date: Mon, 16 Apr 2012 23:54:20 +1200 Subject: [PySide] animated fade Message-ID: <4F8C086C.9060506@ohufx.com> Hi guys, I'm currently looking at an example that cross fades two widgets when the respective button is pushed. I have made a slight change to the sample code so that there is a button on each page that is meant to start the cross fade animation back to the other page (and therefore fade out itself). Looking at the terminal output, I can see the animation running and printing the incremental value changes, but the pages don't visibly animate when using the new buttons. http://pastebin.com/eTDpxiKM When I use the old buttons at the bottom of the widget (the ones that aren't part of the animated widgets), it all works as expected. Both sets of buttons are hooked up to the same slot. What am I doing wrong? Cheers, frank From frank at ohufx.com Mon Apr 16 22:53:44 2012 From: frank at ohufx.com (Frank Rueter | OHUfx) Date: Tue, 17 Apr 2012 08:53:44 +1200 Subject: [PySide] animated fade In-Reply-To: <4F8C086C.9060506@ohufx.com> References: <4F8C086C.9060506@ohufx.com> Message-ID: <4F8C86D8.5070105@ohufx.com> DOH! I had the buttons hooked up back to front, my apologies! Was sitting in front of the computer too long and didn't see the forest for the trees. On 16/04/12 11:54 PM, Frank Rueter | OHUfx wrote: > Hi guys, > > I'm currently looking at an example that cross fades two widgets when > the respective button is pushed. > > I have made a slight change to the sample code so that there is a button > on each page that is meant to start the cross fade animation back to the > other page (and therefore fade out itself). Looking at the terminal > output, I can see the animation running and printing the incremental > value changes, but the pages don't visibly animate when using the new > buttons. > > http://pastebin.com/eTDpxiKM > > When I use the old buttons at the bottom of the widget (the ones that > aren't part of the animated widgets), it all works as expected. Both > sets of buttons are hooked up to the same slot. > > What am I doing wrong? > > Cheers, > frank > > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside From bradley at baysmith.com Mon Apr 16 23:00:09 2012 From: bradley at baysmith.com (Bradley Smith) Date: Mon, 16 Apr 2012 14:00:09 -0700 Subject: [PySide] uncheck button after drag&drop In-Reply-To: <4F8BB17C.4040809@ohufx.com> References: <4F87E9E0.3000703@ohufx.com> <4F881479.7040109@risefx.com> <4F88319E.2060907@bluewin.ch> <4F88F1B4.1080604@ohufx.com> <4F8B7255.1070001@ohufx.com> <4F8BB17C.4040809@ohufx.com> Message-ID: > > Do you have an example of how to read the cursor position in the > mouseMoveEvent? > Not with pyside, but here is the behavior I'm describing implemented with C++: http://pastebin.com/ZmWUJ6hb Bradley -------------- next part -------------- An HTML attachment was scrubbed... URL: From hugo.lima at openbossa.org Thu Apr 19 22:02:52 2012 From: hugo.lima at openbossa.org (Hugo Parente Lima) Date: Thu, 19 Apr 2012 17:02:52 -0300 Subject: [PySide] PySide 1.1.1 - "Free Hugs": Python for Qt released! Message-ID: <1504846.kpc0dmMpO8@hugodesktop> The PySide team is proud to announce the new release version 1.1.1 of PySide project. Major changes ============== - Unified toolchain! No more GeneratorRunner and ApiExtractor, now you just need Shiboken to compile PySide. - Bug Fixes; Current status of Mac/Windows support ===================================== There are no PySide core developers using Windows or Mac and no more PySide build bots, so if you really want to see PySide running on those platforms better you do something. Contributions are welcome! About PySide ============ PySide is the Python Qt bindings project, providing access the complete Qt 4.8 framework as well as to generator tools for rapidly generating bindings for any C++ libraries. The PySide project is developed in the open, with all facilities you'd expect from any modern OSS project such as all code in a git repository [1], an open bug tracking [2] for reporting bugs, and an open design process [3]. List of bugs fixed ================== 1105 Spyder fails with HEAD 1126 Segfault when exception is raised in signalInstanceDisconnect 1135 SIGSEGV when loading custom widget using QUiLoader when overriding createWidget() 1041 QAbstractItemModel has wrong ownership policy for selectionModel() 1086 generatorrunner segfault processing #include 1110 Concurrency error causes GC heap corruption 1113 Instantiating QObject in user-defined QML element's constructor crashes if instantiated from QML 1129 Segmentation fault on close by QStandardItem/QStandardItemModel 1104 QSettings has problems with long integers 1108 tests/QtGui/pyside_reload_test.py fails when bytecode writing is disabled 1138 Subclassing of QUiLoader leads to "Internal C++ object already deleted" exception (again) 1124 QPainter.drawPixmapFragments should take a list as first argument 1065 Invalid example in QFileDialog documentation 1092 shiboken names itself a 'generator' 1094 shiboken doesn't complain about invalid options 1044 Incorrect call to parent constructor in example 1139 Crash at exit due to thread state (tstate) being NULL PYSIDE-41 QModelIndex unhashable Download ======== The files can be downloaded from PySide download page[4] References ========== [1] http://qt.gitorious.org/pyside [2] https://bugreports.qt-project.org/browse/PYSIDE [3] http://www.pyside.org/docs/pseps/psep-0001.html [4] http://developer.qt.nokia.com/wiki/PySideDownloads -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part. URL: From mail at markus-ullmann.de Thu Apr 19 23:43:27 2012 From: mail at markus-ullmann.de (Markus Ullmann) Date: Thu, 19 Apr 2012 21:43:27 +0000 Subject: [PySide] PySide 1.1.1 - "Free Hugs": Python for Qt released! In-Reply-To: <1504846.kpc0dmMpO8@hugodesktop> References: <1504846.kpc0dmMpO8@hugodesktop> Message-ID: Hi, I will continue to provide builds for OS X as I did in the past. In fact, a version for Py2.7/Qt4.8 is already up, the one for Py2.6 will follow shortly. Best Regards, Markus Am 19.04.2012 um 22:02 schrieb Hugo Parente Lima: > Current status of Mac/Windows support > ===================================== > > There are no PySide core developers using Windows or Mac and no more > PySide build bots, so if you really want to see PySide running on those > platforms better you do something. Contributions are welcome! From blair at orcaware.com Fri Apr 20 00:07:18 2012 From: blair at orcaware.com (Blair Zajac) Date: Thu, 19 Apr 2012 15:07:18 -0700 Subject: [PySide] PySide 1.1.1 - "Free Hugs": Python for Qt released! In-Reply-To: References: <1504846.kpc0dmMpO8@hugodesktop> Message-ID: <56C19813-76FA-46D3-9B3E-5EEF4456934C@orcaware.com> MacPorts also provides PySide packages: $ port list \*pyside\* py-pyside @1.1.0 python/py-pyside py-pyside-tools @0.2.13 python/py-pyside-tools py25-pyside @1.1.0 python/py-pyside py25-pyside-tools @0.2.13 python/py-pyside-tools py26-pyside @1.1.0 python/py-pyside py26-pyside-tools @0.2.13 python/py-pyside-tools py27-pyside @1.1.0 python/py-pyside py27-pyside-tools @0.2.13 python/py-pyside-tools Blair On Apr 19, 2012, at 2:43 PM, Markus Ullmann wrote: > Hi, > > I will continue to provide builds for OS X as I did in the past. In fact, a version for Py2.7/Qt4.8 is already up, the one for Py2.6 will follow shortly. > > Best Regards, > Markus > > Am 19.04.2012 um 22:02 schrieb Hugo Parente Lima: >> Current status of Mac/Windows support >> ===================================== >> >> There are no PySide core developers using Windows or Mac and no more >> PySide build bots, so if you really want to see PySide running on those >> platforms better you do something. Contributions are welcome! > > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside > From hugo.lima at openbossa.org Fri Apr 20 01:15:17 2012 From: hugo.lima at openbossa.org (Hugo Parente Lima) Date: Thu, 19 Apr 2012 20:15:17 -0300 Subject: [PySide] PySide 1.1.1 - "Free Hugs": Python for Qt released! In-Reply-To: References: <1504846.kpc0dmMpO8@hugodesktop> Message-ID: <6420989.QR2NcmpCbA@hugodesktop> On Thursday, April 19, 2012 09:43:27 PM Markus Ullmann wrote: > Hi, > > I will continue to provide builds for OS X as I did in the past. In fact, a > version for Py2.7/Qt4.8 is already up, the one for Py2.6 will follow > shortly. Hi Markus, The problem isn't the existence of the packages, you are doing a great job with this, really. The problem is that nobody test if PySide builds on Mac or Windows until it gets released resulting in broken releases :-/. Regards, Hugo > Best Regards, > Markus > > Am 19.04.2012 um 22:02 schrieb Hugo Parente Lima: > > Current status of Mac/Windows support > > ===================================== > > > > There are no PySide core developers using Windows or Mac and no more > > PySide build bots, so if you really want to see PySide running on those > > platforms better you do something. Contributions are welcome! > > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside From anderson.lizardo at openbossa.org Fri Apr 20 14:43:39 2012 From: anderson.lizardo at openbossa.org (Anderson Lizardo) Date: Fri, 20 Apr 2012 08:43:39 -0400 Subject: [PySide] PySide 1.1.1 - "Free Hugs": Python for Qt released! In-Reply-To: <6420989.QR2NcmpCbA@hugodesktop> References: <1504846.kpc0dmMpO8@hugodesktop> <6420989.QR2NcmpCbA@hugodesktop> Message-ID: Hi Hugo, On Thu, Apr 19, 2012 at 7:15 PM, Hugo Parente Lima wrote: > The problem isn't the existence of the packages, you are doing a great job > with this, really. The problem is that nobody test if PySide builds on Mac or > Windows until it gets released resulting in broken releases :-/. One "solution" to this problem is to launch at least one candidate release (-rcX) version prior to the final one, and ask for Mac/Windows builders volunteers to do at least some minimal "build && ctest" sanity check. Of course a buildbot is better, if we can arrange a way to get one running again. If no one complains on the -rcX, it can be released sometime later (one week?) as final. If problems arise, there is always the "minor build fix release" option :) Regards, -- Anderson Lizardo From expo at expobrain.net Fri Apr 20 14:55:53 2012 From: expo at expobrain.net (Daniele Esposti) Date: Fri, 20 Apr 2012 13:55:53 +0100 Subject: [PySide] PySide 1.1.1 - "Free Hugs": Python for Qt released! In-Reply-To: References: <1504846.kpc0dmMpO8@hugodesktop> <6420989.QR2NcmpCbA@hugodesktop> Message-ID: Hi guys, I volunteer for testing the builds on Mac and Windows, let me know what's your official procedure to test the binaries. On 20 April 2012 13:43, Anderson Lizardo wrote: > Hi Hugo, > > On Thu, Apr 19, 2012 at 7:15 PM, Hugo Parente Lima > wrote: >> The problem isn't the existence of the packages, you are doing a great job >> with this, really. The problem is that nobody test if PySide builds on Mac or >> Windows until it gets released resulting in broken releases :-/. > > One "solution" to this problem is to launch at least one candidate > release (-rcX) version prior to the final one, and ask for Mac/Windows > builders volunteers to do at least some minimal "build && ctest" > sanity check. Of course a buildbot is better, if we can arrange a way > to get one running again. > > If no one complains on the -rcX, it can be released sometime later > (one week?) as final. If problems arise, there is always the "minor > build fix release" option :) > > Regards, > -- > Anderson Lizardo > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside -- Daniele Esposti My Blog http://www.expobrain.net LinkedIn http://www.linkedin.com/in/danieleesposti Twitter http://www.twitter.com/#!/expobrain From paulo.alcantara at openbossa.org Fri Apr 20 15:19:14 2012 From: paulo.alcantara at openbossa.org (paulo alcantara) Date: Fri, 20 Apr 2012 10:19:14 -0300 Subject: [PySide] PySide 1.1.1 - "Free Hugs": Python for Qt released! In-Reply-To: References: <1504846.kpc0dmMpO8@hugodesktop> <6420989.QR2NcmpCbA@hugodesktop> Message-ID: Hi Daniele, On Fri, Apr 20, 2012 at 9:55 AM, Daniele Esposti wrote: > Hi guys, > > I volunteer for testing the builds on Mac and Windows, let me know > what's your official procedure to test the binaries. The procedure is basically to build a debug or non-debug version of PySide, run "ctest" (for each build), and then see if all tests went ok on every build. -pcacjr From expo at expobrain.net Fri Apr 20 15:29:28 2012 From: expo at expobrain.net (Daniele Esposti) Date: Fri, 20 Apr 2012 14:29:28 +0100 Subject: [PySide] PySide 1.1.1 - "Free Hugs": Python for Qt released! In-Reply-To: References: <1504846.kpc0dmMpO8@hugodesktop> <6420989.QR2NcmpCbA@hugodesktop> Message-ID: Hi Paulo, and what about reporting issues, I'll post the results on the mailing list or I'll create a Jira's ticket? On 20 April 2012 14:19, paulo alcantara wrote: > Hi Daniele, > > On Fri, Apr 20, 2012 at 9:55 AM, Daniele Esposti wrote: >> Hi guys, >> >> I volunteer for testing the builds on Mac and Windows, let me know >> what's your official procedure to test the binaries. > > The procedure is basically to build a debug or non-debug version of > PySide, run "ctest" > (for each build), and then see if all tests went ok on every build. > >        -pcacjr -- Daniele Esposti My Blog http://www.expobrain.net LinkedIn http://www.linkedin.com/in/danieleesposti Twitter http://www.twitter.com/#!/expobrain From paulo.alcantara at openbossa.org Fri Apr 20 15:35:31 2012 From: paulo.alcantara at openbossa.org (paulo alcantara) Date: Fri, 20 Apr 2012 10:35:31 -0300 Subject: [PySide] PySide 1.1.1 - "Free Hugs": Python for Qt released! In-Reply-To: References: <1504846.kpc0dmMpO8@hugodesktop> <6420989.QR2NcmpCbA@hugodesktop> Message-ID: Hi Daniele, On Fri, Apr 20, 2012 at 10:29 AM, Daniele Esposti wrote: > and what about reporting issues, I'll post the results on the mailing > list or I'll create a Jira's ticket? It would be better to initially post the results on the mailing list. If we find out an issue from a build yours, for example, we can then file a new bug. -pcacjr From hugo.lima at openbossa.org Fri Apr 20 18:13:55 2012 From: hugo.lima at openbossa.org (Hugo Parente Lima) Date: Fri, 20 Apr 2012 13:13:55 -0300 Subject: [PySide] PySide 1.1.1 - "Free Hugs": Python for Qt released! In-Reply-To: References: <1504846.kpc0dmMpO8@hugodesktop> <6420989.QR2NcmpCbA@hugodesktop> Message-ID: <3149390.CYfu8DQJ2y@hugodesktop> On Friday, April 20, 2012 08:43:39 AM Anderson Lizardo wrote: > Hi Hugo, > > On Thu, Apr 19, 2012 at 7:15 PM, Hugo Parente Lima > > wrote: > > The problem isn't the existence of the packages, you are doing a great job > > with this, really. The problem is that nobody test if PySide builds on Mac > > or Windows until it gets released resulting in broken releases :-/. > > One "solution" to this problem is to launch at least one candidate > release (-rcX) version prior to the final one, and ask for Mac/Windows > builders volunteers to do at least some minimal "build && ctest" > sanity check. Of course a buildbot is better, if we can arrange a way > to get one running again. I think this is the best solution for the current scenario, but sometimes the problem isn't only test the build, but fix the issues found. > If no one complains on the -rcX, it can be released sometime later > (one week?) as final. If problems arise, there is always the "minor > build fix release" option :) > > Regards, -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part. URL: From nathanjsmith at gmail.com Fri Apr 20 21:39:39 2012 From: nathanjsmith at gmail.com (Nathan Smith) Date: Fri, 20 Apr 2012 14:39:39 -0500 Subject: [PySide] Release 1.1.1 bug 1041 regression Message-ID: First off, congratulations on getting the first release out the door after such a major change! This version so far seems very stable. Release 1.1.1 has bug 1041 in its list of fixed bugs, but unfortunately the fix for that seems to have been lost in the travels between the old and new systems. The fix was to change the return policy on the QAbstractItemView.selectionModel() method to mirror that of QAbstractItemView.model()'s return policy. Below is a patch for this bug against the latest version in the repository: diff --git a/PySide/QtGui/typesystem_gui_common.xml b/PySide/QtGui/typesystem_gui_common.xml index 552636a..ab97ee1 100644 --- a/PySide/QtGui/typesystem_gui_common.xml +++ b/PySide/QtGui/typesystem_gui_common.xml @@ -1890,6 +1890,13 @@ + + + + + + Nathan -------------- next part -------------- An HTML attachment was scrubbed... URL: From Thorsten.Kaufmann at mackevision.de Fri Apr 20 21:51:56 2012 From: Thorsten.Kaufmann at mackevision.de (Thorsten Kaufmann) Date: Fri, 20 Apr 2012 21:51:56 +0200 Subject: [PySide] PySide 1.1.1 - "Free Hugs": Python for Qt released! In-Reply-To: <1504846.kpc0dmMpO8@hugodesktop> References: <1504846.kpc0dmMpO8@hugodesktop> Message-ID: Hey there, my last reply went to Daniele only. Sorry! What buildbot has been used before and are there working setups/configs available? (=Is it a matter of providing hardware/computing resources?) Regards, Thorsten Thorsten Kaufmann Head of Production ____________________________________ Mackevision Medien Design GmbH Forststraße 7 D-70174 Stuttgart T +49 711 93 30 48 31 F +49 711 93 30 48 90 M +49 151 19 55 55 02 Thorsten.Kaufmann at mackevision.de http://www.mackevision.de Geschäftsführer: Armin Pohl, Joachim Lincke, Karin Suttheimer HRB 243735 Amtsgericht Stuttgart -----Ursprüngliche Nachricht----- Von: pyside-bounces+thorsten.kaufmann=mackevision.de at qt-project.org [mailto:pyside-bounces+thorsten.kaufmann=mackevision.de at qt-project.org] Im Auftrag von Hugo Parente Lima Gesendet: Donnerstag, 19. April 2012 22:03 An: pyside at qt-project.org Betreff: [PySide] PySide 1.1.1 - "Free Hugs": Python for Qt released! The PySide team is proud to announce the new release version 1.1.1 of PySide project. Major changes ============== - Unified toolchain! No more GeneratorRunner and ApiExtractor, now you just need Shiboken to compile PySide. - Bug Fixes; Current status of Mac/Windows support ===================================== There are no PySide core developers using Windows or Mac and no more PySide build bots, so if you really want to see PySide running on those platforms better you do something. Contributions are welcome! About PySide ============ PySide is the Python Qt bindings project, providing access the complete Qt 4.8 framework as well as to generator tools for rapidly generating bindings for any C++ libraries. The PySide project is developed in the open, with all facilities you'd expect from any modern OSS project such as all code in a git repository [1], an open bug tracking [2] for reporting bugs, and an open design process [3]. List of bugs fixed ================== 1105 Spyder fails with HEAD 1126 Segfault when exception is raised in signalInstanceDisconnect 1135 SIGSEGV when loading custom widget using QUiLoader when overriding createWidget() 1041 QAbstractItemModel has wrong ownership policy for selectionModel() 1086 generatorrunner segfault processing #include 1110 Concurrency error causes GC heap corruption 1113 Instantiating QObject in user-defined QML element's constructor crashes if instantiated from QML 1129 Segmentation fault on close by QStandardItem/QStandardItemModel 1104 QSettings has problems with long integers 1108 tests/QtGui/pyside_reload_test.py fails when bytecode writing is disabled 1138 Subclassing of QUiLoader leads to "Internal C++ object already deleted" exception (again) 1124 QPainter.drawPixmapFragments should take a list as first argument 1065 Invalid example in QFileDialog documentation 1092 shiboken names itself a 'generator' 1094 shiboken doesn't complain about invalid options 1044 Incorrect call to parent constructor in example 1139 Crash at exit due to thread state (tstate) being NULL PYSIDE-41 QModelIndex unhashable Download ======== The files can be downloaded from PySide download page[4] References ========== [1] http://qt.gitorious.org/pyside [2] https://bugreports.qt-project.org/browse/PYSIDE [3] http://www.pyside.org/docs/pseps/psep-0001.html [4] http://developer.qt.nokia.com/wiki/PySideDownloads From hugo.lima at openbossa.org Fri Apr 20 23:23:47 2012 From: hugo.lima at openbossa.org (Hugo Parente Lima) Date: Fri, 20 Apr 2012 18:23:47 -0300 Subject: [PySide] PySide 1.1.1 - "Free Hugs": Python for Qt released! In-Reply-To: References: <1504846.kpc0dmMpO8@hugodesktop> Message-ID: <266992356.5zKgnhW7aH@hugodesktop> On Friday, April 20, 2012 09:51:56 PM Thorsten Kaufmann wrote: > Hey there, > > my last reply went to Daniele only. Sorry! > > What buildbot has been used before and are there working setups/configs > available? (=Is it a matter of providing hardware/computing resources?) The setups where available on gitrotious/github repositories but I don't know if they are up to date. The build bots were here at INdT, we used some old computers that later were replaced by a much better computer running the build bot clients on virtual machines. But better than build bots would be developers on those platforms, because build bots can detect failures, but to fix those failures remotely in a pain, mainly on Windows where the command shell is far away of being a half baked shell :-/ > Regards, > Thorsten > > > Thorsten Kaufmann > Head of Production > ____________________________________ > > Mackevision Medien Design GmbH > Forststraße 7 > D-70174 Stuttgart > > T +49 711 93 30 48 31 > F +49 711 93 30 48 90 > M +49 151 19 55 55 02 > > Thorsten.Kaufmann at mackevision.de > http://www.mackevision.de > > Geschäftsführer: Armin Pohl, Joachim Lincke, Karin Suttheimer > HRB 243735 Amtsgericht Stuttgart > -----Ursprüngliche Nachricht----- > Von: pyside-bounces+thorsten.kaufmann=mackevision.de at qt-project.org > [mailto:pyside-bounces+thorsten.kaufmann=mackevision.de at qt-project.org] Im > Auftrag von Hugo Parente Lima Gesendet: Donnerstag, 19. April 2012 22:03 > An: pyside at qt-project.org > Betreff: [PySide] PySide 1.1.1 - "Free Hugs": Python for Qt released! > > The PySide team is proud to announce the new release version 1.1.1 of PySide > project. > > Major changes > ============== > > - Unified toolchain! No more GeneratorRunner and ApiExtractor, now you just > need Shiboken to compile PySide. - Bug Fixes; > > Current status of Mac/Windows support > ===================================== > > There are no PySide core developers using Windows or Mac and no more PySide > build bots, so if you really want to see PySide running on those platforms > better you do something. Contributions are welcome! > > About PySide > ============ > > PySide is the Python Qt bindings project, providing access the complete Qt > 4.8 framework as well as to generator tools for rapidly generating bindings > for any C++ libraries. > > The PySide project is developed in the open, with all facilities you'd > expect from any modern OSS project such as all code in a git repository > [1], an open bug tracking [2] for reporting bugs, and an open design > process [3]. > > List of bugs fixed > ================== > > 1105 Spyder fails with HEAD > 1126 Segfault when exception is raised in signalInstanceDisconnect > 1135 SIGSEGV when loading custom widget using QUiLoader when overriding > createWidget() > 1041 QAbstractItemModel has wrong ownership policy for selectionModel() > 1086 generatorrunner segfault processing #include 1110 > Concurrency error causes GC heap corruption 1113 Instantiating QObject in > user-defined QML element's constructor crashes if instantiated from QML > 1129 Segmentation fault on close by QStandardItem/QStandardItemModel 1104 > QSettings has problems with long integers > 1108 tests/QtGui/pyside_reload_test.py fails when bytecode writing is > disabled 1138 Subclassing of QUiLoader leads to "Internal C++ object > already deleted" exception (again) > 1124 QPainter.drawPixmapFragments should take a list as first argument > 1065 Invalid example in QFileDialog documentation > 1092 shiboken names itself a 'generator' > 1094 shiboken doesn't complain about invalid options > 1044 Incorrect call to parent constructor in example > 1139 Crash at exit due to thread state (tstate) being NULL > PYSIDE-41 QModelIndex unhashable > > Download > ======== > > The files can be downloaded from PySide download page[4] > > > References > ========== > > [1] http://qt.gitorious.org/pyside > [2] https://bugreports.qt-project.org/browse/PYSIDE > [3] http://www.pyside.org/docs/pseps/psep-0001.html > [4] http://developer.qt.nokia.com/wiki/PySideDownloads > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside From hugo.lima at openbossa.org Fri Apr 20 23:32:28 2012 From: hugo.lima at openbossa.org (Hugo Parente Lima) Date: Fri, 20 Apr 2012 18:32:28 -0300 Subject: [PySide] Release 1.1.1 bug 1041 regression In-Reply-To: References: Message-ID: <9271489.J3T0qaWzlE@hugodesktop> On Friday, April 20, 2012 02:39:39 PM Nathan Smith wrote: > First off, congratulations on getting the first release out the door after > such a major change! This version so far seems very stable. > > Release 1.1.1 has bug 1041 in its list of fixed bugs, but unfortunately the > fix for that seems to have been lost in the travels between the old and new > systems. The fix was to change the return policy on the > QAbstractItemView.selectionModel() method to mirror that of > QAbstractItemView.model()'s return policy. Below is a patch for this bug > against the latest version in the repository: Thanks very much for point this issue! The fix was landed. > > diff --git a/PySide/QtGui/typesystem_gui_common.xml > b/PySide/QtGui/typesystem_gui_common.xml > index 552636a..ab97ee1 100644 > --- a/PySide/QtGui/typesystem_gui_common.xml > +++ b/PySide/QtGui/typesystem_gui_common.xml > @@ -1890,6 +1890,13 @@ > > > > + > + > + > + > + > + > > > > > > Nathan From hugo.lima at openbossa.org Fri Apr 20 23:32:28 2012 From: hugo.lima at openbossa.org (Hugo Parente Lima) Date: Fri, 20 Apr 2012 18:32:28 -0300 Subject: [PySide] Release 1.1.1 bug 1041 regression In-Reply-To: References: Message-ID: <9271489.J3T0qaWzlE@hugodesktop> On Friday, April 20, 2012 02:39:39 PM Nathan Smith wrote: > First off, congratulations on getting the first release out the door after > such a major change! This version so far seems very stable. > > Release 1.1.1 has bug 1041 in its list of fixed bugs, but unfortunately the > fix for that seems to have been lost in the travels between the old and new > systems. The fix was to change the return policy on the > QAbstractItemView.selectionModel() method to mirror that of > QAbstractItemView.model()'s return policy. Below is a patch for this bug > against the latest version in the repository: Thanks very much for point this issue! The fix was landed. > > diff --git a/PySide/QtGui/typesystem_gui_common.xml > b/PySide/QtGui/typesystem_gui_common.xml > index 552636a..ab97ee1 100644 > --- a/PySide/QtGui/typesystem_gui_common.xml > +++ b/PySide/QtGui/typesystem_gui_common.xml > @@ -1890,6 +1890,13 @@ > > > > + > + > + > + > + > + > > > > > > Nathan From techtonik at gmail.com Sat Apr 21 08:46:36 2012 From: techtonik at gmail.com (anatoly techtonik) Date: Sat, 21 Apr 2012 09:46:36 +0300 Subject: [PySide] Working with Windows shell (Was: PySide 1.1.1 - "Free Hugs": Python for Qt released!) Message-ID: On Sat, Apr 21, 2012 at 12:23 AM, Hugo Parente Lima wrote: > > But better than build bots would be developers on those platforms, because > build bots can detect failures, but to fix those failures remotely in a pain, > mainly on Windows where the command shell is far away of being a half baked > shell :-/ Use Far Manager - http://farmanager.com/ - it's a BSD licensed intuitive interface for working with files from console. Cheatsheet: - use F1 - it really helps; - user menu - F2 - for frequently called commands (Alt-F8 for command history); - command line helpers - output redirection view:< svn up - redirect to editor edit:< svn up - Ctrl-O to hide panels (Ctrl-Alt-Shift to temporary hide) - Alt-Ins (select and copy text on screen) - Alt-F7 - search for files - Alt- - quick jump to file in current panel - macros: - press Ctrl-. - do something - press Ctrl-. again, assign a shortcut - press shortcut - you action is repeated - ??? - profit - install Colorer plugin to get syntax highlighting in editor http://sourceforge.net/projects/colorer/files/FAR%20Colorer/ - use F11 to control plugins (FAR Macro browser allows to edit macros, for example) That should be enough for the starter. -- anatoly t. From techtonik at gmail.com Sat Apr 21 08:48:27 2012 From: techtonik at gmail.com (anatoly techtonik) Date: Sat, 21 Apr 2012 09:48:27 +0300 Subject: [PySide] PySide 1.1.1 - "Free Hugs": Python for Qt released! In-Reply-To: References: <1504846.kpc0dmMpO8@hugodesktop> <6420989.QR2NcmpCbA@hugodesktop> Message-ID: On Fri, Apr 20, 2012 at 4:19 PM, paulo alcantara wrote: > Hi Daniele, > > On Fri, Apr 20, 2012 at 9:55 AM, Daniele Esposti wrote: >> Hi guys, >> >> I volunteer for testing the builds on Mac and Windows, let me know >> what's your official procedure to test the binaries. > > The procedure is basically to build a debug or non-debug version of > PySide, run "ctest" > (for each build), and then see if all tests went ok on every build. Can we add functionality to run tests automatically to the BuildScript package? How long does it take to run them? -- anatoly t. From techtonik at gmail.com Sat Apr 21 09:25:42 2012 From: techtonik at gmail.com (anatoly techtonik) Date: Sat, 21 Apr 2012 10:25:42 +0300 Subject: [PySide] PySide 1.1.1 - "Free Hugs": Python for Qt released! In-Reply-To: <266992356.5zKgnhW7aH@hugodesktop> References: <1504846.kpc0dmMpO8@hugodesktop> <266992356.5zKgnhW7aH@hugodesktop> Message-ID: On Sat, Apr 21, 2012 at 12:23 AM, Hugo Parente Lima wrote: > On Friday, April 20, 2012 09:51:56 PM Thorsten Kaufmann wrote: >> Hey there, >> >> my last reply went to Daniele only. Sorry! >> >> What buildbot has been used before and are there working setups/configs >> available? (=Is it a matter of providing hardware/computing resources?) > > The setups where available on gitrotious/github repositories but I don't know > if they are up to date. Last commit is a year ago. https://github.com/PySide/Buildbot -- anatoly t. From expo at expobrain.net Sun Apr 22 13:52:19 2012 From: expo at expobrain.net (Daniele Esposti) Date: Sun, 22 Apr 2012 12:52:19 +0100 Subject: [PySide] PySide 1.1.1 Mac ctest results Message-ID: Hi guys, I built shiboken and pyside from the 1.1.1 tag and ran ctest. All test passed for shiboken, but 2 tests fails or pyside: 343 - QtWebKit_bug_959 (SEGFAULT) 346 - QtWebKit_shouldInterruptjavascript_test (Timeout) I've attached the report for the 343's segfault -- Daniele Esposti My Blog http://www.expobrain.net LinkedIn http://www.linkedin.com/in/danieleesposti Twitter http://www.twitter.com/#!/expobrain -------------- next part -------------- A non-text attachment was scrubbed... Name: segfault.txt.zip Type: application/zip Size: 15078 bytes Desc: not available URL: From odyx at debian.org Sun Apr 22 22:38:52 2012 From: odyx at debian.org (Didier Raboud) Date: Sun, 22 Apr 2012 22:38:52 +0200 Subject: [PySide] PySide 1.1.1 Debian ctest results Message-ID: Hi all, I built and uploaded shiboken and pyside from the 1.1.1 tarballs to Debian unstable and run my analysis script over the build logs to catch the failed tests. Here are the results. Build logs for all Debian architectures: https://buildd.debian.org/status/logs.php?pkg=shiboken&ver=1.1.1-1 https://buildd.debian.org/status/logs.php?pkg=pyside&ver=1.1.1-1 Analysis for all currently built architectures: http://alioth.debian.org/~odyx- guest/packages/pyside/shiboken_1.1.1-1_analysis.txt http://alioth.debian.org/~odyx- guest/packages/pyside/pyside_1.1.1-1_analysis.txt So in short: all test pass for shiboken, but there are some tests that fail for PySide: * QtCore_qproperty_decorator fails on all architectures in python2.6; * QtWebKit_bug_959 segfaults on all architectures with any python version; * QtCore_qfile_test fails on 32 bits architectures on python3.2; * sparc apparently has a disfunctional QtDeclarative (either in Qt or in PySide). Do you need more information from what is here ? Cheers, OdyX From toddrme2178 at gmail.com Mon Apr 23 15:00:12 2012 From: toddrme2178 at gmail.com (todd rme) Date: Mon, 23 Apr 2012 15:00:12 +0200 Subject: [PySide] Can't build with -Dshiboken_SUFFIX Message-ID: I am trying to do a parallel install of pyside and shiboken on python 2 and python 3 under linux. I tried setting the cmake variable -Dshiboken_SUFFIX="-python3.2". However, it gives the following error when I do so: Linking CXX executable shiboken-python3.2 [ 96%] Built target shiboken [ 98%] Running generator for 'shiboken'... /bin/sh: /home/abuild/rpmbuild/BUILD/shiboken-1.1.1/build/generator/shiboken: No such file or directory make[2]: *** [shibokenmodule/shiboken/shiboken_module_wrapper.cpp] Error 127 make[1]: *** [shibokenmodule/CMakeFiles/shibokenmodule.dir/all] Error 2 make: *** [all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.D3ll4U (%build) Is there any way to fix this, or a better way to achieve a parallel installation? -Todd From hugo.lima at openbossa.org Mon Apr 23 16:39:27 2012 From: hugo.lima at openbossa.org (Hugo Parente Lima) Date: Mon, 23 Apr 2012 11:39:27 -0300 Subject: [PySide] Can't build with -Dshiboken_SUFFIX In-Reply-To: References: Message-ID: <1349651.xQAiBmI2FE@hugodesktop> On Monday, April 23, 2012 03:00:12 PM todd rme wrote: > I am trying to do a parallel install of pyside and shiboken on python > 2 and python 3 under linux. I tried setting the cmake variable > -Dshiboken_SUFFIX="-python3.2". However, it gives the following error > when I do so: The suffix is added automatically, IIRC you don't need to set it > Linking CXX executable shiboken-python3.2 > [ 96%] Built target shiboken > [ 98%] Running generator for 'shiboken'... > /bin/sh: > /home/abuild/rpmbuild/BUILD/shiboken-1.1.1/build/generator/shiboken: No > such file or directory > make[2]: *** [shibokenmodule/shiboken/shiboken_module_wrapper.cpp] Error 127 > make[1]: *** [shibokenmodule/CMakeFiles/shibokenmodule.dir/all] Error 2 > make: *** [all] Error 2 > error: Bad exit status from /var/tmp/rpm-tmp.D3ll4U (%build) > > Is there any way to fix this, or a better way to achieve a parallel > installation? > > -Todd > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part. URL: From hugo.lima at openbossa.org Mon Apr 23 16:39:27 2012 From: hugo.lima at openbossa.org (Hugo Parente Lima) Date: Mon, 23 Apr 2012 11:39:27 -0300 Subject: [PySide] Can't build with -Dshiboken_SUFFIX In-Reply-To: References: Message-ID: <1349651.xQAiBmI2FE@hugodesktop> On Monday, April 23, 2012 03:00:12 PM todd rme wrote: > I am trying to do a parallel install of pyside and shiboken on python > 2 and python 3 under linux. I tried setting the cmake variable > -Dshiboken_SUFFIX="-python3.2". However, it gives the following error > when I do so: The suffix is added automatically, IIRC you don't need to set it > Linking CXX executable shiboken-python3.2 > [ 96%] Built target shiboken > [ 98%] Running generator for 'shiboken'... > /bin/sh: > /home/abuild/rpmbuild/BUILD/shiboken-1.1.1/build/generator/shiboken: No > such file or directory > make[2]: *** [shibokenmodule/shiboken/shiboken_module_wrapper.cpp] Error 127 > make[1]: *** [shibokenmodule/CMakeFiles/shibokenmodule.dir/all] Error 2 > make: *** [all] Error 2 > error: Bad exit status from /var/tmp/rpm-tmp.D3ll4U (%build) > > Is there any way to fix this, or a better way to achieve a parallel > installation? > > -Todd > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part. URL: From toddrme2178 at gmail.com Mon Apr 23 16:50:48 2012 From: toddrme2178 at gmail.com (todd rme) Date: Mon, 23 Apr 2012 16:50:48 +0200 Subject: [PySide] Can't build with -Dshiboken_SUFFIX In-Reply-To: <1349651.xQAiBmI2FE@hugodesktop> References: <1349651.xQAiBmI2FE@hugodesktop> Message-ID: On Mon, Apr 23, 2012 at 4:39 PM, Hugo Parente Lima wrote: > On Monday, April 23, 2012 03:00:12 PM todd rme wrote: >> I am trying to do a parallel install of pyside and shiboken on python >> 2 and python 3 under linux.  I tried setting the cmake variable >> -Dshiboken_SUFFIX="-python3.2".  However, it gives the following error >> when I do so: > > The suffix is added automatically, IIRC you don't need to set it Not by default, and judging by the cmake files when it is set it looks like it uses the shiboken version not the python version. I want to install it for multiple python versions, not multiple shiboken versions. >> Linking CXX executable shiboken-python3.2 >> [ 96%] Built target shiboken >> [ 98%] Running generator for 'shiboken'... >> /bin/sh: >> /home/abuild/rpmbuild/BUILD/shiboken-1.1.1/build/generator/shiboken: No >> such file or directory >> make[2]: *** [shibokenmodule/shiboken/shiboken_module_wrapper.cpp] Error 127 >> make[1]: *** [shibokenmodule/CMakeFiles/shibokenmodule.dir/all] Error 2 >> make: *** [all] Error 2 >> error: Bad exit status from /var/tmp/rpm-tmp.D3ll4U (%build) >> >> Is there any way to fix this, or a better way to achieve a parallel >> installation? >> >> -Todd From toddrme2178 at gmail.com Mon Apr 23 16:50:48 2012 From: toddrme2178 at gmail.com (todd rme) Date: Mon, 23 Apr 2012 16:50:48 +0200 Subject: [PySide] Can't build with -Dshiboken_SUFFIX In-Reply-To: <1349651.xQAiBmI2FE@hugodesktop> References: <1349651.xQAiBmI2FE@hugodesktop> Message-ID: On Mon, Apr 23, 2012 at 4:39 PM, Hugo Parente Lima wrote: > On Monday, April 23, 2012 03:00:12 PM todd rme wrote: >> I am trying to do a parallel install of pyside and shiboken on python >> 2 and python 3 under linux.  I tried setting the cmake variable >> -Dshiboken_SUFFIX="-python3.2".  However, it gives the following error >> when I do so: > > The suffix is added automatically, IIRC you don't need to set it Not by default, and judging by the cmake files when it is set it looks like it uses the shiboken version not the python version. I want to install it for multiple python versions, not multiple shiboken versions. >> Linking CXX executable shiboken-python3.2 >> [ 96%] Built target shiboken >> [ 98%] Running generator for 'shiboken'... >> /bin/sh: >> /home/abuild/rpmbuild/BUILD/shiboken-1.1.1/build/generator/shiboken: No >> such file or directory >> make[2]: *** [shibokenmodule/shiboken/shiboken_module_wrapper.cpp] Error 127 >> make[1]: *** [shibokenmodule/CMakeFiles/shibokenmodule.dir/all] Error 2 >> make: *** [all] Error 2 >> error: Bad exit status from /var/tmp/rpm-tmp.D3ll4U (%build) >> >> Is there any way to fix this, or a better way to achieve a parallel >> installation? >> >> -Todd From expo at expobrain.net Mon Apr 23 17:41:42 2012 From: expo at expobrain.net (Daniele Esposti) Date: Mon, 23 Apr 2012 16:41:42 +0100 Subject: [PySide] PySide 1.1.1 Mac ctest results In-Reply-To: References: Message-ID: Hi guys, I built shiboken and pyside from the 1.1.1 tag and ran ctest. All test passed for shiboken, but 2 tests fails or pyside:        343 - QtWebKit_bug_959 (SEGFAULT)        346 - QtWebKit_shouldInterruptjavascript_test (Timeout) I've attached the report for the 343's segfault -- Daniele Esposti My Blog http://www.expobrain.net LinkedIn http://www.linkedin.com/in/danieleesposti Twitter http://www.twitter.com/#!/expobrain -------------- next part -------------- A non-text attachment was scrubbed... Name: segfault.txt.zip Type: application/zip Size: 15078 bytes Desc: not available URL: From backup.rlacko at gmail.com Tue Apr 24 10:02:03 2012 From: backup.rlacko at gmail.com (Roman Lacko) Date: Tue, 24 Apr 2012 10:02:03 +0200 Subject: [PySide] PySide 1.1.1 - "Free Hugs": Python for Qt released! In-Reply-To: <1504846.kpc0dmMpO8@hugodesktop> References: <1504846.kpc0dmMpO8@hugodesktop> Message-ID: Hi, Sorri for late response to this great news - congratulation and big thanks for PySide core team. I want to ensure windows users that i will continue to create windows packages. The new version will take little longer because of migration from github to gerrit, I need to change build scripts and fix some windows specific compilation bugs, please be patient. Regards Roman 2012/4/19 Hugo Parente Lima : > The PySide team is proud to announce the new release version 1.1.1 of > PySide project. > > Major changes > ============== > > - Unified toolchain! No more GeneratorRunner and ApiExtractor, now you just > need Shiboken to compile PySide. > - Bug Fixes; > > Current status of Mac/Windows support > ===================================== > > There are no PySide core developers using Windows or Mac and no more > PySide build bots, so if you really want to see PySide running on those > platforms better you do something. Contributions are welcome! > > About PySide > ============ > > PySide is the Python Qt bindings project, providing access the complete > Qt 4.8 framework as well as to generator tools for rapidly generating > bindings for any C++ libraries. > > The PySide project is developed in the open, with all facilities you'd > expect from any modern OSS project such as all code in a git > repository [1], an open bug tracking [2] for reporting bugs, and an open > design process [3]. > > List of bugs fixed > ================== > > 1105 Spyder fails with HEAD > 1126 Segfault when exception is raised in signalInstanceDisconnect > 1135 SIGSEGV when loading custom widget using QUiLoader when overriding > createWidget() > 1041 QAbstractItemModel has wrong ownership policy for selectionModel() > 1086 generatorrunner segfault processing #include > 1110 Concurrency error causes GC heap corruption > 1113 Instantiating QObject in user-defined QML element's constructor crashes if > instantiated from QML > 1129 Segmentation fault on close by QStandardItem/QStandardItemModel > 1104 QSettings has problems with long integers > 1108 tests/QtGui/pyside_reload_test.py fails when bytecode writing is disabled > 1138 Subclassing of QUiLoader leads to "Internal C++ object already deleted" > exception (again) > 1124 QPainter.drawPixmapFragments should take a list as first argument > 1065 Invalid example in QFileDialog documentation > 1092 shiboken names itself a 'generator' > 1094 shiboken doesn't complain about invalid options > 1044 Incorrect call to parent constructor in example > 1139 Crash at exit due to thread state (tstate) being NULL > PYSIDE-41 QModelIndex unhashable > > Download > ======== > > The files can be downloaded from PySide download page[4] > > > References > ========== > > [1] http://qt.gitorious.org/pyside > [2] https://bugreports.qt-project.org/browse/PYSIDE > [3] http://www.pyside.org/docs/pseps/psep-0001.html > [4] http://developer.qt.nokia.com/wiki/PySideDownloads > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside > From backup.rlacko at gmail.com Tue Apr 24 11:23:51 2012 From: backup.rlacko at gmail.com (Roman Lacko) Date: Tue, 24 Apr 2012 11:23:51 +0200 Subject: [PySide] missing pyside/packaging repository on codereview.qt-project.org Message-ID: Hi, I need to commit changes to pyside/packaging project. I can not find the repository for this project on codereview.qt-project.org. Thanks for help. Roman From toddrme2178 at gmail.com Tue Apr 24 13:43:30 2012 From: toddrme2178 at gmail.com (todd rme) Date: Tue, 24 Apr 2012 13:43:30 +0200 Subject: [PySide] Can't build with -Dshiboken_SUFFIX In-Reply-To: <1686832.51zJa6hCJL@hugodesktop> References: <1349651.xQAiBmI2FE@hugodesktop> <1686832.51zJa6hCJL@hugodesktop> Message-ID: On Mon, Apr 23, 2012 at 7:06 PM, Hugo Parente Lima wrote: > On Monday, April 23, 2012 04:50:48 PM todd rme wrote: >> On Mon, Apr 23, 2012 at 4:39 PM, Hugo Parente Lima >> >> wrote: >> > On Monday, April 23, 2012 03:00:12 PM todd rme wrote: >> >> I am trying to do a parallel install of pyside and shiboken on python >> >> 2 and python 3 under linux.  I tried setting the cmake variable >> >> -Dshiboken_SUFFIX="-python3.2".  However, it gives the following error >> > >> >> when I do so: >> > The suffix is added automatically, IIRC you don't need to set it >> >> Not by default, and judging by the cmake files when it is set it looks >> like it uses the shiboken version not the python version.  I want to >> install it for multiple python versions, not multiple shiboken >> versions. > > No, it uses the Python version used to compile Shiboken (libshiboken.so) I just tried it. By default it create, for example, /usr/include/shiboken/ If I set -DENABLE_VERSION_SUFFIX=True it creates /usr/include/shiboken-1.1/ (the shiboken version) What I need it to do is create something like /usr/include/shiboken-3.2/ (the python version), /usr/include/shiboken-python3.2/, or /usr/include/shiboken-py3.2/ >> >> Linking CXX executable shiboken-python3.2 >> >> [ 96%] Built target shiboken >> >> [ 98%] Running generator for 'shiboken'... >> >> /bin/sh: >> >> /home/abuild/rpmbuild/BUILD/shiboken-1.1.1/build/generator/shiboken: No >> >> such file or directory >> >> make[2]: *** [shibokenmodule/shiboken/shiboken_module_wrapper.cpp] Error >> >> 127 make[1]: *** [shibokenmodule/CMakeFiles/shibokenmodule.dir/all] >> >> Error 2 make: *** [all] Error 2 >> >> error: Bad exit status from /var/tmp/rpm-tmp.D3ll4U (%build) >> >> >> >> Is there any way to fix this, or a better way to achieve a parallel >> >> installation? >> >> >> >> -Todd From toddrme2178 at gmail.com Tue Apr 24 13:43:30 2012 From: toddrme2178 at gmail.com (todd rme) Date: Tue, 24 Apr 2012 13:43:30 +0200 Subject: [PySide] Can't build with -Dshiboken_SUFFIX In-Reply-To: <1686832.51zJa6hCJL@hugodesktop> References: <1349651.xQAiBmI2FE@hugodesktop> <1686832.51zJa6hCJL@hugodesktop> Message-ID: On Mon, Apr 23, 2012 at 7:06 PM, Hugo Parente Lima wrote: > On Monday, April 23, 2012 04:50:48 PM todd rme wrote: >> On Mon, Apr 23, 2012 at 4:39 PM, Hugo Parente Lima >> >> wrote: >> > On Monday, April 23, 2012 03:00:12 PM todd rme wrote: >> >> I am trying to do a parallel install of pyside and shiboken on python >> >> 2 and python 3 under linux.  I tried setting the cmake variable >> >> -Dshiboken_SUFFIX="-python3.2".  However, it gives the following error >> > >> >> when I do so: >> > The suffix is added automatically, IIRC you don't need to set it >> >> Not by default, and judging by the cmake files when it is set it looks >> like it uses the shiboken version not the python version.  I want to >> install it for multiple python versions, not multiple shiboken >> versions. > > No, it uses the Python version used to compile Shiboken (libshiboken.so) I just tried it. By default it create, for example, /usr/include/shiboken/ If I set -DENABLE_VERSION_SUFFIX=True it creates /usr/include/shiboken-1.1/ (the shiboken version) What I need it to do is create something like /usr/include/shiboken-3.2/ (the python version), /usr/include/shiboken-python3.2/, or /usr/include/shiboken-py3.2/ >> >> Linking CXX executable shiboken-python3.2 >> >> [ 96%] Built target shiboken >> >> [ 98%] Running generator for 'shiboken'... >> >> /bin/sh: >> >> /home/abuild/rpmbuild/BUILD/shiboken-1.1.1/build/generator/shiboken: No >> >> such file or directory >> >> make[2]: *** [shibokenmodule/shiboken/shiboken_module_wrapper.cpp] Error >> >> 127 make[1]: *** [shibokenmodule/CMakeFiles/shibokenmodule.dir/all] >> >> Error 2 make: *** [all] Error 2 >> >> error: Bad exit status from /var/tmp/rpm-tmp.D3ll4U (%build) >> >> >> >> Is there any way to fix this, or a better way to achieve a parallel >> >> installation? >> >> >> >> -Todd From dev at projekt01.ch Tue Apr 24 14:44:07 2012 From: dev at projekt01.ch (Roger) Date: Tue, 24 Apr 2012 14:44:07 +0200 Subject: [PySide] PySide 1.1.1 - "Free Hugs": Python for Qt released! In-Reply-To: References: <1504846.kpc0dmMpO8@hugodesktop> Message-ID: <00fb01cd2217$f0c559b0$d2500d10$@projekt01.ch> Hi Roman Thanks a lot for this good news! I just like to know you that there is also an issue with the linux, mac and windows package releases on pypi. Some packages from one release use different package names or include the version number different for the different OS. This makes it impossible or at least very hard to get the pypi packages with buildout or any other package management concept. Regards Roger Ineichen _____________________________ END OF MESSAGE > Betreff: Re: [PySide] PySide 1.1.1 - "Free Hugs": Python for Qt released! > > Hi, > > Sorri for late response to this great news - congratulation and big > thanks for PySide core team. > > I want to ensure windows users that i will continue to create windows packages. > > The new version will take little longer because of migration from > github to gerrit, I need to change build scripts and fix some windows > specific compilation bugs, please be patient. > > Regards > Roman From backup.rlacko at gmail.com Tue Apr 24 15:03:50 2012 From: backup.rlacko at gmail.com (Roman Lacko) Date: Tue, 24 Apr 2012 15:03:50 +0200 Subject: [PySide] PySide 1.1.1 - "Free Hugs": Python for Qt released! In-Reply-To: <00fb01cd2217$f0c559b0$d2500d10$@projekt01.ch> References: <1504846.kpc0dmMpO8@hugodesktop> <00fb01cd2217$f0c559b0$d2500d10$@projekt01.ch> Message-ID: Hi, 2012/4/24 Roger : > Hi Roman > > Thanks a lot for this good news! > > I just like to know you that there is also an issue with the > linux, mac and windows package releases on pypi. > > Some packages from one release use different package names > or include the version number different for the different OS. > This makes it impossible or at least very hard to get the > pypi packages with buildout or any other package > management concept. Yes, this is known issue and in general very difficult to solve with any python package that must be compiled to native code. I have on my todo list the task to create proper setup package that will compile everything from source on tagtet platform if binary package is not available on pypi for that platform. For example running eassy_install pyside on windows would install precompiled windows packages, and when running same command on linux, downloads "source" distribution and compiles everything from source. Than it should be installable also with zc.buildout or pip, but it takes longer to install because of long compilation time. Regards Roman > > Regards > Roger Ineichen > _____________________________ > END OF MESSAGE > >> Betreff: Re: [PySide] PySide 1.1.1 - "Free Hugs": Python for Qt released! >> >> Hi, >> >> Sorri for late response to this great news - congratulation and big >> thanks for PySide core team. >> >> I want to ensure windows users that i will continue to create windows > packages. >> >> The new version will take little longer because of migration from >> github to gerrit, I need to change build scripts and fix some windows >> specific compilation bugs, please be patient. >> >> Regards >> Roman > > From hugo.lima at openbossa.org Tue Apr 24 16:39:07 2012 From: hugo.lima at openbossa.org (Hugo Parente Lima) Date: Tue, 24 Apr 2012 11:39:07 -0300 Subject: [PySide] missing pyside/packaging repository on codereview.qt-project.org In-Reply-To: References: Message-ID: <1651440.9AaE7lnyaU@hugodesktop> On Tuesday, April 24, 2012 11:23:51 AM Roman Lacko wrote: > Hi, > > I need to commit changes to pyside/packaging project. I can not find > the repository for this project on codereview.qt-project.org. > Thanks for help. Use the gitorious repository: http://qt.gitorious.org/pyside/packaging Regards > Roman > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part. URL: From backup.rlacko at gmail.com Tue Apr 24 16:58:54 2012 From: backup.rlacko at gmail.com (Roman Lacko) Date: Tue, 24 Apr 2012 16:58:54 +0200 Subject: [PySide] missing pyside/packaging repository on codereview.qt-project.org In-Reply-To: <1651440.9AaE7lnyaU@hugodesktop> References: <1651440.9AaE7lnyaU@hugodesktop> Message-ID: Hi, 2012/4/24 Hugo Parente Lima : > On Tuesday, April 24, 2012 11:23:51 AM Roman Lacko wrote: >> Hi, >> >> I need to commit changes to pyside/packaging project. I can not find >> the repository for this project on codereview.qt-project.org. >> Thanks for help. > > Use the gitorious repository: > > http://qt.gitorious.org/pyside/packaging > OK, thanks, I thought gitorious is read-only > Regards > >> Roman >> _______________________________________________ >> PySide mailing list >> PySide at qt-project.org >> http://lists.qt-project.org/mailman/listinfo/pyside From bjelge at nefines.com Wed Apr 25 10:15:30 2012 From: bjelge at nefines.com (=?ISO-8859-1?Q?Bj=F8rn_Helge_Kj=F8snes?=) Date: Wed, 25 Apr 2012 10:15:30 +0200 Subject: [PySide] PySide 1.1.1 - Problems building pyside with Qt 4.8.0 both debug and release version on windows In-Reply-To: <1504846.kpc0dmMpO8@hugodesktop> References: <1504846.kpc0dmMpO8@hugodesktop> Message-ID: <4F97B2A2.1080601@nefines.com> Hi all, I have not been able to make the PySide 1.1.1 compile with QT 4.8.0 and Python 2.7.3 on Windows with Visual Studio 2008 and CMake 2.8.8. Replacing QT 4.8.0 with QT 4.7.4 all compiles and installs. This is what I have done so far: On my disk, all code is in a Project folder on the E: drive where I have a folder for Python, for QT and for PySide. In pyside I have the depending libraries that I explicitly adds to my cmake command. I am able to compile shiboken from "Visual Studio 2008 Command prompt", but when I try to build PySide I get this error: [ 6%] Building CXX object PySide/QtCore/CMakeFiles/QtCore.dir/PySide/QtCore/qfile_wrapper.cpp.obj qfile_wrapper.cpp E:\Projects\PySide\pyside-qt4.8+1.1.1\buildrelease\PySide\QtCore\PySide\QtCore\qfile_wrapper.cpp(1752) : error C2661: 'QFileWrapper::open' : no overloaded function takes 3 arguments NMAKE : fatal error U1077: 'C:\PROGRA~2\MICROS~1.0\VC\bin\cl.exe' : return code '0x2' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe"' : return code '0x2' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe"' : return code '0x2' Stop. If anyone can point me in the right direction, I can give it a try to make a fix. I do code in both C++ and Python in other projects and PySide have become an important library for me on the Windows platform. Kind regards Bjorn Helge Kjosnes My buildpyside.bat file that I run from e:\Project\pyside in Visual Studio 2008 command prompt: @echo set all folders SET PYTHONDIR=\Projects\Python\Python-2.7.3\PCbuild\ SET PYTHONVER=27 SET QTDIR=E:\Projects\QT\QT480 SET PYSIDESOURCEDIR=\Projects\PySide\ SET PYSIDEINSTALLDIR=\Projects\PySide\PySideInstall\ SET PSINSTALLD=%PYSIDEINSTALLDIR%Debug SET PSINSTALLR=%PYSIDEINSTALLDIR%Release SET SHIBOKENDIR=\Projects\PySide\shiboken-1.1.1 SET PYSIDEDIR=\Projects\PySide\pyside-qt4.8+1.1.1 SET PYSIDETOOLSDIR=\Projects\PySide\pyside-tools-0.2.13 SET LIBXML=E:\Projects\PySide\libxml2-2.7.8.win32\ SET LIBXSLT=E:\Projects\PySide\libxslt-1.1.26.win32\ SET LIBICONV=E:\Projects\PySide\iconv-1.9.2.win32\ SET LIBZLIB=E:\Projects\PySide\zlib-1.2.5\ SET PATH=%QTDIR%\bin;%LIBXML%bin;%LIBXSLT%bin;%LIBICONV%bin;%LIBZLIB%bin;%PATH% @echo make install dir mkdir %PYSIDEINSTALLDIR% @echo go to pyside source dir cd %PYSIDESOURCEDIR% @echo PySide build release @echo make shiboken mkdir %PSINSTALLR% cd %SHIBOKENDIR% mkdir buildrelease cd buildrelease cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=FALSE -DPYTHON_EXECUTABLE="%PYTHONDIR%python.exe" -DLIBXML2_LIBRARIES=%LIBXML%lib\libxml2.lib -DLIBXML2_INCLUDE_DIR=%LIBXML%include -DLIBXSLT_LIBRARIES=%LIBXSLT%lib\libxslt.lib -DLIBXSLT_INCLUDE_DIR=%LIBXSLT%include -DCMAKE_INSTALL_PREFIX="%PSINSTALLR%" .. nmake install @echo make pyside cd %PYSIDEDIR% mkdir buildrelease cd buildrelease cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=FALSE -DCMAKE_INSTALL_PREFIX="%PSINSTALLR%" .. nmake install @echo make pyside tools cd %PYSIDETOOLSDIR% mkdir buildrelease cd buildrelease cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=FALSE -DCMAKE_INSTALL_PREFIX="%PSINSTALLR%" .. nmake install @echo PySide build debug @echo make shiboken debug mkdir %PSINSTALLD% cd %SHIBOKENDIR% mkdir builddebug cd builddebug cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTS=FALSE -DPYTHON_EXECUTABLE="%PYTHONDIR%python_d.exe" -DPYTHON_DEBUG_LIBRARY="%PYTHONDIR%python%PYTHONVER%_d.lib" -DPYTHON_LIBRARIES="%PYTHONDIR%python%PYTHONVER%_d.lib" -DLIBXML2_LIBRARIES=%LIBXML%lib\libxml2.lib -DLIBXML2_INCLUDE_DIR=%LIBXML%include -DLIBXSLT_LIBRARIES=%LIBXSLT%lib\libxslt.lib -DLIBXSLT_INCLUDE_DIR=%LIBXSLT%include -DCMAKE_INSTALL_PREFIX="%PSINSTALLD%" .. nmake install @echo make pyside debug cd %PYSIDEDIR% mkdir builddebug cd builddebug cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTS=FALSE -DPYTHON_EXECUTABLE="%PYTHONDIR%python_d.exe" -DPYTHON_DEBUG_LIBRARY="%PYTHONDIR%python%PYTHONVER%_d.lib" -DPYTHON_LIBRARIES="%PYTHONDIR%python%PYTHONVER%_d.lib" -DCMAKE_INSTALL_PREFIX="%PSINSTALLD%" .. nmake install @echo make pyside tools debug cd %PYSIDETOOLSDIR% mkdir builddebug cd builddebug cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTS=FALSE -DCMAKE_INSTALL_PREFIX="%PSINSTALLD%" .. nmake install cd %PYSIDEINSTALLDIR% @echo Done building PySide Debug and Release version From toddrme2178 at gmail.com Wed Apr 25 10:41:00 2012 From: toddrme2178 at gmail.com (todd rme) Date: Wed, 25 Apr 2012 10:41:00 +0200 Subject: [PySide] Can't build with -Dshiboken_SUFFIX In-Reply-To: References: <1349651.xQAiBmI2FE@hugodesktop> <1686832.51zJa6hCJL@hugodesktop> Message-ID: On Tue, Apr 24, 2012 at 1:43 PM, todd rme wrote: > On Mon, Apr 23, 2012 at 7:06 PM, Hugo Parente Lima wrote: >> On Monday, April 23, 2012 04:50:48 PM todd rme wrote: >>> On Mon, Apr 23, 2012 at 4:39 PM, Hugo Parente Lima >>> >>> wrote: >>> > On Monday, April 23, 2012 03:00:12 PM todd rme wrote: >>> >> I am trying to do a parallel install of pyside and shiboken on python >>> >> 2 and python 3 under linux.  I tried setting the cmake variable >>> >> -Dshiboken_SUFFIX="-python3.2".  However, it gives the following error >>> > >>> >> when I do so: >>> > The suffix is added automatically, IIRC you don't need to set it >>> >>> Not by default, and judging by the cmake files when it is set it looks >>> like it uses the shiboken version not the python version.  I want to >>> install it for multiple python versions, not multiple shiboken >>> versions. >> >> No, it uses the Python version used to compile Shiboken (libshiboken.so) > > I just tried it. > > By default it create, for example, /usr/include/shiboken/ > > If I set -DENABLE_VERSION_SUFFIX=True it creates > /usr/include/shiboken-1.1/ (the shiboken version) > > What I need it to do is create something like > /usr/include/shiboken-3.2/ (the python version), > /usr/include/shiboken-python3.2/, or /usr/include/shiboken-py3.2/ Also, it doesn't look like this macro works with pkg-config, which still points to /usr/include/shiboken instead of /usr/include/shiboken-1.1 It also doesn't have any effect on the .cmake files ShibokenConfig.cmake and ShibokenConfigVersion.cmake Considering that a lot of critical python software still depends on python2, it would be nice if there was a built-in way to install python 2 and python 3 versions in parallel. -Todd From toddrme2178 at gmail.com Wed Apr 25 10:41:00 2012 From: toddrme2178 at gmail.com (todd rme) Date: Wed, 25 Apr 2012 10:41:00 +0200 Subject: [PySide] Can't build with -Dshiboken_SUFFIX In-Reply-To: References: <1349651.xQAiBmI2FE@hugodesktop> <1686832.51zJa6hCJL@hugodesktop> Message-ID: On Tue, Apr 24, 2012 at 1:43 PM, todd rme wrote: > On Mon, Apr 23, 2012 at 7:06 PM, Hugo Parente Lima wrote: >> On Monday, April 23, 2012 04:50:48 PM todd rme wrote: >>> On Mon, Apr 23, 2012 at 4:39 PM, Hugo Parente Lima >>> >>> wrote: >>> > On Monday, April 23, 2012 03:00:12 PM todd rme wrote: >>> >> I am trying to do a parallel install of pyside and shiboken on python >>> >> 2 and python 3 under linux.  I tried setting the cmake variable >>> >> -Dshiboken_SUFFIX="-python3.2".  However, it gives the following error >>> > >>> >> when I do so: >>> > The suffix is added automatically, IIRC you don't need to set it >>> >>> Not by default, and judging by the cmake files when it is set it looks >>> like it uses the shiboken version not the python version.  I want to >>> install it for multiple python versions, not multiple shiboken >>> versions. >> >> No, it uses the Python version used to compile Shiboken (libshiboken.so) > > I just tried it. > > By default it create, for example, /usr/include/shiboken/ > > If I set -DENABLE_VERSION_SUFFIX=True it creates > /usr/include/shiboken-1.1/ (the shiboken version) > > What I need it to do is create something like > /usr/include/shiboken-3.2/ (the python version), > /usr/include/shiboken-python3.2/, or /usr/include/shiboken-py3.2/ Also, it doesn't look like this macro works with pkg-config, which still points to /usr/include/shiboken instead of /usr/include/shiboken-1.1 It also doesn't have any effect on the .cmake files ShibokenConfig.cmake and ShibokenConfigVersion.cmake Considering that a lot of critical python software still depends on python2, it would be nice if there was a built-in way to install python 2 and python 3 versions in parallel. -Todd From backup.rlacko at gmail.com Wed Apr 25 10:51:47 2012 From: backup.rlacko at gmail.com (Roman Lacko) Date: Wed, 25 Apr 2012 10:51:47 +0200 Subject: [PySide] PySide 1.1.1 - Problems building pyside with Qt 4.8.0 both debug and release version on windows In-Reply-To: <4F97B2A2.1080601@nefines.com> References: <1504846.kpc0dmMpO8@hugodesktop> <4F97B2A2.1080601@nefines.com> Message-ID: Hi, It was reported some time ago and it is the last bug that stops me to create windows packages compiled with Qt 4.8. Would be great if someone (maybe You ?) with C++ knowlege on windows finally gets this bug fixed. Regards Roman 2012/4/25 Bjørn Helge Kjøsnes : > Hi all, > > I have not been able to make the PySide 1.1.1 compile with QT 4.8.0 and > Python 2.7.3  on Windows with Visual Studio 2008 and CMake 2.8.8. > Replacing QT 4.8.0 with QT 4.7.4 all compiles and installs. > > This is what I have done so far: > On my disk, all code is in a Project folder on the E: drive where I have > a folder for Python, for QT and for PySide. In pyside I have the > depending libraries  that I explicitly adds to my cmake command. > > I am able to compile shiboken from "Visual Studio 2008 Command prompt", > but when I try to build PySide  I get this error: > > [  6%] Building CXX object > PySide/QtCore/CMakeFiles/QtCore.dir/PySide/QtCore/qfile_wrapper.cpp.obj > qfile_wrapper.cpp > E:\Projects\PySide\pyside-qt4.8+1.1.1\buildrelease\PySide\QtCore\PySide\QtCore\qfile_wrapper.cpp(1752) > : error C2661: 'QFileWrapper::open' : no overloaded function takes 3 > arguments > NMAKE : fatal error U1077: 'C:\PROGRA~2\MICROS~1.0\VC\bin\cl.exe' : > return code > '0x2' > Stop. > NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual > Studio 9.0\VC\BIN\nmake.exe"' : return code '0x2' > Stop. > NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual > Studio 9.0\VC\BIN\nmake.exe"' : return code '0x2' > Stop. > > > If anyone can point me in the right direction, I can give it a try to > make a fix. I do code in both C++ and Python in other projects and > PySide have become an important library for me on the Windows platform. > > Kind regards > Bjorn Helge Kjosnes > > My buildpyside.bat file that I run from e:\Project\pyside in Visual > Studio 2008 command prompt: > @echo set all folders > SET PYTHONDIR=\Projects\Python\Python-2.7.3\PCbuild\ > SET PYTHONVER=27 > SET QTDIR=E:\Projects\QT\QT480 > SET PYSIDESOURCEDIR=\Projects\PySide\ > SET PYSIDEINSTALLDIR=\Projects\PySide\PySideInstall\ > SET PSINSTALLD=%PYSIDEINSTALLDIR%Debug > SET PSINSTALLR=%PYSIDEINSTALLDIR%Release > SET SHIBOKENDIR=\Projects\PySide\shiboken-1.1.1 > SET PYSIDEDIR=\Projects\PySide\pyside-qt4.8+1.1.1 > SET PYSIDETOOLSDIR=\Projects\PySide\pyside-tools-0.2.13 > SET LIBXML=E:\Projects\PySide\libxml2-2.7.8.win32\ > SET LIBXSLT=E:\Projects\PySide\libxslt-1.1.26.win32\ > SET LIBICONV=E:\Projects\PySide\iconv-1.9.2.win32\ > SET LIBZLIB=E:\Projects\PySide\zlib-1.2.5\ > > SET > PATH=%QTDIR%\bin;%LIBXML%bin;%LIBXSLT%bin;%LIBICONV%bin;%LIBZLIB%bin;%PATH% > > @echo make install dir > mkdir %PYSIDEINSTALLDIR% > > @echo go to pyside source dir > cd %PYSIDESOURCEDIR% > > @echo PySide build release > @echo make shiboken > mkdir %PSINSTALLR% > cd %SHIBOKENDIR% > mkdir buildrelease > cd buildrelease > cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=FALSE > -DPYTHON_EXECUTABLE="%PYTHONDIR%python.exe" > -DLIBXML2_LIBRARIES=%LIBXML%lib\libxml2.lib > -DLIBXML2_INCLUDE_DIR=%LIBXML%include > -DLIBXSLT_LIBRARIES=%LIBXSLT%lib\libxslt.lib > -DLIBXSLT_INCLUDE_DIR=%LIBXSLT%include > -DCMAKE_INSTALL_PREFIX="%PSINSTALLR%" .. > nmake install > @echo make pyside > cd %PYSIDEDIR% > mkdir buildrelease > cd buildrelease > cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=FALSE > -DCMAKE_INSTALL_PREFIX="%PSINSTALLR%" .. > nmake install > @echo make pyside tools > cd %PYSIDETOOLSDIR% > mkdir buildrelease > cd buildrelease > cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=FALSE > -DCMAKE_INSTALL_PREFIX="%PSINSTALLR%" .. > nmake install > > > @echo PySide build debug > @echo make shiboken debug > mkdir %PSINSTALLD% > cd %SHIBOKENDIR% > mkdir builddebug > cd builddebug > cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTS=FALSE > -DPYTHON_EXECUTABLE="%PYTHONDIR%python_d.exe" > -DPYTHON_DEBUG_LIBRARY="%PYTHONDIR%python%PYTHONVER%_d.lib" > -DPYTHON_LIBRARIES="%PYTHONDIR%python%PYTHONVER%_d.lib" > -DLIBXML2_LIBRARIES=%LIBXML%lib\libxml2.lib > -DLIBXML2_INCLUDE_DIR=%LIBXML%include > -DLIBXSLT_LIBRARIES=%LIBXSLT%lib\libxslt.lib > -DLIBXSLT_INCLUDE_DIR=%LIBXSLT%include > -DCMAKE_INSTALL_PREFIX="%PSINSTALLD%" .. > nmake install > @echo make pyside debug > cd %PYSIDEDIR% > mkdir builddebug > cd builddebug > cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTS=FALSE > -DPYTHON_EXECUTABLE="%PYTHONDIR%python_d.exe" > -DPYTHON_DEBUG_LIBRARY="%PYTHONDIR%python%PYTHONVER%_d.lib" > -DPYTHON_LIBRARIES="%PYTHONDIR%python%PYTHONVER%_d.lib" > -DCMAKE_INSTALL_PREFIX="%PSINSTALLD%" .. > nmake install > @echo make pyside tools debug > cd %PYSIDETOOLSDIR% > mkdir builddebug > cd builddebug > cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTS=FALSE > -DCMAKE_INSTALL_PREFIX="%PSINSTALLD%" .. > nmake install > > cd %PYSIDEINSTALLDIR% > @echo Done building PySide Debug and Release version > > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside From eric.kerfoot at kcl.ac.uk Wed Apr 25 14:35:11 2012 From: eric.kerfoot at kcl.ac.uk (Kerfoot, Eric) Date: Wed, 25 Apr 2012 13:35:11 +0100 Subject: [PySide] Compiling Bindings on Windows Message-ID: <37AB3C97DF13BE4383EFC9A6979B72B882D8651BB5@KCL-MAIL03.kclad.ds.kcl.ac.uk> Hi Everyone, I'm trying to create bindings in Windows for my own custom Qt-derived type and am not sure how to proceed (apologies if this has already been answered but I haven't seen it in the archives). I can compile just fine in Linux under Ubuntu with the headers/libraries/type systems provided, but these aren't present in the Windows binary distribution. I thought that compiling the Windows code from source would be necessary but I haven't managed to do that yet, the install scripts on github pulled down code that wasn't consistent on the stable branch, or on the dev branch required libxml2 which I got for Windows but which wouldn't successfully link with MSVC for some reason. I can go into details about these issues if necessary, but I figured that I shouldn't need to build myself if I could get the headers, static/shared libraries, and type system XML files from somewhere to build my own binding DLL. Is this correct or do I have to get a build going first? If not then where can I get the things I need pre-built for Windows so I can get things going? I hope I haven't missed the obvious answers to these questions somewhere, but I haven't found an obvious place where the header files/type system XML files that I need in Windows are kept. I was playing with building on Windows for days without success but I'd be happy to contribute any fixes if I can find them, for now though I need some help getting started. Thanks for your help, Eric ---- Dr. Eric Kerfoot Postdoctoral Researcher Imaging Sciences, Biomedical Engineering King's College London From backup.rlacko at gmail.com Wed Apr 25 15:22:24 2012 From: backup.rlacko at gmail.com (Roman Lacko) Date: Wed, 25 Apr 2012 15:22:24 +0200 Subject: [PySide] Compiling Bindings on Windows In-Reply-To: <37AB3C97DF13BE4383EFC9A6979B72B882D8651BB5@KCL-MAIL03.kclad.ds.kcl.ac.uk> References: <37AB3C97DF13BE4383EFC9A6979B72B882D8651BB5@KCL-MAIL03.kclad.ds.kcl.ac.uk> Message-ID: Hi, i'm in progress of creating windows binaries, i just need more time to fix compilation errors R. 2012/4/25 Kerfoot, Eric : > Hi Everyone, >   I'm trying to create bindings in Windows for my own custom Qt-derived type and am not sure how to proceed (apologies if this has already been answered but I haven't seen it in the archives). I can compile just fine in Linux under Ubuntu with the headers/libraries/type systems provided, but these aren't present in the Windows binary distribution. I thought that compiling the Windows code from source would be necessary but I haven't managed to do that yet, the install scripts on github pulled down code that wasn't consistent on the stable branch, or on the dev branch required libxml2 which I got for Windows but which wouldn't successfully link with MSVC for some reason. > > I can go into details about these issues if necessary, but I figured that I shouldn't need to build myself if I could get the headers, static/shared libraries, and type system XML files from somewhere to build my own binding DLL. Is this correct or do I have to get a build going first? If not then where can I get the things I need pre-built for Windows so I can get things going? > > I hope I haven't missed the obvious answers to these questions somewhere, but I haven't found an obvious place where the header files/type system XML files that I need in Windows are kept. I was playing with building on Windows for days without success but I'd be happy to contribute any fixes if I can find them, for now though I need some help getting started. > > Thanks for your help, >   Eric > > ---- > Dr. Eric Kerfoot > Postdoctoral Researcher > Imaging Sciences, Biomedical Engineering > King's College London > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside From greatrgb at gmail.com Thu Apr 26 02:13:54 2012 From: greatrgb at gmail.com (Tony Barbieri) Date: Wed, 25 Apr 2012 20:13:54 -0400 Subject: [PySide] PySide, Qt 4.7 and the Future Message-ID: <43379148-DFF6-4C0F-A43B-7C894C763BAC@gmail.com> Hello Everyone, I saw on the Qt site that the PySide download is now labeled pyside-qt4.8+1.1.1.tar.bz2 Does version 1.1.1 only work with Qt 4.8? If so will PySide for Qt 4.7 get anymore bug updates or support? We use PySide to interact with other applications such as Maya or Nuke which move a bit slower when it comes to updating their Qt libraries and are still on version 4.7. Thanks so much! -tony -------------- next part -------------- An HTML attachment was scrubbed... URL: From frank at ohufx.com Thu Apr 26 08:42:06 2012 From: frank at ohufx.com (Frank Rueter | OHUfx) Date: Thu, 26 Apr 2012 18:42:06 +1200 Subject: [PySide] sliding widgets into position Message-ID: <4F98EE3E.8000805@ohufx.com> Hi, end of day for me and my brain has gone numb, so I'm probably missing the obvious: I'm trying to create a widget with three areas: top, middle and bottom (using QFrames as place holders for now). The middle frame is meant to be visible from the start containing some text and other widgets, when the button is pushed, the top frame is meant to slide down into view and the bottom frame is meant to slide up into view, so that I'm left with a controllable vertical arrangements of those three frames. Here is my ugly attempt so far: http://pastebin.com/index/bNJ9zeUm Things do move but I can't control the start and end positions properly and the GridLayout adjusts itself when showing the extra frames, so that the middle frame jumps. I have no idea how to set the size hints etc. to define the start and end positions of the sliding QFrames generically and avoid the jumping middle frame (might have to go with an alternative approach to QGridLayout?!). Any help would be greatly appreciated. Frank From kandraitibold at gmail.com Thu Apr 26 08:53:10 2012 From: kandraitibold at gmail.com (Tibold Kandrai) Date: Thu, 26 Apr 2012 08:53:10 +0200 Subject: [PySide] sliding widgets into position In-Reply-To: <4F98EE3E.8000805@ohufx.com> References: <4F98EE3E.8000805@ohufx.com> Message-ID: <4F98F0D6.8010909@gmail.com> Hi, Try to subclass QDockWidget. You will have to set it's geometry manually. Also if you want the widgets to pop up above the centralWidget than don't add the dock widgets to any layout. Simply add them with the main window as their parent, and raise them when you show them. Using this technique I managed to implement auto hiding widgets like in Visual Studio. It's not trivial, but it's possible. Actually if you don't need any of the QDockWIdget's functionality you can do the same with a QFrame as well. Same logic, override it's geometry, and don't add them to the grid layout. Adding the widgets to the grid layout will always push the central widget. Cheers, Tibold On 2012-04-26 08:42, Frank Rueter | OHUfx wrote: > Hi, > > end of day for me and my brain has gone numb, so I'm probably missing > the obvious: > > I'm trying to create a widget with three areas: top, middle and bottom > (using QFrames as place holders for now). > The middle frame is meant to be visible from the start containing some > text and other widgets, when the button is pushed, the top frame is > meant to slide down into view and the bottom frame is meant to slide up > into view, so that I'm left with a controllable vertical arrangements of > those three frames. > Here is my ugly attempt so far: > http://pastebin.com/index/bNJ9zeUm > > Things do move but I can't control the start and end positions properly > and the GridLayout adjusts itself when showing the extra frames, so that > the middle frame jumps. I have no idea how to set the size hints etc. to > define the start and end positions of the sliding QFrames generically > and avoid the jumping middle frame (might have to go with an alternative > approach to QGridLayout?!). > > Any help would be greatly appreciated. > > Frank > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside -- Tibold Kandrai, CEO @ Dotz Team I/S, Software developer, consultant -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 552 bytes Desc: OpenPGP digital signature URL: From bjelge at nefines.com Thu Apr 26 09:11:55 2012 From: bjelge at nefines.com (=?ISO-8859-1?Q?Bj=F8rn_Helge_Kj=F8snes?=) Date: Thu, 26 Apr 2012 09:11:55 +0200 Subject: [PySide] PySide 1.1.1 - Problems building pyside with Qt 4.8.0 both debug and release version on windows In-Reply-To: References: <1504846.kpc0dmMpO8@hugodesktop> <4F97B2A2.1080601@nefines.com> Message-ID: <4F98F53B.5040709@nefines.com> Hi, I did look into it last night and the problem seems to be include of some new types when generating the wrappers. The first one was fixed by adding some extra include in the object type for QFSFileEngine, but then a new error appears in QFile type. This one is not fixed by a simple include. If this works in the Linux and Mac version with Qt 4.8.0, it has to be a Windows specific problem in Shiboken. If anyone can point me to where to look in the Shiboken source and how to best debug this, I can have another go at it in my spare time. Is there any documentation on how it works. It seams like the things I find in the apiextractor documentation not match what I find in the xml typesystem files. At least not the enum type that I can see uses the flags attribute in another way in the source than in the documentation(http://www.pyside.org/docs/apiextractor/typesystem_specifying_types.html). What should I do to be sure my changes do not affect the earlier versions of Qt. I see some tags for version in the type system. Do this work on all elements? This change to the typesystem_core_common.xml fixes the first error for Qt 4.8.0 on windows, but I do not know what happens in Qt 4.7.4 if I use this: Original: New with extra include for Qt 4.8.0: Next is the procedures to get the code into the Source control. I looked at Gerrit, and have to admit that it did not make much sense to me. Are there any good descriptions on how to make the patches and how to add them? Regards, Bjorn Helge Kjosnes On 25.04.2012 10:51, Roman Lacko wrote: > Hi, > > It was reported some time ago and it is the last bug that stops me to > create windows packages compiled with Qt 4.8. Would be great if > someone (maybe You ?) with C++ knowlege on windows finally gets this > bug fixed. > > > Regards > Roman > > 2012/4/25 Bjørn Helge Kjøsnes: >> Hi all, >> >> I have not been able to make the PySide 1.1.1 compile with QT 4.8.0 and >> Python 2.7.3 on Windows with Visual Studio 2008 and CMake 2.8.8. >> Replacing QT 4.8.0 with QT 4.7.4 all compiles and installs. >> >> This is what I have done so far: >> On my disk, all code is in a Project folder on the E: drive where I have >> a folder for Python, for QT and for PySide. In pyside I have the >> depending libraries that I explicitly adds to my cmake command. >> >> I am able to compile shiboken from "Visual Studio 2008 Command prompt", >> but when I try to build PySide I get this error: >> >> [ 6%] Building CXX object >> PySide/QtCore/CMakeFiles/QtCore.dir/PySide/QtCore/qfile_wrapper.cpp.obj >> qfile_wrapper.cpp >> E:\Projects\PySide\pyside-qt4.8+1.1.1\buildrelease\PySide\QtCore\PySide\QtCore\qfile_wrapper.cpp(1752) >> : error C2661: 'QFileWrapper::open' : no overloaded function takes 3 >> arguments >> NMAKE : fatal error U1077: 'C:\PROGRA~2\MICROS~1.0\VC\bin\cl.exe' : >> return code >> '0x2' >> Stop. >> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual >> Studio 9.0\VC\BIN\nmake.exe"' : return code '0x2' >> Stop. >> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual >> Studio 9.0\VC\BIN\nmake.exe"' : return code '0x2' >> Stop. >> >> >> If anyone can point me in the right direction, I can give it a try to >> make a fix. I do code in both C++ and Python in other projects and >> PySide have become an important library for me on the Windows platform. >> >> Kind regards >> Bjorn Helge Kjosnes >> >> My buildpyside.bat file that I run from e:\Project\pyside in Visual >> Studio 2008 command prompt: >> @echo set all folders >> SET PYTHONDIR=\Projects\Python\Python-2.7.3\PCbuild\ >> SET PYTHONVER=27 >> SET QTDIR=E:\Projects\QT\QT480 >> SET PYSIDESOURCEDIR=\Projects\PySide\ >> SET PYSIDEINSTALLDIR=\Projects\PySide\PySideInstall\ >> SET PSINSTALLD=%PYSIDEINSTALLDIR%Debug >> SET PSINSTALLR=%PYSIDEINSTALLDIR%Release >> SET SHIBOKENDIR=\Projects\PySide\shiboken-1.1.1 >> SET PYSIDEDIR=\Projects\PySide\pyside-qt4.8+1.1.1 >> SET PYSIDETOOLSDIR=\Projects\PySide\pyside-tools-0.2.13 >> SET LIBXML=E:\Projects\PySide\libxml2-2.7.8.win32\ >> SET LIBXSLT=E:\Projects\PySide\libxslt-1.1.26.win32\ >> SET LIBICONV=E:\Projects\PySide\iconv-1.9.2.win32\ >> SET LIBZLIB=E:\Projects\PySide\zlib-1.2.5\ >> >> SET >> PATH=%QTDIR%\bin;%LIBXML%bin;%LIBXSLT%bin;%LIBICONV%bin;%LIBZLIB%bin;%PATH% >> >> @echo make install dir >> mkdir %PYSIDEINSTALLDIR% >> >> @echo go to pyside source dir >> cd %PYSIDESOURCEDIR% >> >> @echo PySide build release >> @echo make shiboken >> mkdir %PSINSTALLR% >> cd %SHIBOKENDIR% >> mkdir buildrelease >> cd buildrelease >> cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=FALSE >> -DPYTHON_EXECUTABLE="%PYTHONDIR%python.exe" >> -DLIBXML2_LIBRARIES=%LIBXML%lib\libxml2.lib >> -DLIBXML2_INCLUDE_DIR=%LIBXML%include >> -DLIBXSLT_LIBRARIES=%LIBXSLT%lib\libxslt.lib >> -DLIBXSLT_INCLUDE_DIR=%LIBXSLT%include >> -DCMAKE_INSTALL_PREFIX="%PSINSTALLR%" .. >> nmake install >> @echo make pyside >> cd %PYSIDEDIR% >> mkdir buildrelease >> cd buildrelease >> cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=FALSE >> -DCMAKE_INSTALL_PREFIX="%PSINSTALLR%" .. >> nmake install >> @echo make pyside tools >> cd %PYSIDETOOLSDIR% >> mkdir buildrelease >> cd buildrelease >> cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=FALSE >> -DCMAKE_INSTALL_PREFIX="%PSINSTALLR%" .. >> nmake install >> >> >> @echo PySide build debug >> @echo make shiboken debug >> mkdir %PSINSTALLD% >> cd %SHIBOKENDIR% >> mkdir builddebug >> cd builddebug >> cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTS=FALSE >> -DPYTHON_EXECUTABLE="%PYTHONDIR%python_d.exe" >> -DPYTHON_DEBUG_LIBRARY="%PYTHONDIR%python%PYTHONVER%_d.lib" >> -DPYTHON_LIBRARIES="%PYTHONDIR%python%PYTHONVER%_d.lib" >> -DLIBXML2_LIBRARIES=%LIBXML%lib\libxml2.lib >> -DLIBXML2_INCLUDE_DIR=%LIBXML%include >> -DLIBXSLT_LIBRARIES=%LIBXSLT%lib\libxslt.lib >> -DLIBXSLT_INCLUDE_DIR=%LIBXSLT%include >> -DCMAKE_INSTALL_PREFIX="%PSINSTALLD%" .. >> nmake install >> @echo make pyside debug >> cd %PYSIDEDIR% >> mkdir builddebug >> cd builddebug >> cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTS=FALSE >> -DPYTHON_EXECUTABLE="%PYTHONDIR%python_d.exe" >> -DPYTHON_DEBUG_LIBRARY="%PYTHONDIR%python%PYTHONVER%_d.lib" >> -DPYTHON_LIBRARIES="%PYTHONDIR%python%PYTHONVER%_d.lib" >> -DCMAKE_INSTALL_PREFIX="%PSINSTALLD%" .. >> nmake install >> @echo make pyside tools debug >> cd %PYSIDETOOLSDIR% >> mkdir builddebug >> cd builddebug >> cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTS=FALSE >> -DCMAKE_INSTALL_PREFIX="%PSINSTALLD%" .. >> nmake install >> >> cd %PYSIDEINSTALLDIR% >> @echo Done building PySide Debug and Release version >> >> _______________________________________________ >> PySide mailing list >> PySide at qt-project.org >> http://lists.qt-project.org/mailman/listinfo/pyside From alex.gronholm at nextday.fi Thu Apr 26 10:15:22 2012 From: alex.gronholm at nextday.fi (=?ISO-8859-1?Q?Alex_Gr=F6nholm?=) Date: Thu, 26 Apr 2012 11:15:22 +0300 Subject: [PySide] Aligning text in table cells Message-ID: <4F99041A.7070006@nextday.fi> I'm trying to get cell values aligned properly in my table view. What I did first was return Qt.AlignCenter when asked for data in the Qt.TextAlignmentRole, and that worked as expected. However, combining any alignments together results in all of them being ignored. Suppose I returned Qt.AlignHCenter | Qt.AlignVCenter (which should be equal to Qt.AlignCenter), the text goes to the upper left corner of the cell. This makes no sense to me. Have I discovered a bug? Oh, and this is PySide 1.1.1. From backup.rlacko at gmail.com Thu Apr 26 10:17:37 2012 From: backup.rlacko at gmail.com (Roman Lacko) Date: Thu, 26 Apr 2012 10:17:37 +0200 Subject: [PySide] PySide 1.1.1 - Problems building pyside with Qt 4.8.0 both debug and release version on windows In-Reply-To: <4F98F53B.5040709@nefines.com> References: <1504846.kpc0dmMpO8@hugodesktop> <4F97B2A2.1080601@nefines.com> <4F98F53B.5040709@nefines.com> Message-ID: Hi, thaks for working on this! 2012/4/26 Bjørn Helge Kjøsnes : > Hi, > > I did look into it last night and the problem seems to be include of some > new types when generating the wrappers. The first one was fixed by adding > some extra include in the object type for QFSFileEngine, but then a new > error appears in QFile type. This one is not fixed by a simple include. If > this works in the Linux and Mac version with Qt 4.8.0, it has to be a > Windows specific problem in Shiboken. If anyone can point me to where to > look in the Shiboken source and how to best debug this, I can have another > go at it in my spare time. Is there any documentation on how it works. It > seams like the things I find in the apiextractor documentation not match > what I find in the xml typesystem files. At least not the enum type that I > can see uses the flags attribute in another way in the source than in the > documentation(http://www.pyside.org/docs/apiextractor/typesystem_specifying_types.html). > What should I do to be sure my changes do not affect the earlier versions of > Qt. I see some tags for version in the type system. Do this work on all > elements? > > This change to the typesystem_core_common.xml fixes the first error for Qt > 4.8.0 on windows, but I do not know what happens in Qt 4.7.4 if I use this: > > Original: > > > > > > > New with extra include for Qt 4.8.0: > > > > > > > > > Next is the procedures to get the code into the Source control. I looked at > Gerrit, and have to admit that it did not make much sense to me. Are there > any good descriptions on how to make the patches and how to add them? I think You should clone shiboken repository ssh://codereview.qt-project.org:29418/pyside/shiboken.git and than make merge request [1] ? Regards Roman [1] http://qt-project.org/videos/watch/gerrit_contributing_and_reviewing_a_change > > Regards, > Bjorn Helge Kjosnes > > On 25.04.2012 10:51, Roman Lacko wrote: >> >> Hi, >> >> It was reported some time ago and it is the last bug that stops me to >> create windows packages compiled with Qt 4.8. Would be great if >> someone (maybe You ?) with C++ knowlege on windows finally gets this >> bug fixed. >> >> >> Regards >> Roman >> >> 2012/4/25 Bjørn Helge Kjøsnes: >>> >>> Hi all, >>> >>> I have not been able to make the PySide 1.1.1 compile with QT 4.8.0 and >>> Python 2.7.3  on Windows with Visual Studio 2008 and CMake 2.8.8. >>> Replacing QT 4.8.0 with QT 4.7.4 all compiles and installs. >>> >>> This is what I have done so far: >>> On my disk, all code is in a Project folder on the E: drive where I have >>> a folder for Python, for QT and for PySide. In pyside I have the >>> depending libraries  that I explicitly adds to my cmake command. >>> >>> I am able to compile shiboken from "Visual Studio 2008 Command prompt", >>> but when I try to build PySide  I get this error: >>> >>> [  6%] Building CXX object >>> PySide/QtCore/CMakeFiles/QtCore.dir/PySide/QtCore/qfile_wrapper.cpp.obj >>> qfile_wrapper.cpp >>> >>> E:\Projects\PySide\pyside-qt4.8+1.1.1\buildrelease\PySide\QtCore\PySide\QtCore\qfile_wrapper.cpp(1752) >>> : error C2661: 'QFileWrapper::open' : no overloaded function takes 3 >>> arguments >>> NMAKE : fatal error U1077: 'C:\PROGRA~2\MICROS~1.0\VC\bin\cl.exe' : >>> return code >>> '0x2' >>> Stop. >>> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual >>> Studio 9.0\VC\BIN\nmake.exe"' : return code '0x2' >>> Stop. >>> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual >>> Studio 9.0\VC\BIN\nmake.exe"' : return code '0x2' >>> Stop. >>> >>> >>> If anyone can point me in the right direction, I can give it a try to >>> make a fix. I do code in both C++ and Python in other projects and >>> PySide have become an important library for me on the Windows platform. >>> >>> Kind regards >>> Bjorn Helge Kjosnes >>> >>> My buildpyside.bat file that I run from e:\Project\pyside in Visual >>> Studio 2008 command prompt: >>> @echo set all folders >>> SET PYTHONDIR=\Projects\Python\Python-2.7.3\PCbuild\ >>> SET PYTHONVER=27 >>> SET QTDIR=E:\Projects\QT\QT480 >>> SET PYSIDESOURCEDIR=\Projects\PySide\ >>> SET PYSIDEINSTALLDIR=\Projects\PySide\PySideInstall\ >>> SET PSINSTALLD=%PYSIDEINSTALLDIR%Debug >>> SET PSINSTALLR=%PYSIDEINSTALLDIR%Release >>> SET SHIBOKENDIR=\Projects\PySide\shiboken-1.1.1 >>> SET PYSIDEDIR=\Projects\PySide\pyside-qt4.8+1.1.1 >>> SET PYSIDETOOLSDIR=\Projects\PySide\pyside-tools-0.2.13 >>> SET LIBXML=E:\Projects\PySide\libxml2-2.7.8.win32\ >>> SET LIBXSLT=E:\Projects\PySide\libxslt-1.1.26.win32\ >>> SET LIBICONV=E:\Projects\PySide\iconv-1.9.2.win32\ >>> SET LIBZLIB=E:\Projects\PySide\zlib-1.2.5\ >>> >>> SET >>> >>> PATH=%QTDIR%\bin;%LIBXML%bin;%LIBXSLT%bin;%LIBICONV%bin;%LIBZLIB%bin;%PATH% >>> >>> @echo make install dir >>> mkdir %PYSIDEINSTALLDIR% >>> >>> @echo go to pyside source dir >>> cd %PYSIDESOURCEDIR% >>> >>> @echo PySide build release >>> @echo make shiboken >>> mkdir %PSINSTALLR% >>> cd %SHIBOKENDIR% >>> mkdir buildrelease >>> cd buildrelease >>> cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=FALSE >>> -DPYTHON_EXECUTABLE="%PYTHONDIR%python.exe" >>> -DLIBXML2_LIBRARIES=%LIBXML%lib\libxml2.lib >>> -DLIBXML2_INCLUDE_DIR=%LIBXML%include >>> -DLIBXSLT_LIBRARIES=%LIBXSLT%lib\libxslt.lib >>> -DLIBXSLT_INCLUDE_DIR=%LIBXSLT%include >>> -DCMAKE_INSTALL_PREFIX="%PSINSTALLR%" .. >>> nmake install >>> @echo make pyside >>> cd %PYSIDEDIR% >>> mkdir buildrelease >>> cd buildrelease >>> cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=FALSE >>> -DCMAKE_INSTALL_PREFIX="%PSINSTALLR%" .. >>> nmake install >>> @echo make pyside tools >>> cd %PYSIDETOOLSDIR% >>> mkdir buildrelease >>> cd buildrelease >>> cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=FALSE >>> -DCMAKE_INSTALL_PREFIX="%PSINSTALLR%" .. >>> nmake install >>> >>> >>> @echo PySide build debug >>> @echo make shiboken debug >>> mkdir %PSINSTALLD% >>> cd %SHIBOKENDIR% >>> mkdir builddebug >>> cd builddebug >>> cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTS=FALSE >>> -DPYTHON_EXECUTABLE="%PYTHONDIR%python_d.exe" >>> -DPYTHON_DEBUG_LIBRARY="%PYTHONDIR%python%PYTHONVER%_d.lib" >>> -DPYTHON_LIBRARIES="%PYTHONDIR%python%PYTHONVER%_d.lib" >>> -DLIBXML2_LIBRARIES=%LIBXML%lib\libxml2.lib >>> -DLIBXML2_INCLUDE_DIR=%LIBXML%include >>> -DLIBXSLT_LIBRARIES=%LIBXSLT%lib\libxslt.lib >>> -DLIBXSLT_INCLUDE_DIR=%LIBXSLT%include >>> -DCMAKE_INSTALL_PREFIX="%PSINSTALLD%" .. >>> nmake install >>> @echo make pyside debug >>> cd %PYSIDEDIR% >>> mkdir builddebug >>> cd builddebug >>> cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTS=FALSE >>> -DPYTHON_EXECUTABLE="%PYTHONDIR%python_d.exe" >>> -DPYTHON_DEBUG_LIBRARY="%PYTHONDIR%python%PYTHONVER%_d.lib" >>> -DPYTHON_LIBRARIES="%PYTHONDIR%python%PYTHONVER%_d.lib" >>> -DCMAKE_INSTALL_PREFIX="%PSINSTALLD%" .. >>> nmake install >>> @echo make pyside tools debug >>> cd %PYSIDETOOLSDIR% >>> mkdir builddebug >>> cd builddebug >>> cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTS=FALSE >>> -DCMAKE_INSTALL_PREFIX="%PSINSTALLD%" .. >>> nmake install >>> >>> cd %PYSIDEINSTALLDIR% >>> @echo Done building PySide Debug and Release version >>> >>> _______________________________________________ >>> PySide mailing list >>> PySide at qt-project.org >>> http://lists.qt-project.org/mailman/listinfo/pyside > > From backup.rlacko at gmail.com Thu Apr 26 10:36:23 2012 From: backup.rlacko at gmail.com (Roman Lacko) Date: Thu, 26 Apr 2012 10:36:23 +0200 Subject: [PySide] PySide 1.1.1 - Problems building pyside with Qt 4.8.0 both debug and release version on windows In-Reply-To: <4F98F53B.5040709@nefines.com> References: <1504846.kpc0dmMpO8@hugodesktop> <4F97B2A2.1080601@nefines.com> <4F98F53B.5040709@nefines.com> Message-ID: Hi, I get following error when running shiboken generator while building: ... 2012-04-25 16:51:00,453 - setuptools - INFO - [ 96%] Building CXX object generator/CMakeFiles/shiboken.dir/qtdoc/qtdocgenerator.cpp.obj 2012-04-25 16:51:00,555 - setuptools - INFO - qtdocgenerator.cpp 2012-04-25 16:51:02,974 - setuptools - INFO - Linking CXX executable shiboken.exe 2012-04-25 16:51:03,588 - setuptools - INFO - [ 96%] 2012-04-25 16:51:03,690 - setuptools - INFO - Built target shiboken 2012-04-25 16:51:03,690 - setuptools - INFO - [ 98%] Running generator for 'shiboken'... 2012-04-25 16:51:03,790 - setuptools - INFO - NMAKE : fatal error U1077: 'C:\Downloads\setuptools\modules\shiboken\build\generator\shiboken.EXE' : return code '0xc0000139' ... I got fixed the same error when building with qt 4.7.x by adding the cmake option -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=yes but did not wotk with qt 4.8.1 Did You compile shiboken without problems ? btw, i'm using Qt 4.8.1, not 4.8.0. Thanks Roman 2012/4/26 Bjørn Helge Kjøsnes : > Hi, > > I did look into it last night and the problem seems to be include of some > new types when generating the wrappers. The first one was fixed by adding > some extra include in the object type for QFSFileEngine, but then a new > error appears in QFile type. This one is not fixed by a simple include. If > this works in the Linux and Mac version with Qt 4.8.0, it has to be a > Windows specific problem in Shiboken. If anyone can point me to where to > look in the Shiboken source and how to best debug this, I can have another > go at it in my spare time. Is there any documentation on how it works. It > seams like the things I find in the apiextractor documentation not match > what I find in the xml typesystem files. At least not the enum type that I > can see uses the flags attribute in another way in the source than in the > documentation(http://www.pyside.org/docs/apiextractor/typesystem_specifying_types.html). > What should I do to be sure my changes do not affect the earlier versions of > Qt. I see some tags for version in the type system. Do this work on all > elements? > > This change to the typesystem_core_common.xml fixes the first error for Qt > 4.8.0 on windows, but I do not know what happens in Qt 4.7.4 if I use this: > > Original: > > > > > > > New with extra include for Qt 4.8.0: > > > > > > > > > Next is the procedures to get the code into the Source control. I looked at > Gerrit, and have to admit that it did not make much sense to me. Are there > any good descriptions on how to make the patches and how to add them? > > Regards, > Bjorn Helge Kjosnes > > On 25.04.2012 10:51, Roman Lacko wrote: >> >> Hi, >> >> It was reported some time ago and it is the last bug that stops me to >> create windows packages compiled with Qt 4.8. Would be great if >> someone (maybe You ?) with C++ knowlege on windows finally gets this >> bug fixed. >> >> >> Regards >> Roman >> >> 2012/4/25 Bjørn Helge Kjøsnes: >>> >>> Hi all, >>> >>> I have not been able to make the PySide 1.1.1 compile with QT 4.8.0 and >>> Python 2.7.3  on Windows with Visual Studio 2008 and CMake 2.8.8. >>> Replacing QT 4.8.0 with QT 4.7.4 all compiles and installs. >>> >>> This is what I have done so far: >>> On my disk, all code is in a Project folder on the E: drive where I have >>> a folder for Python, for QT and for PySide. In pyside I have the >>> depending libraries  that I explicitly adds to my cmake command. >>> >>> I am able to compile shiboken from "Visual Studio 2008 Command prompt", >>> but when I try to build PySide  I get this error: >>> >>> [  6%] Building CXX object >>> PySide/QtCore/CMakeFiles/QtCore.dir/PySide/QtCore/qfile_wrapper.cpp.obj >>> qfile_wrapper.cpp >>> >>> E:\Projects\PySide\pyside-qt4.8+1.1.1\buildrelease\PySide\QtCore\PySide\QtCore\qfile_wrapper.cpp(1752) >>> : error C2661: 'QFileWrapper::open' : no overloaded function takes 3 >>> arguments >>> NMAKE : fatal error U1077: 'C:\PROGRA~2\MICROS~1.0\VC\bin\cl.exe' : >>> return code >>> '0x2' >>> Stop. >>> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual >>> Studio 9.0\VC\BIN\nmake.exe"' : return code '0x2' >>> Stop. >>> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual >>> Studio 9.0\VC\BIN\nmake.exe"' : return code '0x2' >>> Stop. >>> >>> >>> If anyone can point me in the right direction, I can give it a try to >>> make a fix. I do code in both C++ and Python in other projects and >>> PySide have become an important library for me on the Windows platform. >>> >>> Kind regards >>> Bjorn Helge Kjosnes >>> >>> My buildpyside.bat file that I run from e:\Project\pyside in Visual >>> Studio 2008 command prompt: >>> @echo set all folders >>> SET PYTHONDIR=\Projects\Python\Python-2.7.3\PCbuild\ >>> SET PYTHONVER=27 >>> SET QTDIR=E:\Projects\QT\QT480 >>> SET PYSIDESOURCEDIR=\Projects\PySide\ >>> SET PYSIDEINSTALLDIR=\Projects\PySide\PySideInstall\ >>> SET PSINSTALLD=%PYSIDEINSTALLDIR%Debug >>> SET PSINSTALLR=%PYSIDEINSTALLDIR%Release >>> SET SHIBOKENDIR=\Projects\PySide\shiboken-1.1.1 >>> SET PYSIDEDIR=\Projects\PySide\pyside-qt4.8+1.1.1 >>> SET PYSIDETOOLSDIR=\Projects\PySide\pyside-tools-0.2.13 >>> SET LIBXML=E:\Projects\PySide\libxml2-2.7.8.win32\ >>> SET LIBXSLT=E:\Projects\PySide\libxslt-1.1.26.win32\ >>> SET LIBICONV=E:\Projects\PySide\iconv-1.9.2.win32\ >>> SET LIBZLIB=E:\Projects\PySide\zlib-1.2.5\ >>> >>> SET >>> >>> PATH=%QTDIR%\bin;%LIBXML%bin;%LIBXSLT%bin;%LIBICONV%bin;%LIBZLIB%bin;%PATH% >>> >>> @echo make install dir >>> mkdir %PYSIDEINSTALLDIR% >>> >>> @echo go to pyside source dir >>> cd %PYSIDESOURCEDIR% >>> >>> @echo PySide build release >>> @echo make shiboken >>> mkdir %PSINSTALLR% >>> cd %SHIBOKENDIR% >>> mkdir buildrelease >>> cd buildrelease >>> cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=FALSE >>> -DPYTHON_EXECUTABLE="%PYTHONDIR%python.exe" >>> -DLIBXML2_LIBRARIES=%LIBXML%lib\libxml2.lib >>> -DLIBXML2_INCLUDE_DIR=%LIBXML%include >>> -DLIBXSLT_LIBRARIES=%LIBXSLT%lib\libxslt.lib >>> -DLIBXSLT_INCLUDE_DIR=%LIBXSLT%include >>> -DCMAKE_INSTALL_PREFIX="%PSINSTALLR%" .. >>> nmake install >>> @echo make pyside >>> cd %PYSIDEDIR% >>> mkdir buildrelease >>> cd buildrelease >>> cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=FALSE >>> -DCMAKE_INSTALL_PREFIX="%PSINSTALLR%" .. >>> nmake install >>> @echo make pyside tools >>> cd %PYSIDETOOLSDIR% >>> mkdir buildrelease >>> cd buildrelease >>> cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=FALSE >>> -DCMAKE_INSTALL_PREFIX="%PSINSTALLR%" .. >>> nmake install >>> >>> >>> @echo PySide build debug >>> @echo make shiboken debug >>> mkdir %PSINSTALLD% >>> cd %SHIBOKENDIR% >>> mkdir builddebug >>> cd builddebug >>> cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTS=FALSE >>> -DPYTHON_EXECUTABLE="%PYTHONDIR%python_d.exe" >>> -DPYTHON_DEBUG_LIBRARY="%PYTHONDIR%python%PYTHONVER%_d.lib" >>> -DPYTHON_LIBRARIES="%PYTHONDIR%python%PYTHONVER%_d.lib" >>> -DLIBXML2_LIBRARIES=%LIBXML%lib\libxml2.lib >>> -DLIBXML2_INCLUDE_DIR=%LIBXML%include >>> -DLIBXSLT_LIBRARIES=%LIBXSLT%lib\libxslt.lib >>> -DLIBXSLT_INCLUDE_DIR=%LIBXSLT%include >>> -DCMAKE_INSTALL_PREFIX="%PSINSTALLD%" .. >>> nmake install >>> @echo make pyside debug >>> cd %PYSIDEDIR% >>> mkdir builddebug >>> cd builddebug >>> cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTS=FALSE >>> -DPYTHON_EXECUTABLE="%PYTHONDIR%python_d.exe" >>> -DPYTHON_DEBUG_LIBRARY="%PYTHONDIR%python%PYTHONVER%_d.lib" >>> -DPYTHON_LIBRARIES="%PYTHONDIR%python%PYTHONVER%_d.lib" >>> -DCMAKE_INSTALL_PREFIX="%PSINSTALLD%" .. >>> nmake install >>> @echo make pyside tools debug >>> cd %PYSIDETOOLSDIR% >>> mkdir builddebug >>> cd builddebug >>> cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTS=FALSE >>> -DCMAKE_INSTALL_PREFIX="%PSINSTALLD%" .. >>> nmake install >>> >>> cd %PYSIDEINSTALLDIR% >>> @echo Done building PySide Debug and Release version >>> >>> _______________________________________________ >>> PySide mailing list >>> PySide at qt-project.org >>> http://lists.qt-project.org/mailman/listinfo/pyside > > From bjelge at nefines.com Thu Apr 26 11:05:42 2012 From: bjelge at nefines.com (=?ISO-8859-1?Q?Bj=F8rn_Helge_Kj=F8snes?=) Date: Thu, 26 Apr 2012 11:05:42 +0200 Subject: [PySide] PySide 1.1.1 - Problems building pyside with Qt 4.8.0 both debug and release version on windows In-Reply-To: References: <1504846.kpc0dmMpO8@hugodesktop> <4F97B2A2.1080601@nefines.com> <4F98F53B.5040709@nefines.com> Message-ID: <4F990FE6.6060802@nefines.com> Hi, I did get shiboken to compile without errors, but I do not compile in the documentation generator as I do not need that for my project. What I needed to get my version to compile this time was to euther copy the xml, xslt and iconv dlls into some where in the path or into the directory where shiboken.exe is located. Before I did that I got a similar error message. Regards, Bjorn Helge On 26.04.2012 10:36, Roman Lacko wrote: > Hi, > > I get following error when running shiboken generator while building: > ... > 2012-04-25 16:51:00,453 - setuptools - INFO - [ 96%] Building CXX > object generator/CMakeFiles/shiboken.dir/qtdoc/qtdocgenerator.cpp.obj > 2012-04-25 16:51:00,555 - setuptools - INFO - qtdocgenerator.cpp > 2012-04-25 16:51:02,974 - setuptools - INFO - Linking CXX executable > shiboken.exe > 2012-04-25 16:51:03,588 - setuptools - INFO - [ 96%] > 2012-04-25 16:51:03,690 - setuptools - INFO - Built target shiboken > 2012-04-25 16:51:03,690 - setuptools - INFO - [ 98%] Running generator > for 'shiboken'... > 2012-04-25 16:51:03,790 - setuptools - INFO - NMAKE : fatal error > U1077: 'C:\Downloads\setuptools\modules\shiboken\build\generator\shiboken.EXE' > : return code '0xc0000139' > ... > I got fixed the same error when building with qt 4.7.x by adding the > cmake option -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=yes but did not wotk > with qt 4.8.1 > > Did You compile shiboken without problems ? > btw, i'm using Qt 4.8.1, not 4.8.0. > > Thanks > Roman > > 2012/4/26 Bjørn Helge Kjøsnes: >> Hi, >> >> I did look into it last night and the problem seems to be include of some >> new types when generating the wrappers. The first one was fixed by adding >> some extra include in the object type for QFSFileEngine, but then a new >> error appears in QFile type. This one is not fixed by a simple include. If >> this works in the Linux and Mac version with Qt 4.8.0, it has to be a >> Windows specific problem in Shiboken. If anyone can point me to where to >> look in the Shiboken source and how to best debug this, I can have another >> go at it in my spare time. Is there any documentation on how it works. It >> seams like the things I find in the apiextractor documentation not match >> what I find in the xml typesystem files. At least not the enum type that I >> can see uses the flags attribute in another way in the source than in the >> documentation(http://www.pyside.org/docs/apiextractor/typesystem_specifying_types.html). >> What should I do to be sure my changes do not affect the earlier versions of >> Qt. I see some tags for version in the type system. Do this work on all >> elements? >> >> This change to the typesystem_core_common.xml fixes the first error for Qt >> 4.8.0 on windows, but I do not know what happens in Qt 4.7.4 if I use this: >> >> Original: >> >> >> >> >> >> >> New with extra include for Qt 4.8.0: >> >> >> >> >> >> >> >> >> Next is the procedures to get the code into the Source control. I looked at >> Gerrit, and have to admit that it did not make much sense to me. Are there >> any good descriptions on how to make the patches and how to add them? >> >> Regards, >> Bjorn Helge Kjosnes >> >> On 25.04.2012 10:51, Roman Lacko wrote: >>> Hi, >>> >>> It was reported some time ago and it is the last bug that stops me to >>> create windows packages compiled with Qt 4.8. Would be great if >>> someone (maybe You ?) with C++ knowlege on windows finally gets this >>> bug fixed. >>> >>> >>> Regards >>> Roman >>> >>> 2012/4/25 Bjørn Helge Kjøsnes: >>>> Hi all, >>>> >>>> I have not been able to make the PySide 1.1.1 compile with QT 4.8.0 and >>>> Python 2.7.3 on Windows with Visual Studio 2008 and CMake 2.8.8. >>>> Replacing QT 4.8.0 with QT 4.7.4 all compiles and installs. >>>> >>>> This is what I have done so far: >>>> On my disk, all code is in a Project folder on the E: drive where I have >>>> a folder for Python, for QT and for PySide. In pyside I have the >>>> depending libraries that I explicitly adds to my cmake command. >>>> >>>> I am able to compile shiboken from "Visual Studio 2008 Command prompt", >>>> but when I try to build PySide I get this error: >>>> >>>> [ 6%] Building CXX object >>>> PySide/QtCore/CMakeFiles/QtCore.dir/PySide/QtCore/qfile_wrapper.cpp.obj >>>> qfile_wrapper.cpp >>>> >>>> E:\Projects\PySide\pyside-qt4.8+1.1.1\buildrelease\PySide\QtCore\PySide\QtCore\qfile_wrapper.cpp(1752) >>>> : error C2661: 'QFileWrapper::open' : no overloaded function takes 3 >>>> arguments >>>> NMAKE : fatal error U1077: 'C:\PROGRA~2\MICROS~1.0\VC\bin\cl.exe' : >>>> return code >>>> '0x2' >>>> Stop. >>>> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual >>>> Studio 9.0\VC\BIN\nmake.exe"' : return code '0x2' >>>> Stop. >>>> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual >>>> Studio 9.0\VC\BIN\nmake.exe"' : return code '0x2' >>>> Stop. >>>> >>>> >>>> If anyone can point me in the right direction, I can give it a try to >>>> make a fix. I do code in both C++ and Python in other projects and >>>> PySide have become an important library for me on the Windows platform. >>>> >>>> Kind regards >>>> Bjorn Helge Kjosnes >>>> >>>> My buildpyside.bat file that I run from e:\Project\pyside in Visual >>>> Studio 2008 command prompt: >>>> @echo set all folders >>>> SET PYTHONDIR=\Projects\Python\Python-2.7.3\PCbuild\ >>>> SET PYTHONVER=27 >>>> SET QTDIR=E:\Projects\QT\QT480 >>>> SET PYSIDESOURCEDIR=\Projects\PySide\ >>>> SET PYSIDEINSTALLDIR=\Projects\PySide\PySideInstall\ >>>> SET PSINSTALLD=%PYSIDEINSTALLDIR%Debug >>>> SET PSINSTALLR=%PYSIDEINSTALLDIR%Release >>>> SET SHIBOKENDIR=\Projects\PySide\shiboken-1.1.1 >>>> SET PYSIDEDIR=\Projects\PySide\pyside-qt4.8+1.1.1 >>>> SET PYSIDETOOLSDIR=\Projects\PySide\pyside-tools-0.2.13 >>>> SET LIBXML=E:\Projects\PySide\libxml2-2.7.8.win32\ >>>> SET LIBXSLT=E:\Projects\PySide\libxslt-1.1.26.win32\ >>>> SET LIBICONV=E:\Projects\PySide\iconv-1.9.2.win32\ >>>> SET LIBZLIB=E:\Projects\PySide\zlib-1.2.5\ >>>> >>>> SET >>>> >>>> PATH=%QTDIR%\bin;%LIBXML%bin;%LIBXSLT%bin;%LIBICONV%bin;%LIBZLIB%bin;%PATH% >>>> >>>> @echo make install dir >>>> mkdir %PYSIDEINSTALLDIR% >>>> >>>> @echo go to pyside source dir >>>> cd %PYSIDESOURCEDIR% >>>> >>>> @echo PySide build release >>>> @echo make shiboken >>>> mkdir %PSINSTALLR% >>>> cd %SHIBOKENDIR% >>>> mkdir buildrelease >>>> cd buildrelease >>>> cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=FALSE >>>> -DPYTHON_EXECUTABLE="%PYTHONDIR%python.exe" >>>> -DLIBXML2_LIBRARIES=%LIBXML%lib\libxml2.lib >>>> -DLIBXML2_INCLUDE_DIR=%LIBXML%include >>>> -DLIBXSLT_LIBRARIES=%LIBXSLT%lib\libxslt.lib >>>> -DLIBXSLT_INCLUDE_DIR=%LIBXSLT%include >>>> -DCMAKE_INSTALL_PREFIX="%PSINSTALLR%" .. >>>> nmake install >>>> @echo make pyside >>>> cd %PYSIDEDIR% >>>> mkdir buildrelease >>>> cd buildrelease >>>> cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=FALSE >>>> -DCMAKE_INSTALL_PREFIX="%PSINSTALLR%" .. >>>> nmake install >>>> @echo make pyside tools >>>> cd %PYSIDETOOLSDIR% >>>> mkdir buildrelease >>>> cd buildrelease >>>> cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=FALSE >>>> -DCMAKE_INSTALL_PREFIX="%PSINSTALLR%" .. >>>> nmake install >>>> >>>> >>>> @echo PySide build debug >>>> @echo make shiboken debug >>>> mkdir %PSINSTALLD% >>>> cd %SHIBOKENDIR% >>>> mkdir builddebug >>>> cd builddebug >>>> cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTS=FALSE >>>> -DPYTHON_EXECUTABLE="%PYTHONDIR%python_d.exe" >>>> -DPYTHON_DEBUG_LIBRARY="%PYTHONDIR%python%PYTHONVER%_d.lib" >>>> -DPYTHON_LIBRARIES="%PYTHONDIR%python%PYTHONVER%_d.lib" >>>> -DLIBXML2_LIBRARIES=%LIBXML%lib\libxml2.lib >>>> -DLIBXML2_INCLUDE_DIR=%LIBXML%include >>>> -DLIBXSLT_LIBRARIES=%LIBXSLT%lib\libxslt.lib >>>> -DLIBXSLT_INCLUDE_DIR=%LIBXSLT%include >>>> -DCMAKE_INSTALL_PREFIX="%PSINSTALLD%" .. >>>> nmake install >>>> @echo make pyside debug >>>> cd %PYSIDEDIR% >>>> mkdir builddebug >>>> cd builddebug >>>> cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTS=FALSE >>>> -DPYTHON_EXECUTABLE="%PYTHONDIR%python_d.exe" >>>> -DPYTHON_DEBUG_LIBRARY="%PYTHONDIR%python%PYTHONVER%_d.lib" >>>> -DPYTHON_LIBRARIES="%PYTHONDIR%python%PYTHONVER%_d.lib" >>>> -DCMAKE_INSTALL_PREFIX="%PSINSTALLD%" .. >>>> nmake install >>>> @echo make pyside tools debug >>>> cd %PYSIDETOOLSDIR% >>>> mkdir builddebug >>>> cd builddebug >>>> cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTS=FALSE >>>> -DCMAKE_INSTALL_PREFIX="%PSINSTALLD%" .. >>>> nmake install >>>> >>>> cd %PYSIDEINSTALLDIR% >>>> @echo Done building PySide Debug and Release version >>>> >>>> _______________________________________________ >>>> PySide mailing list >>>> PySide at qt-project.org >>>> http://lists.qt-project.org/mailman/listinfo/pyside >> From hugo.lima at openbossa.org Thu Apr 26 22:40:47 2012 From: hugo.lima at openbossa.org (Hugo Parente Lima) Date: Thu, 26 Apr 2012 17:40:47 -0300 Subject: [PySide] PySide, Qt 4.7 and the Future In-Reply-To: <43379148-DFF6-4C0F-A43B-7C894C763BAC@gmail.com> References: <43379148-DFF6-4C0F-A43B-7C894C763BAC@gmail.com> Message-ID: <111290376.OiTfqXKE5i@hugodesktop> On Wednesday, April 25, 2012 08:13:54 PM Tony Barbieri wrote: > Hello Everyone, > > I saw on the Qt site that the PySide download is now labeled > pyside-qt4.8+1.1.1.tar.bz2 > > Does version 1.1.1 only work with Qt 4.8? If so will PySide for Qt 4.7 get > anymore bug updates or support? We use PySide to interact with other > applications such as Maya or Nuke which move a bit slower when it comes to > updating their Qt libraries and are still on version 4.7. No, this mean that the API for Qt 4.8 is there, but it should compile with Qt 4.6, and 4.7 as well... probably with Qt4.5 too. > Thanks so much! > > -tony -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part. URL: From frank at ohufx.com Fri Apr 27 00:08:07 2012 From: frank at ohufx.com (Frank Rueter | OHUfx) Date: Fri, 27 Apr 2012 10:08:07 +1200 Subject: [PySide] sliding widgets into position In-Reply-To: <4F98F0D6.8010909@gmail.com> References: <4F98EE3E.8000805@ohufx.com> <4F98F0D6.8010909@gmail.com> Message-ID: <4F99C747.3030606@ohufx.com> Thanks Tibold, I will have a look at that. I'm still not sure how to figure out the positioning in a procedural way though. Will investigate more. Cheers, frank On 4/26/12 6:53 PM, Tibold Kandrai wrote: > Hi, > > Try to subclass QDockWidget. You will have to set it's geometry > manually. Also if you want the widgets to pop up above the centralWidget > than don't add the dock widgets to any layout. Simply add them with the > main window as their parent, and raise them when you show them. > Using this technique I managed to implement auto hiding widgets like in > Visual Studio. It's not trivial, but it's possible. > Actually if you don't need any of the QDockWIdget's functionality you > can do the same with a QFrame as well. Same logic, override it's > geometry, and don't add them to the grid layout. Adding the widgets to > the grid layout will always push the central widget. > > Cheers, > Tibold > > On 2012-04-26 08:42, Frank Rueter | OHUfx wrote: >> Hi, >> >> end of day for me and my brain has gone numb, so I'm probably missing >> the obvious: >> >> I'm trying to create a widget with three areas: top, middle and bottom >> (using QFrames as place holders for now). >> The middle frame is meant to be visible from the start containing some >> text and other widgets, when the button is pushed, the top frame is >> meant to slide down into view and the bottom frame is meant to slide up >> into view, so that I'm left with a controllable vertical arrangements of >> those three frames. >> Here is my ugly attempt so far: >> http://pastebin.com/index/bNJ9zeUm >> >> Things do move but I can't control the start and end positions properly >> and the GridLayout adjusts itself when showing the extra frames, so that >> the middle frame jumps. I have no idea how to set the size hints etc. to >> define the start and end positions of the sliding QFrames generically >> and avoid the jumping middle frame (might have to go with an alternative >> approach to QGridLayout?!). >> >> Any help would be greatly appreciated. >> >> Frank >> _______________________________________________ >> PySide mailing list >> PySide at qt-project.org >> http://lists.qt-project.org/mailman/listinfo/pyside > > > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside -------------- next part -------------- An HTML attachment was scrubbed... URL: From greatrgb at gmail.com Fri Apr 27 00:19:19 2012 From: greatrgb at gmail.com (Tony Barbieri) Date: Thu, 26 Apr 2012 18:19:19 -0400 Subject: [PySide] PySide, Qt 4.7 and the Future In-Reply-To: <111290376.OiTfqXKE5i@hugodesktop> References: <43379148-DFF6-4C0F-A43B-7C894C763BAC@gmail.com> <111290376.OiTfqXKE5i@hugodesktop> Message-ID: Great! I went ahead and compiled 1.1.1 against 4.7.1 today and the only issue I had was with the generator CMake failing because of this issue: https://bugreports.qt-project.org/browse/PYSIDE-8 The attached diff did the trick though. Thanks again. -tony On Thu, Apr 26, 2012 at 4:40 PM, Hugo Parente Lima wrote: > On Wednesday, April 25, 2012 08:13:54 PM Tony Barbieri wrote: > > Hello Everyone, > > > > I saw on the Qt site that the PySide download is now labeled > > pyside-qt4.8+1.1.1.tar.bz2 > > > > Does version 1.1.1 only work with Qt 4.8? If so will PySide for Qt 4.7 > get > > anymore bug updates or support? We use PySide to interact with other > > applications such as Maya or Nuke which move a bit slower when it comes > to > > updating their Qt libraries and are still on version 4.7. > > No, this mean that the API for Qt 4.8 is there, but it should compile with > Qt > 4.6, and 4.7 as well... probably with Qt4.5 too. > > > Thanks so much! > > > > -tony -- -tony -------------- next part -------------- An HTML attachment was scrubbed... URL: From frank at ohufx.com Fri Apr 27 02:11:00 2012 From: frank at ohufx.com (Frank Rueter | OHUfx) Date: Fri, 27 Apr 2012 12:11:00 +1200 Subject: [PySide] sliding widgets into position In-Reply-To: <4F99C747.3030606@ohufx.com> References: <4F98EE3E.8000805@ohufx.com> <4F98F0D6.8010909@gmail.com> <4F99C747.3030606@ohufx.com> Message-ID: <4F99E414.7010203@ohufx.com> So I've followed Tibold's advice and sorted out some other ugly stuff and am a bit closer. My problem now is that, because I am not adding the top and bottom frames to the layout anymore (to avoid the middle frame shifting), I now can't get the right size and position relative to the centre frame. This is what I have now a bit cleaned up and with comments: http://pastebin.com/wrUX5Ce0 By making the middle frame the parent to the top and bottom frames they line up to it now in the upper left corner - cool, one step forward. But I can't get the top and bottom frames to have the same width as the parent and also don't know how to control the position properly so that the bottom frame is always positioned in the bottom left corner of the centre frame. The size policy isn't inherited either which I'm a bit clueless a bout too. Sorry for the noob questions but have looked online for tutorials on this sort of positioning to no avail. Thanks in advance for any help! Cheers, frank On 4/27/12 10:08 AM, Frank Rueter | OHUfx wrote: > Thanks Tibold, I will have a look at that. > I'm still not sure how to figure out the positioning in a procedural > way though. > Will investigate more. > > Cheers, > frank > > On 4/26/12 6:53 PM, Tibold Kandrai wrote: >> Hi, >> >> Try to subclass QDockWidget. You will have to set it's geometry >> manually. Also if you want the widgets to pop up above the centralWidget >> than don't add the dock widgets to any layout. Simply add them with the >> main window as their parent, and raise them when you show them. >> Using this technique I managed to implement auto hiding widgets like in >> Visual Studio. It's not trivial, but it's possible. >> Actually if you don't need any of the QDockWIdget's functionality you >> can do the same with a QFrame as well. Same logic, override it's >> geometry, and don't add them to the grid layout. Adding the widgets to >> the grid layout will always push the central widget. >> >> Cheers, >> Tibold >> >> On 2012-04-26 08:42, Frank Rueter | OHUfx wrote: >>> Hi, >>> >>> end of day for me and my brain has gone numb, so I'm probably missing >>> the obvious: >>> >>> I'm trying to create a widget with three areas: top, middle and bottom >>> (using QFrames as place holders for now). >>> The middle frame is meant to be visible from the start containing some >>> text and other widgets, when the button is pushed, the top frame is >>> meant to slide down into view and the bottom frame is meant to slide up >>> into view, so that I'm left with a controllable vertical arrangements of >>> those three frames. >>> Here is my ugly attempt so far: >>> http://pastebin.com/index/bNJ9zeUm >>> >>> Things do move but I can't control the start and end positions properly >>> and the GridLayout adjusts itself when showing the extra frames, so that >>> the middle frame jumps. I have no idea how to set the size hints etc. to >>> define the start and end positions of the sliding QFrames generically >>> and avoid the jumping middle frame (might have to go with an alternative >>> approach to QGridLayout?!). >>> >>> Any help would be greatly appreciated. >>> >>> Frank >>> _______________________________________________ >>> PySide mailing list >>> PySide at qt-project.org >>> http://lists.qt-project.org/mailman/listinfo/pyside >> >> >> _______________________________________________ >> PySide mailing list >> PySide at qt-project.org >> http://lists.qt-project.org/mailman/listinfo/pyside > > > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside -------------- next part -------------- An HTML attachment was scrubbed... URL: From kandraitibold at gmail.com Fri Apr 27 07:47:39 2012 From: kandraitibold at gmail.com (Tibold Kandrai) Date: Fri, 27 Apr 2012 07:47:39 +0200 Subject: [PySide] sliding widgets into position In-Reply-To: <4F99E414.7010203@ohufx.com> References: <4F98EE3E.8000805@ohufx.com> <4F98F0D6.8010909@gmail.com> <4F99C747.3030606@ohufx.com> <4F99E414.7010203@ohufx.com> Message-ID: <4F9A32FB.1080706@gmail.com> Try this out ;) http://pastebin.com/a04tvY0U Cheers, Tibold On 2012-04-27 02:11, Frank Rueter | OHUfx wrote: > So I've followed Tibold's advice and sorted out some other ugly stuff > and am a bit closer. > My problem now is that, because I am not adding the top and bottom > frames to the layout anymore (to avoid the middle frame shifting), I > now can't get the right size and position relative to the centre frame. > > This is what I have now a bit cleaned up and with comments: > http://pastebin.com/wrUX5Ce0 > > By making the middle frame the parent to the top and bottom frames > they line up to it now in the upper left corner - cool, one step forward. > But I can't get the top and bottom frames to have the same width as > the parent and also don't know how to control the position properly so > that the bottom frame is always positioned in the bottom left corner > of the centre frame. > The size policy isn't inherited either which I'm a bit clueless a bout > too. > > Sorry for the noob questions but have looked online for tutorials on > this sort of positioning to no avail. > > Thanks in advance for any help! > > Cheers, > frank > > > On 4/27/12 10:08 AM, Frank Rueter | OHUfx wrote: >> Thanks Tibold, I will have a look at that. >> I'm still not sure how to figure out the positioning in a procedural >> way though. >> Will investigate more. >> >> Cheers, >> frank >> >> On 4/26/12 6:53 PM, Tibold Kandrai wrote: >>> Hi, >>> >>> Try to subclass QDockWidget. You will have to set it's geometry >>> manually. Also if you want the widgets to pop up above the centralWidget >>> than don't add the dock widgets to any layout. Simply add them with the >>> main window as their parent, and raise them when you show them. >>> Using this technique I managed to implement auto hiding widgets like in >>> Visual Studio. It's not trivial, but it's possible. >>> Actually if you don't need any of the QDockWIdget's functionality you >>> can do the same with a QFrame as well. Same logic, override it's >>> geometry, and don't add them to the grid layout. Adding the widgets to >>> the grid layout will always push the central widget. >>> >>> Cheers, >>> Tibold >>> >>> On 2012-04-26 08:42, Frank Rueter | OHUfx wrote: >>>> Hi, >>>> >>>> end of day for me and my brain has gone numb, so I'm probably missing >>>> the obvious: >>>> >>>> I'm trying to create a widget with three areas: top, middle and bottom >>>> (using QFrames as place holders for now). >>>> The middle frame is meant to be visible from the start containing some >>>> text and other widgets, when the button is pushed, the top frame is >>>> meant to slide down into view and the bottom frame is meant to slide up >>>> into view, so that I'm left with a controllable vertical arrangements of >>>> those three frames. >>>> Here is my ugly attempt so far: >>>> http://pastebin.com/index/bNJ9zeUm >>>> >>>> Things do move but I can't control the start and end positions properly >>>> and the GridLayout adjusts itself when showing the extra frames, so that >>>> the middle frame jumps. I have no idea how to set the size hints etc. to >>>> define the start and end positions of the sliding QFrames generically >>>> and avoid the jumping middle frame (might have to go with an alternative >>>> approach to QGridLayout?!). >>>> >>>> Any help would be greatly appreciated. >>>> >>>> Frank >>>> _______________________________________________ >>>> PySide mailing list >>>> PySide at qt-project.org >>>> http://lists.qt-project.org/mailman/listinfo/pyside >>> >>> >>> _______________________________________________ >>> PySide mailing list >>> PySide at qt-project.org >>> http://lists.qt-project.org/mailman/listinfo/pyside >> >> >> _______________________________________________ >> PySide mailing list >> PySide at qt-project.org >> http://lists.qt-project.org/mailman/listinfo/pyside > > > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside -- Tibold Kandrai, CEO @ Dotz Team I/S, Software developer, consultant -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 552 bytes Desc: OpenPGP digital signature URL: From frank at ohufx.com Fri Apr 27 08:07:44 2012 From: frank at ohufx.com (Frank Rueter | OHUfx) Date: Fri, 27 Apr 2012 18:07:44 +1200 Subject: [PySide] sliding widgets into position In-Reply-To: <4F9A32FB.1080706@gmail.com> References: <4F98EE3E.8000805@ohufx.com> <4F98F0D6.8010909@gmail.com> <4F99C747.3030606@ohufx.com> <4F99E414.7010203@ohufx.com> <4F9A32FB.1080706@gmail.com> Message-ID: <4F9A37B0.5070100@ohufx.com> brilliant, that works great, thanks! Now I will try and understand it :-D It's getting late here though to will pick it apart tomorrow to try and get what I was missing (probably quit a few things). Very much appreciated! frank On 4/27/12 5:47 PM, Tibold Kandrai wrote: > Try this out ;) > http://pastebin.com/a04tvY0U > > Cheers, > Tibold > > On 2012-04-27 02:11, Frank Rueter | OHUfx wrote: >> So I've followed Tibold's advice and sorted out some other ugly stuff >> and am a bit closer. >> My problem now is that, because I am not adding the top and bottom >> frames to the layout anymore (to avoid the middle frame shifting), I >> now can't get the right size and position relative to the centre frame. >> >> This is what I have now a bit cleaned up and with comments: >> http://pastebin.com/wrUX5Ce0 >> >> By making the middle frame the parent to the top and bottom frames >> they line up to it now in the upper left corner - cool, one step forward. >> But I can't get the top and bottom frames to have the same width as >> the parent and also don't know how to control the position properly >> so that the bottom frame is always positioned in the bottom left >> corner of the centre frame. >> The size policy isn't inherited either which I'm a bit clueless a >> bout too. >> >> Sorry for the noob questions but have looked online for tutorials on >> this sort of positioning to no avail. >> >> Thanks in advance for any help! >> >> Cheers, >> frank >> >> >> On 4/27/12 10:08 AM, Frank Rueter | OHUfx wrote: >>> Thanks Tibold, I will have a look at that. >>> I'm still not sure how to figure out the positioning in a procedural >>> way though. >>> Will investigate more. >>> >>> Cheers, >>> frank >>> >>> On 4/26/12 6:53 PM, Tibold Kandrai wrote: >>>> Hi, >>>> >>>> Try to subclass QDockWidget. You will have to set it's geometry >>>> manually. Also if you want the widgets to pop up above the centralWidget >>>> than don't add the dock widgets to any layout. Simply add them with the >>>> main window as their parent, and raise them when you show them. >>>> Using this technique I managed to implement auto hiding widgets like in >>>> Visual Studio. It's not trivial, but it's possible. >>>> Actually if you don't need any of the QDockWIdget's functionality you >>>> can do the same with a QFrame as well. Same logic, override it's >>>> geometry, and don't add them to the grid layout. Adding the widgets to >>>> the grid layout will always push the central widget. >>>> >>>> Cheers, >>>> Tibold >>>> >>>> On 2012-04-26 08:42, Frank Rueter | OHUfx wrote: >>>>> Hi, >>>>> >>>>> end of day for me and my brain has gone numb, so I'm probably missing >>>>> the obvious: >>>>> >>>>> I'm trying to create a widget with three areas: top, middle and bottom >>>>> (using QFrames as place holders for now). >>>>> The middle frame is meant to be visible from the start containing some >>>>> text and other widgets, when the button is pushed, the top frame is >>>>> meant to slide down into view and the bottom frame is meant to slide up >>>>> into view, so that I'm left with a controllable vertical arrangements of >>>>> those three frames. >>>>> Here is my ugly attempt so far: >>>>> http://pastebin.com/index/bNJ9zeUm >>>>> >>>>> Things do move but I can't control the start and end positions properly >>>>> and the GridLayout adjusts itself when showing the extra frames, so that >>>>> the middle frame jumps. I have no idea how to set the size hints etc. to >>>>> define the start and end positions of the sliding QFrames generically >>>>> and avoid the jumping middle frame (might have to go with an alternative >>>>> approach to QGridLayout?!). >>>>> >>>>> Any help would be greatly appreciated. >>>>> >>>>> Frank >>>>> _______________________________________________ >>>>> PySide mailing list >>>>> PySide at qt-project.org >>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>> >>>> >>>> _______________________________________________ >>>> PySide mailing list >>>> PySide at qt-project.org >>>> http://lists.qt-project.org/mailman/listinfo/pyside >>> >>> >>> _______________________________________________ >>> PySide mailing list >>> PySide at qt-project.org >>> http://lists.qt-project.org/mailman/listinfo/pyside >> >> >> _______________________________________________ >> PySide mailing list >> PySide at qt-project.org >> http://lists.qt-project.org/mailman/listinfo/pyside > > -- > Tibold Kandrai, > CEO @ Dotz Team I/S, > Software developer, consultant > > > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmohler at gamry.com Fri Apr 27 16:04:54 2012 From: jmohler at gamry.com (Joel B. Mohler) Date: Fri, 27 Apr 2012 10:04:54 -0400 Subject: [PySide] build pyside with stackless includes Message-ID: <4F9AA786.4020509@gamry.com> Hi, I'm attempting to build the version 1.1.1 of PySide on windows with stackless python. I'm working from the instructions at http://qt-project.org/wiki/Building_PySide_on_Windows . I've run into two problems: The first is that c:\Python27\include\Stackless was not included on the include path by the build script from the build scripts repository. After including that path (using the INCLUDE environment variable), I get a more ominous error: 2012-04-27 08:45:23,171 - setuptools - INFO - [ 64%] Building CXX object libshiboken/CMakeFiles/libshiboken.dir/basewrapper.cpp.obj 2012-04-27 08:45:23,173 - setuptools - INFO - basewrapper.cpp 2012-04-27 08:45:23,673 - setuptools - INFO - C:\work\packaging\setuptools\modules\shiboken\libshiboken\basewrapper.cpp(156) : error C2078: too many initializers 2012-04-27 08:45:23,674 - setuptools - INFO - C:\work\packaging\setuptools\modules\shiboken\libshiboken\basewrapper.cpp(698) : error C2039: 'ht_type' : is not a member of '_typeobject' 2012-04-27 08:45:23,676 - setuptools - INFO - c:\python27\include\object.h(328) : see declaration of '_typeobject' 2012-04-27 08:45:23,677 - setuptools - INFO - C:\work\packaging\setuptools\modules\shiboken\libshiboken\basewrapper.cpp(698) : error C2228: left of '.tp_base' must have class/struct/union 2012-04-27 08:45:23,678 - setuptools - INFO - C:\work\packaging\setuptools\modules\shiboken\libshiboken\basewrapper.cpp(702) : error C2039: 'ht_type' : is not a member of '_typeobject' 2012-04-27 08:45:23,680 - setuptools - INFO - c:\python27\include\object.h(328) : see declaration of '_typeobject' 2012-04-27 08:45:23,680 - setuptools - INFO - C:\work\packaging\setuptools\modules\shiboken\libshiboken\basewrapper.cpp(702) : error C2228: left of '.tp_bases' must have class/struct/union 2012-04-27 08:45:23,683 - setuptools - INFO - NMAKE : fatal error U1077: 'c:\PROGRA~1\MICROS~1.0\VC\bin\cl.exe' : return code '0x2' 2012-04-27 08:45:23,684 - setuptools - INFO - Stop. A search indicates (e.g. http://www.stackless.com/pipermail/stackless/2008-October/003732.html) that this is because I'm building against the stackless python includes. This thread http://www.mail-archive.com/stackless at stackless.com/msg01733.html appears to produce a remedy, but I'm reluctant to study it in detail since it is 5 years old. I have been running the pre-built pyside 1.1.0 with both vanilla cpython and stackless so they certainly appear to be binary compatible, but I wanted the latest pyside 1.1.1 and there are no pre-built binaries for download. Is there a known fix for so I can build PySide against a Stackless python install on windows? Are there fixes for this case which should be in some upstream repo -- PySide? Stackless? or PySide packaging repo? Joel From hugo.lima at openbossa.org Fri Apr 27 19:40:48 2012 From: hugo.lima at openbossa.org (Hugo Parente Lima) Date: Fri, 27 Apr 2012 14:40:48 -0300 Subject: [PySide] PySide, Qt 4.7 and the Future In-Reply-To: References: <43379148-DFF6-4C0F-A43B-7C894C763BAC@gmail.com> <111290376.OiTfqXKE5i@hugodesktop> Message-ID: <1590900.tMC9IKYKrk@hugodesktop> On Thursday, April 26, 2012 06:19:19 PM Tony Barbieri wrote: > Great! > > I went ahead and compiled 1.1.1 against 4.7.1 today and the only issue I > had was with the generator CMake failing because of this issue: > > https://bugreports.qt-project.org/browse/PYSIDE-8 > > The attached diff did the trick though. Bug fixed :-) The patch to fix is simpler than the proposed one. https://codereview.qt-project.org/#change,24609 Thanks! > Thanks again. > > -tony > > On Thu, Apr 26, 2012 at 4:40 PM, Hugo Parente Lima > > wrote: > > On Wednesday, April 25, 2012 08:13:54 PM Tony Barbieri wrote: > > > Hello Everyone, > > > > > > I saw on the Qt site that the PySide download is now labeled > > > pyside-qt4.8+1.1.1.tar.bz2 > > > > > > Does version 1.1.1 only work with Qt 4.8? If so will PySide for Qt 4.7 > > > > get > > > > > anymore bug updates or support? We use PySide to interact with other > > > applications such as Maya or Nuke which move a bit slower when it comes > > > > to > > > > > updating their Qt libraries and are still on version 4.7. > > > > No, this mean that the API for Qt 4.8 is there, but it should compile with > > Qt > > 4.6, and 4.7 as well... probably with Qt4.5 too. > > > > > Thanks so much! > > > > > > -tony -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part. URL: From techtonik at gmail.com Fri Apr 27 20:13:46 2012 From: techtonik at gmail.com (anatoly techtonik) Date: Fri, 27 Apr 2012 21:13:46 +0300 Subject: [PySide] PySide, Qt 4.7 and the Future In-Reply-To: <1590900.tMC9IKYKrk@hugodesktop> References: <43379148-DFF6-4C0F-A43B-7C894C763BAC@gmail.com> <111290376.OiTfqXKE5i@hugodesktop> <1590900.tMC9IKYKrk@hugodesktop> Message-ID: On Fri, Apr 27, 2012 at 8:40 PM, Hugo Parente Lima wrote: > On Thursday, April 26, 2012 06:19:19 PM Tony Barbieri wrote: >> Great! >> >> I went ahead and compiled 1.1.1 against 4.7.1 today and the only issue I >> had was with the generator CMake failing because of this issue: >> >> https://bugreports.qt-project.org/browse/PYSIDE-8 >> >> The attached diff did the trick though. > > Bug fixed :-) > > The patch to fix is simpler than the proposed one. > > https://codereview.qt-project.org/#change,24609 Oh, I can finally see the code from web.. So awesome.. =) -- anatoly t. From hugo.lima at openbossa.org Fri Apr 27 20:51:55 2012 From: hugo.lima at openbossa.org (Hugo Parente Lima) Date: Fri, 27 Apr 2012 15:51:55 -0300 Subject: [PySide] PySide, Qt 4.7 and the Future In-Reply-To: References: <43379148-DFF6-4C0F-A43B-7C894C763BAC@gmail.com> <1590900.tMC9IKYKrk@hugodesktop> Message-ID: <3266372.ksxI2hy0F5@hugodesktop> On Friday, April 27, 2012 09:13:46 PM anatoly techtonik wrote: > On Fri, Apr 27, 2012 at 8:40 PM, Hugo Parente Lima > > wrote: > > On Thursday, April 26, 2012 06:19:19 PM Tony Barbieri wrote: > >> Great! > >> > >> I went ahead and compiled 1.1.1 against 4.7.1 today and the only issue I > >> had was with the generator CMake failing because of this issue: > >> > >> https://bugreports.qt-project.org/browse/PYSIDE-8 > >> > >> The attached diff did the trick though. > > > > Bug fixed :-) > > > > The patch to fix is simpler than the proposed one. > > > > https://codereview.qt-project.org/#change,24609 > > Oh, I can finally see the code from web.. So awesome.. =) Yes, nowadays my opinion about all this qt-project stuff is: - Gerrit it nice (the code review tool) - Jira sucks, bugzilla is much better IMO. (the bug reporting tool) > -- > anatoly t. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part. URL: From dennis.victorovich at gmail.com Sat Apr 28 16:06:35 2012 From: dennis.victorovich at gmail.com (Dennis Victorovich) Date: Sat, 28 Apr 2012 18:06:35 +0400 Subject: [PySide] Shiboken C++ => Python exceptions translation Message-ID: Hi everyone. Please correct me if i'm wrong, but currently shiboken doesn't have a mechanism for handling C++ code that throws exceptions. We've tackle this problem within our project and workaround is not really pretty (a bunch of extra code with try/catch and boost::bind). Anyone have a bright ides how to solve the problem? I've created suggestion for improvement https://bugreports.qt-project.org/browse/PYSIDE-62. Best regards. Dennis. -------------- next part -------------- An HTML attachment was scrubbed... URL: From tommaso.vinci at polytechnique.fr Sat Apr 28 18:56:37 2012 From: tommaso.vinci at polytechnique.fr (Tommaso Vinci) Date: Sat, 28 Apr 2012 18:56:37 +0200 Subject: [PySide] supehybrids Message-ID: Dear all, I'm trying do do exactly what superhybrids tutorial (http://lynxline.com/superhybrids-part-2-now-qt-pyside/) does, but I get in trouble at a certain point: in the build.sh, after running generatorruner, it does a qmake in the hybridpy directory and it complains by WARNING: Failure to find: PyHybrid/mainwindow_wrapper.cpp and then it can't compile. I don't understand the whole generatorruner stuff but I think that that file should have been generated at that moment I've uploaded here : http://dl.free.fr/pMld77LUj the .zip stuff (I had to modify a bit 'cause I'm on osx...) and here is just the generatorrunner command: cd hybridpy QTGUI_INC=/Library/Frameworks/QtGui.framework/Versions/4/Headers QTCORE_INC=/Library/Frameworks/QtCore.framework/Versions/4/Headers QTTYPESYSTEM=/usr/share/PySide/typesystems generatorrunner --generator-set=/usr/lib/generatorrunner/shiboken_generator.dylib \ --include-paths=../hybrid:$QTCORE_INC:$QTGUI_INC:/usr/include \ --typesystem-paths=../data:$QTTYPESYSTEM \ --output-directory=. \ ../data/global.h \ ../data/typesystem.xml \ --enable-pyside-extensions \ --debug-level=full did anyone succeed in doing this tutorial? Tommaso From frank at ohufx.com Mon Apr 30 00:59:42 2012 From: frank at ohufx.com (Frank Rueter | OHUfx) Date: Mon, 30 Apr 2012 10:59:42 +1200 Subject: [PySide] sliding widgets into position In-Reply-To: <4F9A32FB.1080706@gmail.com> References: <4F98EE3E.8000805@ohufx.com> <4F98F0D6.8010909@gmail.com> <4F99C747.3030606@ohufx.com> <4F99E414.7010203@ohufx.com> <4F9A32FB.1080706@gmail.com> Message-ID: <4F9DC7DE.2070207@ohufx.com> Hi Tibold, I'm starting to go through your example code and was wondering why it's necessary to subclass QFrame and re-implement the resizeEvent for "CentralFrame"?! To my novice eye it looks like what you did here should be working for QFrame out of the box, but it doesn't. Would you mind explaining? Cheers and thanks again for this example! frank On 4/27/12 5:47 PM, Tibold Kandrai wrote: > Try this out ;) > http://pastebin.com/a04tvY0U > > Cheers, > Tibold > > On 2012-04-27 02:11, Frank Rueter | OHUfx wrote: >> So I've followed Tibold's advice and sorted out some other ugly stuff >> and am a bit closer. >> My problem now is that, because I am not adding the top and bottom >> frames to the layout anymore (to avoid the middle frame shifting), I >> now can't get the right size and position relative to the centre frame. >> >> This is what I have now a bit cleaned up and with comments: >> http://pastebin.com/wrUX5Ce0 >> >> By making the middle frame the parent to the top and bottom frames >> they line up to it now in the upper left corner - cool, one step forward. >> But I can't get the top and bottom frames to have the same width as >> the parent and also don't know how to control the position properly >> so that the bottom frame is always positioned in the bottom left >> corner of the centre frame. >> The size policy isn't inherited either which I'm a bit clueless a >> bout too. >> >> Sorry for the noob questions but have looked online for tutorials on >> this sort of positioning to no avail. >> >> Thanks in advance for any help! >> >> Cheers, >> frank >> >> >> On 4/27/12 10:08 AM, Frank Rueter | OHUfx wrote: >>> Thanks Tibold, I will have a look at that. >>> I'm still not sure how to figure out the positioning in a procedural >>> way though. >>> Will investigate more. >>> >>> Cheers, >>> frank >>> >>> On 4/26/12 6:53 PM, Tibold Kandrai wrote: >>>> Hi, >>>> >>>> Try to subclass QDockWidget. You will have to set it's geometry >>>> manually. Also if you want the widgets to pop up above the centralWidget >>>> than don't add the dock widgets to any layout. Simply add them with the >>>> main window as their parent, and raise them when you show them. >>>> Using this technique I managed to implement auto hiding widgets like in >>>> Visual Studio. It's not trivial, but it's possible. >>>> Actually if you don't need any of the QDockWIdget's functionality you >>>> can do the same with a QFrame as well. Same logic, override it's >>>> geometry, and don't add them to the grid layout. Adding the widgets to >>>> the grid layout will always push the central widget. >>>> >>>> Cheers, >>>> Tibold >>>> >>>> On 2012-04-26 08:42, Frank Rueter | OHUfx wrote: >>>>> Hi, >>>>> >>>>> end of day for me and my brain has gone numb, so I'm probably missing >>>>> the obvious: >>>>> >>>>> I'm trying to create a widget with three areas: top, middle and bottom >>>>> (using QFrames as place holders for now). >>>>> The middle frame is meant to be visible from the start containing some >>>>> text and other widgets, when the button is pushed, the top frame is >>>>> meant to slide down into view and the bottom frame is meant to slide up >>>>> into view, so that I'm left with a controllable vertical arrangements of >>>>> those three frames. >>>>> Here is my ugly attempt so far: >>>>> http://pastebin.com/index/bNJ9zeUm >>>>> >>>>> Things do move but I can't control the start and end positions properly >>>>> and the GridLayout adjusts itself when showing the extra frames, so that >>>>> the middle frame jumps. I have no idea how to set the size hints etc. to >>>>> define the start and end positions of the sliding QFrames generically >>>>> and avoid the jumping middle frame (might have to go with an alternative >>>>> approach to QGridLayout?!). >>>>> >>>>> Any help would be greatly appreciated. >>>>> >>>>> Frank >>>>> _______________________________________________ >>>>> PySide mailing list >>>>> PySide at qt-project.org >>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>> >>>> >>>> _______________________________________________ >>>> PySide mailing list >>>> PySide at qt-project.org >>>> http://lists.qt-project.org/mailman/listinfo/pyside >>> >>> >>> _______________________________________________ >>> PySide mailing list >>> PySide at qt-project.org >>> http://lists.qt-project.org/mailman/listinfo/pyside >> >> >> _______________________________________________ >> PySide mailing list >> PySide at qt-project.org >> http://lists.qt-project.org/mailman/listinfo/pyside > > -- > Tibold Kandrai, > CEO @ Dotz Team I/S, > Software developer, consultant > > > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside -------------- next part -------------- An HTML attachment was scrubbed... URL: From frank at ohufx.com Mon Apr 30 08:14:34 2012 From: frank at ohufx.com (Frank Rueter | OHUfx) Date: Mon, 30 Apr 2012 18:14:34 +1200 Subject: [PySide] need some more help with repositioning widgets Message-ID: <4F9E2DCA.9040200@ohufx.com> Hi all, thanks to a lot of help from this list I got quite far with my task but unfortunately am stuck again now. I thought it might be best to actually post the whole code here and not just little snippets, as I'm sure I'm making a few mistakes that all build up. I have combined the sliding docks (thanks Tibold) and the animated pages (thanks Aaron) with my other code and am now having trouble to position the ItemPageAnimator widget (which slides pages of buttons in and out) in a way that: - the animation doesn't overlap the top or bottom docks - resizing the window doesn't make the QFrame jump I have sub classed a QFrame for the ItemPageAnimator and styled it just to see what's going on for now. It could use a QWidget otherwise. I know this is a lot of code (well, for me it is at least) but am hoping that somebody may have the time and patience to have a peek and guide me in the right direction. Here is the code: http://pastebin.com/jECqqW7v Thanks again to all who have helped me get this far!! frank From matti.p.airas at nokia.com Mon Apr 30 13:45:13 2012 From: matti.p.airas at nokia.com (Matti Airas) Date: Mon, 30 Apr 2012 14:45:13 +0300 Subject: [PySide] Web site transfer Message-ID: <4F9E7B49.9040404@nokia.com> Hi list, There's one final thing in the PySide migration to Qt add-on: the website. I've been trying to have the migration arranged, but progress has been very slow. Also, May 3 is my last work-day at Nokia, so that complicates things further. PySide is currently hosted at a Virtual Machine provided by Nokia IT, which has made it easy because there have not been any fees or bandwidth quotas (and the connectivity has been quite excellent). Unfortunately, that VM is leased only until end of June, so arrangements need to be made pretty soon. Unfortunately, Qt Project is unwilling to provide a virtual machine for PySide, and therefore a direct migration of the VM is not feasible. They have proposed that they can host the static content (binaries, documentation & doc packages) which account for vast majority of the traffic anyway. Then, the current WordPress site contents (which isn't much any longer, anyway) could be moved to the wiki, with a possibility to have a static landing page as the home page. The news blog would then need to be migrated to any free 3rd-party blogging platform such as wordpress.com. This is probably doable and something that the project could live with, but it does require additional effort and decrease the level of service somewhat, both for the administrators (no access to WP authoring tools) and for the end-users (URLs for binaries and docs change, blog aggregation needs to be updated). In the long term, this would be the approach requiring the least amount of maintenance. Another alternative which could be feasible is to have a VM elsewhere and Qt Project would just point the DNS there. The VM requirements are not huge: the current VM is a single-core one Xeon 2.5 GHz with 2 GB of allocated memory and 40 GB of disk space. However, the site generates quite some traffic - in April, 120 GB, and the number has been increasing at a steady pace. Also, having a separate VM would require a dedicated admin who would be willing to maintain the VM, take backups, etc. I would like to hear your opinions on this one. In the first option, the up front work and changes would be bigger but the long-term effort lower, and no external costs would be incurred. In the latter option, the migration would be less painful but having the VM would require more maintenance in the future, and recurring payments would occur. Also, I'd like to call for volunteers to help with the migration and the future maintenance. As said, my work obligation at Nokia is ending and while I'm not vanishing altogether, it'd be helpful if someone else could take the lead. Srini, you volunteered for the webmaster and wikimaster duties in February - although this might not be what you had in mind, would you still be interested? Also, if a separate VM is desired, a sponsor is needed for that. I wonder if any companies would be interested in providing that, for a modest logo or banner visibility on the web site? A basic 3rd-party VM with that amount of traffic would cost some 40-50 EUR/USD a month. Not a huge sum, but I wouldn't feel happy paying it out of my own pocket, especially with the steadily increasing traffic. Cheers, Matti Airas From hejibo at gmail.com Mon Apr 30 13:53:42 2012 From: hejibo at gmail.com (He Jibo) Date: Mon, 30 Apr 2012 06:53:42 -0500 Subject: [PySide] Web site transfer In-Reply-To: <4F9E7B49.9040404@nokia.com> References: <4F9E7B49.9040404@nokia.com> Message-ID: Is PySide still owned by Nokia? --------------------------- He Jibo Department of Psychology, Beckman Institute for Advanced Science and Technology University of Illinois, Urbana Champaign, 603 East Daniel St., Champaign, IL 61820 website: www.hejibo.info On Mon, Apr 30, 2012 at 6:45 AM, Matti Airas wrote: > Qt Project -------------- next part -------------- An HTML attachment was scrubbed... URL: From matti.p.airas at nokia.com Mon Apr 30 14:08:44 2012 From: matti.p.airas at nokia.com (Matti Airas) Date: Mon, 30 Apr 2012 15:08:44 +0300 Subject: [PySide] Web site transfer In-Reply-To: References: <4F9E7B49.9040404@nokia.com> Message-ID: <4F9E80CC.90603@nokia.com> On 30.04.2012 14:53, ext He Jibo wrote: > Is PySide still owned by Nokia? The trademark and the DNS, yes. All code contributions are still owned by the original copyright holders (although now the contributor license agreement is required). Cheers, ma. -------------- next part -------------- An HTML attachment was scrubbed... URL: From kandraitibold at gmail.com Mon Apr 30 14:53:00 2012 From: kandraitibold at gmail.com (Tibold Kandrai) Date: Mon, 30 Apr 2012 14:53:00 +0200 Subject: [PySide] sliding widgets into position In-Reply-To: <4F9DC7DE.2070207@ohufx.com> References: <4F98EE3E.8000805@ohufx.com> <4F98F0D6.8010909@gmail.com> <4F99C747.3030606@ohufx.com> <4F99E414.7010203@ohufx.com> <4F9A32FB.1080706@gmail.com> <4F9DC7DE.2070207@ohufx.com> Message-ID: <4F9E8B2C.6090705@gmail.com> Hi! There I just needed a SIGNAL for the resizeEvent, to be able to resize the sliding widgets, so their size will always conform with the window. Cheers, Tibold On 2012-04-30 00:59, Frank Rueter | OHUfx wrote: > Hi Tibold, > > I'm starting to go through your example code and was wondering why > it's necessary to subclass QFrame and re-implement the resizeEvent for > "CentralFrame"?! > To my novice eye it looks like what you did here should be working for > QFrame out of the box, but it doesn't. > > Would you mind explaining? > > Cheers and thanks again for this example! > frank > > On 4/27/12 5:47 PM, Tibold Kandrai wrote: >> Try this out ;) >> http://pastebin.com/a04tvY0U >> >> Cheers, >> Tibold >> >> On 2012-04-27 02:11, Frank Rueter | OHUfx wrote: >>> So I've followed Tibold's advice and sorted out some other ugly >>> stuff and am a bit closer. >>> My problem now is that, because I am not adding the top and bottom >>> frames to the layout anymore (to avoid the middle frame shifting), I >>> now can't get the right size and position relative to the centre frame. >>> >>> This is what I have now a bit cleaned up and with comments: >>> http://pastebin.com/wrUX5Ce0 >>> >>> By making the middle frame the parent to the top and bottom frames >>> they line up to it now in the upper left corner - cool, one step >>> forward. >>> But I can't get the top and bottom frames to have the same width as >>> the parent and also don't know how to control the position properly >>> so that the bottom frame is always positioned in the bottom left >>> corner of the centre frame. >>> The size policy isn't inherited either which I'm a bit clueless a >>> bout too. >>> >>> Sorry for the noob questions but have looked online for tutorials on >>> this sort of positioning to no avail. >>> >>> Thanks in advance for any help! >>> >>> Cheers, >>> frank >>> >>> >>> On 4/27/12 10:08 AM, Frank Rueter | OHUfx wrote: >>>> Thanks Tibold, I will have a look at that. >>>> I'm still not sure how to figure out the positioning in a >>>> procedural way though. >>>> Will investigate more. >>>> >>>> Cheers, >>>> frank >>>> >>>> On 4/26/12 6:53 PM, Tibold Kandrai wrote: >>>>> Hi, >>>>> >>>>> Try to subclass QDockWidget. You will have to set it's geometry >>>>> manually. Also if you want the widgets to pop up above the centralWidget >>>>> than don't add the dock widgets to any layout. Simply add them with the >>>>> main window as their parent, and raise them when you show them. >>>>> Using this technique I managed to implement auto hiding widgets like in >>>>> Visual Studio. It's not trivial, but it's possible. >>>>> Actually if you don't need any of the QDockWIdget's functionality you >>>>> can do the same with a QFrame as well. Same logic, override it's >>>>> geometry, and don't add them to the grid layout. Adding the widgets to >>>>> the grid layout will always push the central widget. >>>>> >>>>> Cheers, >>>>> Tibold >>>>> >>>>> On 2012-04-26 08:42, Frank Rueter | OHUfx wrote: >>>>>> Hi, >>>>>> >>>>>> end of day for me and my brain has gone numb, so I'm probably missing >>>>>> the obvious: >>>>>> >>>>>> I'm trying to create a widget with three areas: top, middle and bottom >>>>>> (using QFrames as place holders for now). >>>>>> The middle frame is meant to be visible from the start containing some >>>>>> text and other widgets, when the button is pushed, the top frame is >>>>>> meant to slide down into view and the bottom frame is meant to slide up >>>>>> into view, so that I'm left with a controllable vertical arrangements of >>>>>> those three frames. >>>>>> Here is my ugly attempt so far: >>>>>> http://pastebin.com/index/bNJ9zeUm >>>>>> >>>>>> Things do move but I can't control the start and end positions properly >>>>>> and the GridLayout adjusts itself when showing the extra frames, so that >>>>>> the middle frame jumps. I have no idea how to set the size hints etc. to >>>>>> define the start and end positions of the sliding QFrames generically >>>>>> and avoid the jumping middle frame (might have to go with an alternative >>>>>> approach to QGridLayout?!). >>>>>> >>>>>> Any help would be greatly appreciated. >>>>>> >>>>>> Frank >>>>>> _______________________________________________ >>>>>> PySide mailing list >>>>>> PySide at qt-project.org >>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>> >>>>> >>>>> _______________________________________________ >>>>> PySide mailing list >>>>> PySide at qt-project.org >>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>> >>>> >>>> _______________________________________________ >>>> PySide mailing list >>>> PySide at qt-project.org >>>> http://lists.qt-project.org/mailman/listinfo/pyside >>> >>> >>> _______________________________________________ >>> PySide mailing list >>> PySide at qt-project.org >>> http://lists.qt-project.org/mailman/listinfo/pyside >> >> -- >> Tibold Kandrai, >> CEO @ Dotz Team I/S, >> Software developer, consultant >> >> >> _______________________________________________ >> PySide mailing list >> PySide at qt-project.org >> http://lists.qt-project.org/mailman/listinfo/pyside > > > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside -- Tibold Kandrai, CEO @ Dotz Team I/S, Software developer, consultant -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 552 bytes Desc: OpenPGP digital signature URL: From pyside at damp.homeip.net Mon Apr 30 15:58:36 2012 From: pyside at damp.homeip.net (Stefan) Date: Mon, 30 Apr 2012 15:58:36 +0200 Subject: [PySide] QtUiTools.QUiLoader crash with custom widget Message-ID: <4F9E9A8C.1080802@damp.homeip.net> Hi, I'm trying to create a QMainWindow in the Designer and load the ui file dynamically with QUiLoader in pyside 1.1.0. When I don't register any custom types it works, but obviously fails to create my derived class. When I register them it crashes. Here's a small example that crash for me on windows running python 2.7 and pyside 1.1.0: from PySide import QtCore, QtGui, QtUiTools import sys class MyWidget(QtGui.QWidget): def __init__(self, parent=None): super(MyWidget, self).__init__(parent) if __name__ == '__main__': application = QtGui.QApplication(sys.argv) loader = QtUiTools.QUiLoader() loader.registerCustomWidget(MyWidget) print loader.availableWidgets() print loader.createWidget('QLabel') print loader.createWidget('MyWidget') Running this prints the following: [u'AnalogClock', u'CompositionRenderer', u'GradientEditor', u'GradientRendererEx ', u'MultiPageWidget', u'MyWidget', u'PathDeformRendererEx', u'PathStrokeRendere rEx', u'Phonon::SeekSlider', u'Phonon::VideoPlayer', u'Phonon::VolumeSlider', u' QAxWidget', u'QCalendarWidget', u'QCheckBox', u'QColumnView', u'QComboBox', u'QC ommandLinkButton', u'QDateEdit', u'QDateTimeEdit', u'QDeclarativeView', u'QDial' , u'QDialog', u'QDialogButtonBox', u'QDockWidget', u'QDoubleSpinBox', u'QFontCom boBox', u'QFrame', u'QGraphicsView', u'QGroupBox', u'QLCDNumber', u'QLabel', u'Q LineEdit', u'QListView', u'QListWidget', u'QMainWindow', u'QMdiArea', u'QMenu', u'QMenuBar', u'QPlainTextEdit', u'QProgressBar', u'QPushButton', u'QRadioButton' , u'QScrollArea', u'QScrollBar', u'QSlider', u'QSpinBox', u'QSplitter', u'QStack edWidget', u'QStatusBar', u'QTabWidget', u'QTableView', u'QTableWidget', u'QText Browser', u'QTextEdit', u'QTimeEdit', u'QToolBar', u'QToolBox', u'QToolButton', u'QTreeView', u'QTreeWidget', u'QWebView', u'QWidget', u'QWizard', u'QWizardPage ', u'QWorkspace', u'TicTacToe', u'WorldTimeClock', u'XFormRendererEx'] *crash* So it the class is in there, it manages to create a QLabel, but then it crashes. Any ideas why? I don't have any pdb for python, so it's hard to get a callstack. /Stefan From hugo.lima at openbossa.org Mon Apr 30 16:47:10 2012 From: hugo.lima at openbossa.org (Hugo Parente Lima) Date: Mon, 30 Apr 2012 11:47:10 -0300 Subject: [PySide] Shiboken C++ => Python exceptions translation In-Reply-To: References: Message-ID: <5239367.7vcLkiIG31@hugodesktop> On Saturday, April 28, 2012 06:06:35 PM Dennis Victorovich wrote: > Hi everyone. > > Please correct me if i'm wrong, but currently shiboken doesn't have a > mechanism for handling C++ code that throws exceptions. You are right, PySide doesn't support exception translation. > We've tackle this problem within our project and workaround is not really > pretty (a bunch of extra code with try/catch and boost::bind). > > Anyone have a bright ides how to solve the problem? > I've created suggestion for improvement > https://bugreports.qt-project.org/browse/PYSIDE-62. You need to implement this feature on the Generator itself, I would separate this in two steps: 1. Do not translate anything, just catch all C++ exception and throw a Python RunTimeException. 2. Think about a way to specify a exception translation mechanism in the typesystem. The step 1 will require some changes in the generator, the generator code isn't trivial, besides being a bit ugly due to the bad API of ApiExtractor but IMO you must try to hack the generator and implement this feature. > Best regards. > Dennis. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part. URL: From kandraitibold at gmail.com Mon Apr 30 16:49:05 2012 From: kandraitibold at gmail.com (Tibold Kandrai) Date: Mon, 30 Apr 2012 16:49:05 +0200 Subject: [PySide] sliding widgets into position In-Reply-To: <4F9E8B2C.6090705@gmail.com> References: <4F98EE3E.8000805@ohufx.com> <4F98F0D6.8010909@gmail.com> <4F99C747.3030606@ohufx.com> <4F99E414.7010203@ohufx.com> <4F9A32FB.1080706@gmail.com> <4F9DC7DE.2070207@ohufx.com> <4F9E8B2C.6090705@gmail.com> Message-ID: <4F9EA661.6010902@gmail.com> Hi! If I think more about it the proper way would be to create a custom layout which positions your sliding layouts where you need them. :) Cheers, Tibold On 2012-04-30 14:53, Tibold Kandrai wrote: > Hi! > > There I just needed a SIGNAL for the resizeEvent, to be able to resize > the sliding widgets, so their size will always conform with the window. > > Cheers, > Tibold > > On 2012-04-30 00:59, Frank Rueter | OHUfx wrote: >> Hi Tibold, >> >> I'm starting to go through your example code and was wondering why >> it's necessary to subclass QFrame and re-implement the resizeEvent >> for "CentralFrame"?! >> To my novice eye it looks like what you did here should be working >> for QFrame out of the box, but it doesn't. >> >> Would you mind explaining? >> >> Cheers and thanks again for this example! >> frank >> >> On 4/27/12 5:47 PM, Tibold Kandrai wrote: >>> Try this out ;) >>> http://pastebin.com/a04tvY0U >>> >>> Cheers, >>> Tibold >>> >>> On 2012-04-27 02:11, Frank Rueter | OHUfx wrote: >>>> So I've followed Tibold's advice and sorted out some other ugly >>>> stuff and am a bit closer. >>>> My problem now is that, because I am not adding the top and bottom >>>> frames to the layout anymore (to avoid the middle frame shifting), >>>> I now can't get the right size and position relative to the centre >>>> frame. >>>> >>>> This is what I have now a bit cleaned up and with comments: >>>> http://pastebin.com/wrUX5Ce0 >>>> >>>> By making the middle frame the parent to the top and bottom frames >>>> they line up to it now in the upper left corner - cool, one step >>>> forward. >>>> But I can't get the top and bottom frames to have the same width as >>>> the parent and also don't know how to control the position properly >>>> so that the bottom frame is always positioned in the bottom left >>>> corner of the centre frame. >>>> The size policy isn't inherited either which I'm a bit clueless a >>>> bout too. >>>> >>>> Sorry for the noob questions but have looked online for tutorials >>>> on this sort of positioning to no avail. >>>> >>>> Thanks in advance for any help! >>>> >>>> Cheers, >>>> frank >>>> >>>> >>>> On 4/27/12 10:08 AM, Frank Rueter | OHUfx wrote: >>>>> Thanks Tibold, I will have a look at that. >>>>> I'm still not sure how to figure out the positioning in a >>>>> procedural way though. >>>>> Will investigate more. >>>>> >>>>> Cheers, >>>>> frank >>>>> >>>>> On 4/26/12 6:53 PM, Tibold Kandrai wrote: >>>>>> Hi, >>>>>> >>>>>> Try to subclass QDockWidget. You will have to set it's geometry >>>>>> manually. Also if you want the widgets to pop up above the centralWidget >>>>>> than don't add the dock widgets to any layout. Simply add them with the >>>>>> main window as their parent, and raise them when you show them. >>>>>> Using this technique I managed to implement auto hiding widgets like in >>>>>> Visual Studio. It's not trivial, but it's possible. >>>>>> Actually if you don't need any of the QDockWIdget's functionality you >>>>>> can do the same with a QFrame as well. Same logic, override it's >>>>>> geometry, and don't add them to the grid layout. Adding the widgets to >>>>>> the grid layout will always push the central widget. >>>>>> >>>>>> Cheers, >>>>>> Tibold >>>>>> >>>>>> On 2012-04-26 08:42, Frank Rueter | OHUfx wrote: >>>>>>> Hi, >>>>>>> >>>>>>> end of day for me and my brain has gone numb, so I'm probably missing >>>>>>> the obvious: >>>>>>> >>>>>>> I'm trying to create a widget with three areas: top, middle and bottom >>>>>>> (using QFrames as place holders for now). >>>>>>> The middle frame is meant to be visible from the start containing some >>>>>>> text and other widgets, when the button is pushed, the top frame is >>>>>>> meant to slide down into view and the bottom frame is meant to slide up >>>>>>> into view, so that I'm left with a controllable vertical arrangements of >>>>>>> those three frames. >>>>>>> Here is my ugly attempt so far: >>>>>>> http://pastebin.com/index/bNJ9zeUm >>>>>>> >>>>>>> Things do move but I can't control the start and end positions properly >>>>>>> and the GridLayout adjusts itself when showing the extra frames, so that >>>>>>> the middle frame jumps. I have no idea how to set the size hints etc. to >>>>>>> define the start and end positions of the sliding QFrames generically >>>>>>> and avoid the jumping middle frame (might have to go with an alternative >>>>>>> approach to QGridLayout?!). >>>>>>> >>>>>>> Any help would be greatly appreciated. >>>>>>> >>>>>>> Frank >>>>>>> _______________________________________________ >>>>>>> PySide mailing list >>>>>>> PySide at qt-project.org >>>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> PySide mailing list >>>>>> PySide at qt-project.org >>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>> >>>>> >>>>> _______________________________________________ >>>>> PySide mailing list >>>>> PySide at qt-project.org >>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>> >>>> >>>> _______________________________________________ >>>> PySide mailing list >>>> PySide at qt-project.org >>>> http://lists.qt-project.org/mailman/listinfo/pyside >>> >>> -- >>> Tibold Kandrai, >>> CEO @ Dotz Team I/S, >>> Software developer, consultant >>> >>> >>> _______________________________________________ >>> PySide mailing list >>> PySide at qt-project.org >>> http://lists.qt-project.org/mailman/listinfo/pyside >> >> >> _______________________________________________ >> PySide mailing list >> PySide at qt-project.org >> http://lists.qt-project.org/mailman/listinfo/pyside > > -- > Tibold Kandrai, > CEO @ Dotz Team I/S, > Software developer, consultant -- Tibold Kandrai, CEO @ Dotz Team I/S, Software developer, consultant -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 552 bytes Desc: OpenPGP digital signature URL: From tyler at tylerlabs.com Mon Apr 30 17:16:50 2012 From: tyler at tylerlabs.com (Tyler W. Wilson) Date: Mon, 30 Apr 2012 11:16:50 -0400 Subject: [PySide] QtUiTools.QUiLoader crash with custom widget In-Reply-To: <4F9E9A8C.1080802@damp.homeip.net> References: <4F9E9A8C.1080802@damp.homeip.net> Message-ID: <4F9EACE2.4030105@tylerlabs.com> Ditto on this issue for me. I just ran into this as well trying to add a custom widget to a designer-based application. I had to move to PyQt4 temporarily to make it work. Thanks, Tyler On 4/30/2012 9:58 AM, Stefan wrote: > Hi, > > I'm trying to create a QMainWindow in the Designer and load the ui file > dynamically with QUiLoader in pyside 1.1.0. When I don't register any > custom types it works, but obviously fails to create my derived class. > When I register them it crashes. Here's a small example that crash for > me on windows running python 2.7 and pyside 1.1.0: > > from PySide import QtCore, QtGui, QtUiTools > import sys > > class MyWidget(QtGui.QWidget): > def __init__(self, parent=None): > super(MyWidget, self).__init__(parent) > > if __name__ == '__main__': > application = QtGui.QApplication(sys.argv) > > loader = QtUiTools.QUiLoader() > loader.registerCustomWidget(MyWidget) > print loader.availableWidgets() > print loader.createWidget('QLabel') > print loader.createWidget('MyWidget') > > Running this prints the following: > > [u'AnalogClock', u'CompositionRenderer', u'GradientEditor', > u'GradientRendererEx > ', u'MultiPageWidget', u'MyWidget', u'PathDeformRendererEx', > u'PathStrokeRendere > rEx', u'Phonon::SeekSlider', u'Phonon::VideoPlayer', > u'Phonon::VolumeSlider', u' > QAxWidget', u'QCalendarWidget', u'QCheckBox', u'QColumnView', > u'QComboBox', u'QC > ommandLinkButton', u'QDateEdit', u'QDateTimeEdit', u'QDeclarativeView', > u'QDial' > , u'QDialog', u'QDialogButtonBox', u'QDockWidget', u'QDoubleSpinBox', > u'QFontCom > boBox', u'QFrame', u'QGraphicsView', u'QGroupBox', u'QLCDNumber', > u'QLabel', u'Q > LineEdit', u'QListView', u'QListWidget', u'QMainWindow', u'QMdiArea', > u'QMenu', > u'QMenuBar', u'QPlainTextEdit', u'QProgressBar', u'QPushButton', > u'QRadioButton' > , u'QScrollArea', u'QScrollBar', u'QSlider', u'QSpinBox', u'QSplitter', > u'QStack > edWidget', u'QStatusBar', u'QTabWidget', u'QTableView', u'QTableWidget', > u'QText > Browser', u'QTextEdit', u'QTimeEdit', u'QToolBar', u'QToolBox', > u'QToolButton', > u'QTreeView', u'QTreeWidget', u'QWebView', u'QWidget', u'QWizard', > u'QWizardPage > ', u'QWorkspace', u'TicTacToe', u'WorldTimeClock', u'XFormRendererEx'] > > *crash* > > So it the class is in there, it manages to create a QLabel, but then it > crashes. > > Any ideas why? I don't have any pdb for python, so it's hard to get a > callstack. > > /Stefan > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside From Erik.Janssens at conceptive.be Mon Apr 30 18:18:20 2012 From: Erik.Janssens at conceptive.be (Erik Janssens) Date: Mon, 30 Apr 2012 18:18:20 +0200 Subject: [PySide] Web site transfer In-Reply-To: <4F9E7B49.9040404@nokia.com> References: <4F9E7B49.9040404@nokia.com> Message-ID: <1335802700.31033.18.camel@erik-mac> Hello, We have a professional Weebly account, (http://www.weebly.com/) and can offer a site account for this purpose. A Weebly site can host web pages + images + forms. But it's not suited to offer source or binary packages for download. The downside of using Weebly is that the site should be rebuild from scratch, something I estimate to be a couple of hours work for someone experienced with CSS, html. The upside being that it's very easy to maintain. Just let me know if this would be interesting... Cheers, Erik On Mon, 2012-04-30 at 14:45 +0300, Matti Airas wrote: > Hi list, > > There's one final thing in the PySide migration to Qt add-on: the > website. I've been trying to have the migration arranged, but progress > has been very slow. Also, May 3 is my last work-day at Nokia, so that > complicates things further. > > PySide is currently hosted at a Virtual Machine provided by Nokia IT, > which has made it easy because there have not been any fees or bandwidth > quotas (and the connectivity has been quite excellent). Unfortunately, > that VM is leased only until end of June, so arrangements need to be > made pretty soon. > > Unfortunately, Qt Project is unwilling to provide a virtual machine for > PySide, and therefore a direct migration of the VM is not feasible. They > have proposed that they can host the static content (binaries, > documentation & doc packages) which account for vast majority of the > traffic anyway. Then, the current WordPress site contents (which isn't > much any longer, anyway) could be moved to the wiki, with a possibility > to have a static landing page as the home page. The news blog would then > need to be migrated to any free 3rd-party blogging platform such as > wordpress.com. This is probably doable and something that the project > could live with, but it does require additional effort and decrease the > level of service somewhat, both for the administrators (no access to WP > authoring tools) and for the end-users (URLs for binaries and docs > change, blog aggregation needs to be updated). In the long term, this > would be the approach requiring the least amount of maintenance. > > Another alternative which could be feasible is to have a VM elsewhere > and Qt Project would just point the DNS there. The VM requirements are > not huge: the current VM is a single-core one Xeon 2.5 GHz with 2 GB of > allocated memory and 40 GB of disk space. However, the site generates > quite some traffic - in April, 120 GB, and the number has been > increasing at a steady pace. Also, having a separate VM would require a > dedicated admin who would be willing to maintain the VM, take backups, etc. > > I would like to hear your opinions on this one. In the first option, the > up front work and changes would be bigger but the long-term effort > lower, and no external costs would be incurred. In the latter option, > the migration would be less painful but having the VM would require more > maintenance in the future, and recurring payments would occur. > > Also, I'd like to call for volunteers to help with the migration and the > future maintenance. As said, my work obligation at Nokia is ending and > while I'm not vanishing altogether, it'd be helpful if someone else > could take the lead. Srini, you volunteered for the webmaster and > wikimaster duties in February - although this might not be what you had > in mind, would you still be interested? > > Also, if a separate VM is desired, a sponsor is needed for that. I > wonder if any companies would be interested in providing that, for a > modest logo or banner visibility on the web site? A basic 3rd-party VM > with that amount of traffic would cost some 40-50 EUR/USD a month. Not a > huge sum, but I wouldn't feel happy paying it out of my own pocket, > especially with the steadily increasing traffic. > > Cheers, > > Matti Airas > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside From vasure at gmail.com Mon Apr 30 19:30:46 2012 From: vasure at gmail.com (Srini Kommoori) Date: Mon, 30 Apr 2012 10:30:46 -0700 Subject: [PySide] Web site transfer In-Reply-To: <1335802700.31033.18.camel@erik-mac> References: <4F9E7B49.9040404@nokia.com> <1335802700.31033.18.camel@erik-mac> Message-ID: I would like to propose S3/github for website hosting. It is pretty easy to setup and we can automate to push the code/html pages very easily. Here is my preferred service list: S3/github for all static pages. Blog - Blogger/Tumblr with multi user submits. Wiki - [No change] Seems like already integrated with Qt main site. Code - [No change] gitorious I can help and sponsor for the expenses(if any) related to the migration. thanks, -Srini On Mon, Apr 30, 2012 at 9:18 AM, Erik Janssens wrote: > > Hello, > > We have a professional Weebly account, > (http://www.weebly.com/) and can offer a site account for > this purpose. > > A Weebly site can host web pages + images + forms. But it's > not suited to offer source or binary packages for download. > > The downside of using Weebly is that the site should be rebuild > from scratch, something I estimate to be a couple of hours work > for someone experienced with CSS, html. > > The upside being that it's very easy to maintain. > > Just let me know if this would be interesting... > > Cheers, > > Erik > > On Mon, 2012-04-30 at 14:45 +0300, Matti Airas wrote: > > Hi list, > > > > There's one final thing in the PySide migration to Qt add-on: the > > website. I've been trying to have the migration arranged, but progress > > has been very slow. Also, May 3 is my last work-day at Nokia, so that > > complicates things further. > > > > PySide is currently hosted at a Virtual Machine provided by Nokia IT, > > which has made it easy because there have not been any fees or bandwidth > > quotas (and the connectivity has been quite excellent). Unfortunately, > > that VM is leased only until end of June, so arrangements need to be > > made pretty soon. > > > > Unfortunately, Qt Project is unwilling to provide a virtual machine for > > PySide, and therefore a direct migration of the VM is not feasible. They > > have proposed that they can host the static content (binaries, > > documentation & doc packages) which account for vast majority of the > > traffic anyway. Then, the current WordPress site contents (which isn't > > much any longer, anyway) could be moved to the wiki, with a possibility > > to have a static landing page as the home page. The news blog would then > > need to be migrated to any free 3rd-party blogging platform such as > > wordpress.com. This is probably doable and something that the project > > could live with, but it does require additional effort and decrease the > > level of service somewhat, both for the administrators (no access to WP > > authoring tools) and for the end-users (URLs for binaries and docs > > change, blog aggregation needs to be updated). In the long term, this > > would be the approach requiring the least amount of maintenance. > > > > Another alternative which could be feasible is to have a VM elsewhere > > and Qt Project would just point the DNS there. The VM requirements are > > not huge: the current VM is a single-core one Xeon 2.5 GHz with 2 GB of > > allocated memory and 40 GB of disk space. However, the site generates > > quite some traffic - in April, 120 GB, and the number has been > > increasing at a steady pace. Also, having a separate VM would require a > > dedicated admin who would be willing to maintain the VM, take backups, > etc. > > > > I would like to hear your opinions on this one. In the first option, the > > up front work and changes would be bigger but the long-term effort > > lower, and no external costs would be incurred. In the latter option, > > the migration would be less painful but having the VM would require more > > maintenance in the future, and recurring payments would occur. > > > > Also, I'd like to call for volunteers to help with the migration and the > > future maintenance. As said, my work obligation at Nokia is ending and > > while I'm not vanishing altogether, it'd be helpful if someone else > > could take the lead. Srini, you volunteered for the webmaster and > > wikimaster duties in February - although this might not be what you had > > in mind, would you still be interested? > > > > Also, if a separate VM is desired, a sponsor is needed for that. I > > wonder if any companies would be interested in providing that, for a > > modest logo or banner visibility on the web site? A basic 3rd-party VM > > with that amount of traffic would cost some 40-50 EUR/USD a month. Not a > > huge sum, but I wouldn't feel happy paying it out of my own pocket, > > especially with the steadily increasing traffic. > > > > Cheers, > > > > Matti Airas > > _______________________________________________ > > PySide mailing list > > PySide at qt-project.org > > http://lists.qt-project.org/mailman/listinfo/pyside > > > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside > -------------- next part -------------- An HTML attachment was scrubbed... URL: From hugo.lima at openbossa.org Mon Apr 30 19:39:24 2012 From: hugo.lima at openbossa.org (Hugo Parente Lima) Date: Mon, 30 Apr 2012 14:39:24 -0300 Subject: [PySide] Web site transfer In-Reply-To: References: <4F9E7B49.9040404@nokia.com> <1335802700.31033.18.camel@erik-mac> Message-ID: <8789154.SZdH36y9H5@hugodesktop> On Monday, April 30, 2012 10:30:46 AM Srini Kommoori wrote: > I would like to propose S3/github for website hosting. It is pretty easy to > setup and we can automate to push the code/html pages very easily. I agree, github for website hosting. About the tarballs, we have tags on git for each release, so IMO tarballs are just another way of offer the same information and we can discard if it's causing troubles. > Here is my preferred service list: > S3/github for all static pages. > Blog - Blogger/Tumblr with multi user submits. > Wiki - [No change] Seems like already integrated with Qt main site. > Code - [No change] gitorious > > I can help and sponsor for the expenses(if any) related to the migration. > > thanks, > -Srini > > On Mon, Apr 30, 2012 at 9:18 AM, Erik Janssens > > wrote: > > Hello, > > > > We have a professional Weebly account, > > (http://www.weebly.com/) and can offer a site account for > > this purpose. > > > > A Weebly site can host web pages + images + forms. But it's > > not suited to offer source or binary packages for download. > > > > The downside of using Weebly is that the site should be rebuild > > from scratch, something I estimate to be a couple of hours work > > for someone experienced with CSS, html. > > > > The upside being that it's very easy to maintain. > > > > Just let me know if this would be interesting... > > > > Cheers, > > > > Erik > > > > On Mon, 2012-04-30 at 14:45 +0300, Matti Airas wrote: > > > Hi list, > > > > > > There's one final thing in the PySide migration to Qt add-on: the > > > website. I've been trying to have the migration arranged, but progress > > > has been very slow. Also, May 3 is my last work-day at Nokia, so that > > > complicates things further. > > > > > > PySide is currently hosted at a Virtual Machine provided by Nokia IT, > > > which has made it easy because there have not been any fees or bandwidth > > > quotas (and the connectivity has been quite excellent). Unfortunately, > > > that VM is leased only until end of June, so arrangements need to be > > > made pretty soon. > > > > > > Unfortunately, Qt Project is unwilling to provide a virtual machine for > > > PySide, and therefore a direct migration of the VM is not feasible. They > > > have proposed that they can host the static content (binaries, > > > documentation & doc packages) which account for vast majority of the > > > traffic anyway. Then, the current WordPress site contents (which isn't > > > much any longer, anyway) could be moved to the wiki, with a possibility > > > to have a static landing page as the home page. The news blog would then > > > need to be migrated to any free 3rd-party blogging platform such as > > > wordpress.com. This is probably doable and something that the project > > > could live with, but it does require additional effort and decrease the > > > level of service somewhat, both for the administrators (no access to WP > > > authoring tools) and for the end-users (URLs for binaries and docs > > > change, blog aggregation needs to be updated). In the long term, this > > > would be the approach requiring the least amount of maintenance. > > > > > > Another alternative which could be feasible is to have a VM elsewhere > > > and Qt Project would just point the DNS there. The VM requirements are > > > not huge: the current VM is a single-core one Xeon 2.5 GHz with 2 GB of > > > allocated memory and 40 GB of disk space. However, the site generates > > > quite some traffic - in April, 120 GB, and the number has been > > > increasing at a steady pace. Also, having a separate VM would require a > > > dedicated admin who would be willing to maintain the VM, take backups, > > > > etc. > > > > > I would like to hear your opinions on this one. In the first option, the > > > up front work and changes would be bigger but the long-term effort > > > lower, and no external costs would be incurred. In the latter option, > > > the migration would be less painful but having the VM would require more > > > maintenance in the future, and recurring payments would occur. > > > > > > Also, I'd like to call for volunteers to help with the migration and the > > > future maintenance. As said, my work obligation at Nokia is ending and > > > while I'm not vanishing altogether, it'd be helpful if someone else > > > could take the lead. Srini, you volunteered for the webmaster and > > > wikimaster duties in February - although this might not be what you had > > > in mind, would you still be interested? > > > > > > Also, if a separate VM is desired, a sponsor is needed for that. I > > > wonder if any companies would be interested in providing that, for a > > > modest logo or banner visibility on the web site? A basic 3rd-party VM > > > with that amount of traffic would cost some 40-50 EUR/USD a month. Not a > > > huge sum, but I wouldn't feel happy paying it out of my own pocket, > > > especially with the steadily increasing traffic. > > > > > > Cheers, > > > > > > Matti Airas > > > _______________________________________________ > > > PySide mailing list > > > PySide at qt-project.org > > > http://lists.qt-project.org/mailman/listinfo/pyside > > > > _______________________________________________ > > PySide mailing list > > PySide at qt-project.org > > http://lists.qt-project.org/mailman/listinfo/pyside -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part. URL: From hugo.lima at openbossa.org Mon Apr 30 19:39:24 2012 From: hugo.lima at openbossa.org (Hugo Parente Lima) Date: Mon, 30 Apr 2012 14:39:24 -0300 Subject: [PySide] Web site transfer In-Reply-To: References: <4F9E7B49.9040404@nokia.com> <1335802700.31033.18.camel@erik-mac> Message-ID: <8789154.SZdH36y9H5@hugodesktop> On Monday, April 30, 2012 10:30:46 AM Srini Kommoori wrote: > I would like to propose S3/github for website hosting. It is pretty easy to > setup and we can automate to push the code/html pages very easily. I agree, github for website hosting. About the tarballs, we have tags on git for each release, so IMO tarballs are just another way of offer the same information and we can discard if it's causing troubles. > Here is my preferred service list: > S3/github for all static pages. > Blog - Blogger/Tumblr with multi user submits. > Wiki - [No change] Seems like already integrated with Qt main site. > Code - [No change] gitorious > > I can help and sponsor for the expenses(if any) related to the migration. > > thanks, > -Srini > > On Mon, Apr 30, 2012 at 9:18 AM, Erik Janssens > > wrote: > > Hello, > > > > We have a professional Weebly account, > > (http://www.weebly.com/) and can offer a site account for > > this purpose. > > > > A Weebly site can host web pages + images + forms. But it's > > not suited to offer source or binary packages for download. > > > > The downside of using Weebly is that the site should be rebuild > > from scratch, something I estimate to be a couple of hours work > > for someone experienced with CSS, html. > > > > The upside being that it's very easy to maintain. > > > > Just let me know if this would be interesting... > > > > Cheers, > > > > Erik > > > > On Mon, 2012-04-30 at 14:45 +0300, Matti Airas wrote: > > > Hi list, > > > > > > There's one final thing in the PySide migration to Qt add-on: the > > > website. I've been trying to have the migration arranged, but progress > > > has been very slow. Also, May 3 is my last work-day at Nokia, so that > > > complicates things further. > > > > > > PySide is currently hosted at a Virtual Machine provided by Nokia IT, > > > which has made it easy because there have not been any fees or bandwidth > > > quotas (and the connectivity has been quite excellent). Unfortunately, > > > that VM is leased only until end of June, so arrangements need to be > > > made pretty soon. > > > > > > Unfortunately, Qt Project is unwilling to provide a virtual machine for > > > PySide, and therefore a direct migration of the VM is not feasible. They > > > have proposed that they can host the static content (binaries, > > > documentation & doc packages) which account for vast majority of the > > > traffic anyway. Then, the current WordPress site contents (which isn't > > > much any longer, anyway) could be moved to the wiki, with a possibility > > > to have a static landing page as the home page. The news blog would then > > > need to be migrated to any free 3rd-party blogging platform such as > > > wordpress.com. This is probably doable and something that the project > > > could live with, but it does require additional effort and decrease the > > > level of service somewhat, both for the administrators (no access to WP > > > authoring tools) and for the end-users (URLs for binaries and docs > > > change, blog aggregation needs to be updated). In the long term, this > > > would be the approach requiring the least amount of maintenance. > > > > > > Another alternative which could be feasible is to have a VM elsewhere > > > and Qt Project would just point the DNS there. The VM requirements are > > > not huge: the current VM is a single-core one Xeon 2.5 GHz with 2 GB of > > > allocated memory and 40 GB of disk space. However, the site generates > > > quite some traffic - in April, 120 GB, and the number has been > > > increasing at a steady pace. Also, having a separate VM would require a > > > dedicated admin who would be willing to maintain the VM, take backups, > > > > etc. > > > > > I would like to hear your opinions on this one. In the first option, the > > > up front work and changes would be bigger but the long-term effort > > > lower, and no external costs would be incurred. In the latter option, > > > the migration would be less painful but having the VM would require more > > > maintenance in the future, and recurring payments would occur. > > > > > > Also, I'd like to call for volunteers to help with the migration and the > > > future maintenance. As said, my work obligation at Nokia is ending and > > > while I'm not vanishing altogether, it'd be helpful if someone else > > > could take the lead. Srini, you volunteered for the webmaster and > > > wikimaster duties in February - although this might not be what you had > > > in mind, would you still be interested? > > > > > > Also, if a separate VM is desired, a sponsor is needed for that. I > > > wonder if any companies would be interested in providing that, for a > > > modest logo or banner visibility on the web site? A basic 3rd-party VM > > > with that amount of traffic would cost some 40-50 EUR/USD a month. Not a > > > huge sum, but I wouldn't feel happy paying it out of my own pocket, > > > especially with the steadily increasing traffic. > > > > > > Cheers, > > > > > > Matti Airas > > > _______________________________________________ > > > PySide mailing list > > > PySide at qt-project.org > > > http://lists.qt-project.org/mailman/listinfo/pyside > > > > _______________________________________________ > > PySide mailing list > > PySide at qt-project.org > > http://lists.qt-project.org/mailman/listinfo/pyside -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part. URL: From aj at dneg.com Mon Apr 30 21:34:02 2012 From: aj at dneg.com (Alexander Jones) Date: Mon, 30 Apr 2012 20:34:02 +0100 Subject: [PySide] Web site transfer In-Reply-To: <8789154.SZdH36y9H5@hugodesktop> References: <4F9E7B49.9040404@nokia.com> <1335802700.31033.18.camel@erik-mac> <8789154.SZdH36y9H5@hugodesktop> Message-ID: Are we not able to just migrate all of the old website content onto the main Qt website in the longer term? Hosting a HTTP 301 'moved permanently'-issuing website to keep old links alive indefinitely would be very cheap. On 30 April 2012 18:39, Hugo Parente Lima wrote: > On Monday, April 30, 2012 10:30:46 AM Srini Kommoori wrote: > > I would like to propose S3/github for website hosting. It is pretty easy > to > > setup and we can automate to push the code/html pages very easily. > > I agree, github for website hosting. > About the tarballs, we have tags on git for each release, so IMO tarballs > are > just another way of offer the same information and we can discard if it's > causing troubles. > > > Here is my preferred service list: > > S3/github for all static pages. > > Blog - Blogger/Tumblr with multi user submits. > > Wiki - [No change] Seems like already integrated with Qt main site. > > Code - [No change] gitorious > > > > I can help and sponsor for the expenses(if any) related to the migration. > > > > thanks, > > -Srini > > > > On Mon, Apr 30, 2012 at 9:18 AM, Erik Janssens > > > > wrote: > > > Hello, > > > > > > We have a professional Weebly account, > > > (http://www.weebly.com/) and can offer a site account for > > > this purpose. > > > > > > A Weebly site can host web pages + images + forms. But it's > > > not suited to offer source or binary packages for download. > > > > > > The downside of using Weebly is that the site should be rebuild > > > from scratch, something I estimate to be a couple of hours work > > > for someone experienced with CSS, html. > > > > > > The upside being that it's very easy to maintain. > > > > > > Just let me know if this would be interesting... > > > > > > Cheers, > > > > > > Erik > > > > > > On Mon, 2012-04-30 at 14:45 +0300, Matti Airas wrote: > > > > Hi list, > > > > > > > > There's one final thing in the PySide migration to Qt add-on: the > > > > website. I've been trying to have the migration arranged, but > progress > > > > has been very slow. Also, May 3 is my last work-day at Nokia, so that > > > > complicates things further. > > > > > > > > PySide is currently hosted at a Virtual Machine provided by Nokia IT, > > > > which has made it easy because there have not been any fees or > bandwidth > > > > quotas (and the connectivity has been quite excellent). > Unfortunately, > > > > that VM is leased only until end of June, so arrangements need to be > > > > made pretty soon. > > > > > > > > Unfortunately, Qt Project is unwilling to provide a virtual machine > for > > > > PySide, and therefore a direct migration of the VM is not feasible. > They > > > > have proposed that they can host the static content (binaries, > > > > documentation & doc packages) which account for vast majority of the > > > > traffic anyway. Then, the current WordPress site contents (which > isn't > > > > much any longer, anyway) could be moved to the wiki, with a > possibility > > > > to have a static landing page as the home page. The news blog would > then > > > > need to be migrated to any free 3rd-party blogging platform such as > > > > wordpress.com. This is probably doable and something that the > project > > > > could live with, but it does require additional effort and decrease > the > > > > level of service somewhat, both for the administrators (no access to > WP > > > > authoring tools) and for the end-users (URLs for binaries and docs > > > > change, blog aggregation needs to be updated). In the long term, this > > > > would be the approach requiring the least amount of maintenance. > > > > > > > > Another alternative which could be feasible is to have a VM elsewhere > > > > and Qt Project would just point the DNS there. The VM requirements > are > > > > not huge: the current VM is a single-core one Xeon 2.5 GHz with 2 GB > of > > > > allocated memory and 40 GB of disk space. However, the site generates > > > > quite some traffic - in April, 120 GB, and the number has been > > > > increasing at a steady pace. Also, having a separate VM would > require a > > > > dedicated admin who would be willing to maintain the VM, take > backups, > > > > > > etc. > > > > > > > I would like to hear your opinions on this one. In the first option, > the > > > > up front work and changes would be bigger but the long-term effort > > > > lower, and no external costs would be incurred. In the latter option, > > > > the migration would be less painful but having the VM would require > more > > > > maintenance in the future, and recurring payments would occur. > > > > > > > > Also, I'd like to call for volunteers to help with the migration and > the > > > > future maintenance. As said, my work obligation at Nokia is ending > and > > > > while I'm not vanishing altogether, it'd be helpful if someone else > > > > could take the lead. Srini, you volunteered for the webmaster and > > > > wikimaster duties in February - although this might not be what you > had > > > > in mind, would you still be interested? > > > > > > > > Also, if a separate VM is desired, a sponsor is needed for that. I > > > > wonder if any companies would be interested in providing that, for a > > > > modest logo or banner visibility on the web site? A basic 3rd-party > VM > > > > with that amount of traffic would cost some 40-50 EUR/USD a month. > Not a > > > > huge sum, but I wouldn't feel happy paying it out of my own pocket, > > > > especially with the steadily increasing traffic. > > > > > > > > Cheers, > > > > > > > > Matti Airas > > > > _______________________________________________ > > > > PySide mailing list > > > > PySide at qt-project.org > > > > http://lists.qt-project.org/mailman/listinfo/pyside > > > > > > _______________________________________________ > > > PySide mailing list > > > PySide at qt-project.org > > > http://lists.qt-project.org/mailman/listinfo/pyside > > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside > > -- Alexander Jones Double Negative R&D www.dneg.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From aj at dneg.com Mon Apr 30 21:34:02 2012 From: aj at dneg.com (Alexander Jones) Date: Mon, 30 Apr 2012 20:34:02 +0100 Subject: [PySide] Web site transfer In-Reply-To: <8789154.SZdH36y9H5@hugodesktop> References: <4F9E7B49.9040404@nokia.com> <1335802700.31033.18.camel@erik-mac> <8789154.SZdH36y9H5@hugodesktop> Message-ID: Are we not able to just migrate all of the old website content onto the main Qt website in the longer term? Hosting a HTTP 301 'moved permanently'-issuing website to keep old links alive indefinitely would be very cheap. On 30 April 2012 18:39, Hugo Parente Lima wrote: > On Monday, April 30, 2012 10:30:46 AM Srini Kommoori wrote: > > I would like to propose S3/github for website hosting. It is pretty easy > to > > setup and we can automate to push the code/html pages very easily. > > I agree, github for website hosting. > About the tarballs, we have tags on git for each release, so IMO tarballs > are > just another way of offer the same information and we can discard if it's > causing troubles. > > > Here is my preferred service list: > > S3/github for all static pages. > > Blog - Blogger/Tumblr with multi user submits. > > Wiki - [No change] Seems like already integrated with Qt main site. > > Code - [No change] gitorious > > > > I can help and sponsor for the expenses(if any) related to the migration. > > > > thanks, > > -Srini > > > > On Mon, Apr 30, 2012 at 9:18 AM, Erik Janssens > > > > wrote: > > > Hello, > > > > > > We have a professional Weebly account, > > > (http://www.weebly.com/) and can offer a site account for > > > this purpose. > > > > > > A Weebly site can host web pages + images + forms. But it's > > > not suited to offer source or binary packages for download. > > > > > > The downside of using Weebly is that the site should be rebuild > > > from scratch, something I estimate to be a couple of hours work > > > for someone experienced with CSS, html. > > > > > > The upside being that it's very easy to maintain. > > > > > > Just let me know if this would be interesting... > > > > > > Cheers, > > > > > > Erik > > > > > > On Mon, 2012-04-30 at 14:45 +0300, Matti Airas wrote: > > > > Hi list, > > > > > > > > There's one final thing in the PySide migration to Qt add-on: the > > > > website. I've been trying to have the migration arranged, but > progress > > > > has been very slow. Also, May 3 is my last work-day at Nokia, so that > > > > complicates things further. > > > > > > > > PySide is currently hosted at a Virtual Machine provided by Nokia IT, > > > > which has made it easy because there have not been any fees or > bandwidth > > > > quotas (and the connectivity has been quite excellent). > Unfortunately, > > > > that VM is leased only until end of June, so arrangements need to be > > > > made pretty soon. > > > > > > > > Unfortunately, Qt Project is unwilling to provide a virtual machine > for > > > > PySide, and therefore a direct migration of the VM is not feasible. > They > > > > have proposed that they can host the static content (binaries, > > > > documentation & doc packages) which account for vast majority of the > > > > traffic anyway. Then, the current WordPress site contents (which > isn't > > > > much any longer, anyway) could be moved to the wiki, with a > possibility > > > > to have a static landing page as the home page. The news blog would > then > > > > need to be migrated to any free 3rd-party blogging platform such as > > > > wordpress.com. This is probably doable and something that the > project > > > > could live with, but it does require additional effort and decrease > the > > > > level of service somewhat, both for the administrators (no access to > WP > > > > authoring tools) and for the end-users (URLs for binaries and docs > > > > change, blog aggregation needs to be updated). In the long term, this > > > > would be the approach requiring the least amount of maintenance. > > > > > > > > Another alternative which could be feasible is to have a VM elsewhere > > > > and Qt Project would just point the DNS there. The VM requirements > are > > > > not huge: the current VM is a single-core one Xeon 2.5 GHz with 2 GB > of > > > > allocated memory and 40 GB of disk space. However, the site generates > > > > quite some traffic - in April, 120 GB, and the number has been > > > > increasing at a steady pace. Also, having a separate VM would > require a > > > > dedicated admin who would be willing to maintain the VM, take > backups, > > > > > > etc. > > > > > > > I would like to hear your opinions on this one. In the first option, > the > > > > up front work and changes would be bigger but the long-term effort > > > > lower, and no external costs would be incurred. In the latter option, > > > > the migration would be less painful but having the VM would require > more > > > > maintenance in the future, and recurring payments would occur. > > > > > > > > Also, I'd like to call for volunteers to help with the migration and > the > > > > future maintenance. As said, my work obligation at Nokia is ending > and > > > > while I'm not vanishing altogether, it'd be helpful if someone else > > > > could take the lead. Srini, you volunteered for the webmaster and > > > > wikimaster duties in February - although this might not be what you > had > > > > in mind, would you still be interested? > > > > > > > > Also, if a separate VM is desired, a sponsor is needed for that. I > > > > wonder if any companies would be interested in providing that, for a > > > > modest logo or banner visibility on the web site? A basic 3rd-party > VM > > > > with that amount of traffic would cost some 40-50 EUR/USD a month. > Not a > > > > huge sum, but I wouldn't feel happy paying it out of my own pocket, > > > > especially with the steadily increasing traffic. > > > > > > > > Cheers, > > > > > > > > Matti Airas > > > > _______________________________________________ > > > > PySide mailing list > > > > PySide at qt-project.org > > > > http://lists.qt-project.org/mailman/listinfo/pyside > > > > > > _______________________________________________ > > > PySide mailing list > > > PySide at qt-project.org > > > http://lists.qt-project.org/mailman/listinfo/pyside > > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside > > -- Alexander Jones Double Negative R&D www.dneg.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From frank at ohufx.com Mon Apr 30 22:54:47 2012 From: frank at ohufx.com (Frank Rueter | OHUfx) Date: Tue, 01 May 2012 08:54:47 +1200 Subject: [PySide] sliding widgets into position In-Reply-To: <4F9E8B2C.6090705@gmail.com> References: <4F98EE3E.8000805@ohufx.com> <4F98F0D6.8010909@gmail.com> <4F99C747.3030606@ohufx.com> <4F99E414.7010203@ohufx.com> <4F9A32FB.1080706@gmail.com> <4F9DC7DE.2070207@ohufx.com> <4F9E8B2C.6090705@gmail.com> Message-ID: <4F9EFC17.8040706@ohufx.com> ok, thanks On 1/05/12 12:53 AM, Tibold Kandrai wrote: > Hi! > > There I just needed a SIGNAL for the resizeEvent, to be able to resize > the sliding widgets, so their size will always conform with the window. > > Cheers, > Tibold > > On 2012-04-30 00:59, Frank Rueter | OHUfx wrote: >> Hi Tibold, >> >> I'm starting to go through your example code and was wondering why >> it's necessary to subclass QFrame and re-implement the resizeEvent >> for "CentralFrame"?! >> To my novice eye it looks like what you did here should be working >> for QFrame out of the box, but it doesn't. >> >> Would you mind explaining? >> >> Cheers and thanks again for this example! >> frank >> >> On 4/27/12 5:47 PM, Tibold Kandrai wrote: >>> Try this out ;) >>> http://pastebin.com/a04tvY0U >>> >>> Cheers, >>> Tibold >>> >>> On 2012-04-27 02:11, Frank Rueter | OHUfx wrote: >>>> So I've followed Tibold's advice and sorted out some other ugly >>>> stuff and am a bit closer. >>>> My problem now is that, because I am not adding the top and bottom >>>> frames to the layout anymore (to avoid the middle frame shifting), >>>> I now can't get the right size and position relative to the centre >>>> frame. >>>> >>>> This is what I have now a bit cleaned up and with comments: >>>> http://pastebin.com/wrUX5Ce0 >>>> >>>> By making the middle frame the parent to the top and bottom frames >>>> they line up to it now in the upper left corner - cool, one step >>>> forward. >>>> But I can't get the top and bottom frames to have the same width as >>>> the parent and also don't know how to control the position properly >>>> so that the bottom frame is always positioned in the bottom left >>>> corner of the centre frame. >>>> The size policy isn't inherited either which I'm a bit clueless a >>>> bout too. >>>> >>>> Sorry for the noob questions but have looked online for tutorials >>>> on this sort of positioning to no avail. >>>> >>>> Thanks in advance for any help! >>>> >>>> Cheers, >>>> frank >>>> >>>> >>>> On 4/27/12 10:08 AM, Frank Rueter | OHUfx wrote: >>>>> Thanks Tibold, I will have a look at that. >>>>> I'm still not sure how to figure out the positioning in a >>>>> procedural way though. >>>>> Will investigate more. >>>>> >>>>> Cheers, >>>>> frank >>>>> >>>>> On 4/26/12 6:53 PM, Tibold Kandrai wrote: >>>>>> Hi, >>>>>> >>>>>> Try to subclass QDockWidget. You will have to set it's geometry >>>>>> manually. Also if you want the widgets to pop up above the centralWidget >>>>>> than don't add the dock widgets to any layout. Simply add them with the >>>>>> main window as their parent, and raise them when you show them. >>>>>> Using this technique I managed to implement auto hiding widgets like in >>>>>> Visual Studio. It's not trivial, but it's possible. >>>>>> Actually if you don't need any of the QDockWIdget's functionality you >>>>>> can do the same with a QFrame as well. Same logic, override it's >>>>>> geometry, and don't add them to the grid layout. Adding the widgets to >>>>>> the grid layout will always push the central widget. >>>>>> >>>>>> Cheers, >>>>>> Tibold >>>>>> >>>>>> On 2012-04-26 08:42, Frank Rueter | OHUfx wrote: >>>>>>> Hi, >>>>>>> >>>>>>> end of day for me and my brain has gone numb, so I'm probably missing >>>>>>> the obvious: >>>>>>> >>>>>>> I'm trying to create a widget with three areas: top, middle and bottom >>>>>>> (using QFrames as place holders for now). >>>>>>> The middle frame is meant to be visible from the start containing some >>>>>>> text and other widgets, when the button is pushed, the top frame is >>>>>>> meant to slide down into view and the bottom frame is meant to slide up >>>>>>> into view, so that I'm left with a controllable vertical arrangements of >>>>>>> those three frames. >>>>>>> Here is my ugly attempt so far: >>>>>>> http://pastebin.com/index/bNJ9zeUm >>>>>>> >>>>>>> Things do move but I can't control the start and end positions properly >>>>>>> and the GridLayout adjusts itself when showing the extra frames, so that >>>>>>> the middle frame jumps. I have no idea how to set the size hints etc. to >>>>>>> define the start and end positions of the sliding QFrames generically >>>>>>> and avoid the jumping middle frame (might have to go with an alternative >>>>>>> approach to QGridLayout?!). >>>>>>> >>>>>>> Any help would be greatly appreciated. >>>>>>> >>>>>>> Frank >>>>>>> _______________________________________________ >>>>>>> PySide mailing list >>>>>>> PySide at qt-project.org >>>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> PySide mailing list >>>>>> PySide at qt-project.org >>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>> >>>>> >>>>> _______________________________________________ >>>>> PySide mailing list >>>>> PySide at qt-project.org >>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>> >>>> >>>> _______________________________________________ >>>> PySide mailing list >>>> PySide at qt-project.org >>>> http://lists.qt-project.org/mailman/listinfo/pyside >>> >>> -- >>> Tibold Kandrai, >>> CEO @ Dotz Team I/S, >>> Software developer, consultant >>> >>> >>> _______________________________________________ >>> PySide mailing list >>> PySide at qt-project.org >>> http://lists.qt-project.org/mailman/listinfo/pyside >> >> >> _______________________________________________ >> PySide mailing list >> PySide at qt-project.org >> http://lists.qt-project.org/mailman/listinfo/pyside > > -- > Tibold Kandrai, > CEO @ Dotz Team I/S, > Software developer, consultant > > > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside -------------- next part -------------- An HTML attachment was scrubbed... URL: From frank at ohufx.com Mon Apr 30 22:57:19 2012 From: frank at ohufx.com (Frank Rueter | OHUfx) Date: Tue, 01 May 2012 08:57:19 +1200 Subject: [PySide] sliding widgets into position In-Reply-To: <4F9EA661.6010902@gmail.com> References: <4F98EE3E.8000805@ohufx.com> <4F98F0D6.8010909@gmail.com> <4F99C747.3030606@ohufx.com> <4F99E414.7010203@ohufx.com> <4F9A32FB.1080706@gmail.com> <4F9DC7DE.2070207@ohufx.com> <4F9E8B2C.6090705@gmail.com> <4F9EA661.6010902@gmail.com> Message-ID: <4F9EFCAF.6050908@ohufx.com> I think that's where I'm stuck now, as the lack of a layout causes my sliding pages to overlap with the docks. I shall look up how to create custom layouts but was wondering if I could simply use a GridLayout adjusted so it has only three rows that mimic the size of the main window's areas (centre area and top/bottom docks) and only use the middle row to populate with widgets that shouldn't overlap the docks. I will have a go at both today, thanks. On 1/05/12 2:49 AM, Tibold Kandrai wrote: > Hi! > > If I think more about it the proper way would be to create a custom > layout which positions your sliding layouts where you need them. :) > > Cheers, > Tibold > > On 2012-04-30 14:53, Tibold Kandrai wrote: >> Hi! >> >> There I just needed a SIGNAL for the resizeEvent, to be able to >> resize the sliding widgets, so their size will always conform with >> the window. >> >> Cheers, >> Tibold >> >> On 2012-04-30 00:59, Frank Rueter | OHUfx wrote: >>> Hi Tibold, >>> >>> I'm starting to go through your example code and was wondering why >>> it's necessary to subclass QFrame and re-implement the resizeEvent >>> for "CentralFrame"?! >>> To my novice eye it looks like what you did here should be working >>> for QFrame out of the box, but it doesn't. >>> >>> Would you mind explaining? >>> >>> Cheers and thanks again for this example! >>> frank >>> >>> On 4/27/12 5:47 PM, Tibold Kandrai wrote: >>>> Try this out ;) >>>> http://pastebin.com/a04tvY0U >>>> >>>> Cheers, >>>> Tibold >>>> >>>> On 2012-04-27 02:11, Frank Rueter | OHUfx wrote: >>>>> So I've followed Tibold's advice and sorted out some other ugly >>>>> stuff and am a bit closer. >>>>> My problem now is that, because I am not adding the top and bottom >>>>> frames to the layout anymore (to avoid the middle frame shifting), >>>>> I now can't get the right size and position relative to the centre >>>>> frame. >>>>> >>>>> This is what I have now a bit cleaned up and with comments: >>>>> http://pastebin.com/wrUX5Ce0 >>>>> >>>>> By making the middle frame the parent to the top and bottom frames >>>>> they line up to it now in the upper left corner - cool, one step >>>>> forward. >>>>> But I can't get the top and bottom frames to have the same width >>>>> as the parent and also don't know how to control the position >>>>> properly so that the bottom frame is always positioned in the >>>>> bottom left corner of the centre frame. >>>>> The size policy isn't inherited either which I'm a bit clueless a >>>>> bout too. >>>>> >>>>> Sorry for the noob questions but have looked online for tutorials >>>>> on this sort of positioning to no avail. >>>>> >>>>> Thanks in advance for any help! >>>>> >>>>> Cheers, >>>>> frank >>>>> >>>>> >>>>> On 4/27/12 10:08 AM, Frank Rueter | OHUfx wrote: >>>>>> Thanks Tibold, I will have a look at that. >>>>>> I'm still not sure how to figure out the positioning in a >>>>>> procedural way though. >>>>>> Will investigate more. >>>>>> >>>>>> Cheers, >>>>>> frank >>>>>> >>>>>> On 4/26/12 6:53 PM, Tibold Kandrai wrote: >>>>>>> Hi, >>>>>>> >>>>>>> Try to subclass QDockWidget. You will have to set it's geometry >>>>>>> manually. Also if you want the widgets to pop up above the centralWidget >>>>>>> than don't add the dock widgets to any layout. Simply add them with the >>>>>>> main window as their parent, and raise them when you show them. >>>>>>> Using this technique I managed to implement auto hiding widgets like in >>>>>>> Visual Studio. It's not trivial, but it's possible. >>>>>>> Actually if you don't need any of the QDockWIdget's functionality you >>>>>>> can do the same with a QFrame as well. Same logic, override it's >>>>>>> geometry, and don't add them to the grid layout. Adding the widgets to >>>>>>> the grid layout will always push the central widget. >>>>>>> >>>>>>> Cheers, >>>>>>> Tibold >>>>>>> >>>>>>> On 2012-04-26 08:42, Frank Rueter | OHUfx wrote: >>>>>>>> Hi, >>>>>>>> >>>>>>>> end of day for me and my brain has gone numb, so I'm probably missing >>>>>>>> the obvious: >>>>>>>> >>>>>>>> I'm trying to create a widget with three areas: top, middle and bottom >>>>>>>> (using QFrames as place holders for now). >>>>>>>> The middle frame is meant to be visible from the start containing some >>>>>>>> text and other widgets, when the button is pushed, the top frame is >>>>>>>> meant to slide down into view and the bottom frame is meant to slide up >>>>>>>> into view, so that I'm left with a controllable vertical arrangements of >>>>>>>> those three frames. >>>>>>>> Here is my ugly attempt so far: >>>>>>>> http://pastebin.com/index/bNJ9zeUm >>>>>>>> >>>>>>>> Things do move but I can't control the start and end positions properly >>>>>>>> and the GridLayout adjusts itself when showing the extra frames, so that >>>>>>>> the middle frame jumps. I have no idea how to set the size hints etc. to >>>>>>>> define the start and end positions of the sliding QFrames generically >>>>>>>> and avoid the jumping middle frame (might have to go with an alternative >>>>>>>> approach to QGridLayout?!). >>>>>>>> >>>>>>>> Any help would be greatly appreciated. >>>>>>>> >>>>>>>> Frank >>>>>>>> _______________________________________________ >>>>>>>> PySide mailing list >>>>>>>> PySide at qt-project.org >>>>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> PySide mailing list >>>>>>> PySide at qt-project.org >>>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> PySide mailing list >>>>>> PySide at qt-project.org >>>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>>> >>>>> >>>>> _______________________________________________ >>>>> PySide mailing list >>>>> PySide at qt-project.org >>>>> http://lists.qt-project.org/mailman/listinfo/pyside >>>> >>>> -- >>>> Tibold Kandrai, >>>> CEO @ Dotz Team I/S, >>>> Software developer, consultant >>>> >>>> >>>> _______________________________________________ >>>> PySide mailing list >>>> PySide at qt-project.org >>>> http://lists.qt-project.org/mailman/listinfo/pyside >>> >>> >>> _______________________________________________ >>> PySide mailing list >>> PySide at qt-project.org >>> http://lists.qt-project.org/mailman/listinfo/pyside >> >> -- >> Tibold Kandrai, >> CEO @ Dotz Team I/S, >> Software developer, consultant > > -- > Tibold Kandrai, > CEO @ Dotz Team I/S, > Software developer, consultant > > > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside -------------- next part -------------- An HTML attachment was scrubbed... URL: