From rymg19 at gmail.com Wed Apr 1 20:17:28 2015 From: rymg19 at gmail.com (Ryan Gonzalez) Date: Wed, 1 Apr 2015 13:17:28 -0500 Subject: [PySide] How to remove a template function in Shiboken? Message-ID: I'm trying to wrap a library that has a member template function defined like so: template ASMJIT_INLINE T& getData() { return reinterpret_cast(_base); } template ASMJIT_INLINE const T& getData() const { return reinterpret_cast(_base); } It's used internally, so I don't need to bind it. I tried this: but I get this: signature 'getData()' for function modification in 'asmjit::Operand' not found. Possible candidates: and it doesn't list anything. -- Ryan [ERROR]: Your autotools build scripts are 200 lines longer than your program. Something’s wrong. http://kirbyfan64.github.io/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From mw_triad at users.sourceforge.net Wed Apr 1 20:31:49 2015 From: mw_triad at users.sourceforge.net (Matthew Woehlke) Date: Wed, 01 Apr 2015 14:31:49 -0400 Subject: [PySide] How to remove a template function in Shiboken? In-Reply-To: References: Message-ID: On 2015-04-01 14:17, Ryan Gonzalez wrote: > I'm trying to wrap a library that has a member template function defined > like so: > [...] > > It's used internally, so I don't need to bind it. I tried this: > > > > I believe you want a rejection... see https://github.com/PySide/Shiboken/blob/master/ApiExtractor/doc/typesystem_specifying_types.rst. Specifically, this might be what you want: -- Matthew From rymg19 at gmail.com Wed Apr 1 20:34:32 2015 From: rymg19 at gmail.com (Ryan Gonzalez) Date: Wed, 1 Apr 2015 13:34:32 -0500 Subject: [PySide] How to remove a template function in Shiboken? In-Reply-To: References: Message-ID: That did the trick. Thanks! On Wed, Apr 1, 2015 at 1:31 PM, Matthew Woehlke < mw_triad at users.sourceforge.net> wrote: > On 2015-04-01 14:17, Ryan Gonzalez wrote: > > I'm trying to wrap a library that has a member template function defined > > like so: > > [...] > > > > It's used internally, so I don't need to bind it. I tried this: > > > > > > > > > > I believe you want a rejection... see > > https://github.com/PySide/Shiboken/blob/master/ApiExtractor/doc/typesystem_specifying_types.rst > . > > Specifically, this might be what you want: > > > > -- > Matthew > > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside > -- Ryan [ERROR]: Your autotools build scripts are 200 lines longer than your program. Something’s wrong. http://kirbyfan64.github.io/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From leegold at operamail.com Fri Apr 3 20:21:40 2015 From: leegold at operamail.com (Lee Gold) Date: Fri, 03 Apr 2015 11:21:40 -0700 Subject: [PySide] Is Pyside project Active? Message-ID: <1428085300.2588539.249044589.6CE38EFE@webmail.messagingengine.com> Hi, Is the Pyside project active? Why is the web page down? Thanks. -- http://www.fastmail.com - Or how I learned to stop worrying and love email again From sahmi.soulaimane at gmail.com Mon Apr 6 01:07:06 2015 From: sahmi.soulaimane at gmail.com (=?UTF-8?B?2LPZhNmK2YXYp9mGINin2YTYs9mH2YXZig==?=) Date: Mon, 6 Apr 2015 00:07:06 +0100 Subject: [PySide] how do you add a function to a script engine? Message-ID: I'm trying the following code: def myAdd(context, engine): a = context.argument(0) b = context.argument(1) return a.toNumber() + b.toNumber() myEngine = QScriptEngine() fun = myEngine.newFunction(myAdd) and getting: AttributeError: 'PySide.QtScript.QScriptEngine' object has no attribute 'newFunction' -------------- next part -------------- An HTML attachment was scrubbed... URL: From p.oseidon at datec.at Mon Apr 6 19:33:39 2015 From: p.oseidon at datec.at (Paul O. Seidon) Date: Mon, 06 Apr 2015 19:33:39 +0200 Subject: [PySide] Simple app using a timer to update crahes when maximized Message-ID: Dear PySiders, being a wxPython user for years I decided to have a look at Qt using PySide. A simple to-do manager containing to-dos that change their priority over time (depending on the distance of now to the due date) should be suited to get my feet wet. It uses QTableView, QSortFilterProxyModel and QAbstractTableModel. The QAbstractTableModel (actually the subclass) features a QTimer to recalculate the priorities of the to-dos. Here I do def _on_Qt_TIMEOUT_timer_( self): self.layoutChanged.emit() return to tell the view to redisplay the data. Everything works fine so far, but when I minimize, maximize, minimize, maximize, ... the GUI, then suddenly the app crashes upon maximizing the GUI. It does not so, if I don't start the QTimer. And, the smaller the timer interval the sooner it crashes. I guess there happens something in the QTableView when the GUI is max'ed that interferes with the slot called by self.layoutChanged.emit(). I'm on Arch Linux, Python 2.7.9. Any idea? Kind regards Paul From techtonik at gmail.com Tue Apr 7 07:35:39 2015 From: techtonik at gmail.com (anatoly techtonik) Date: Tue, 7 Apr 2015 08:35:39 +0300 Subject: [PySide] Building Shiboken on Windows In-Reply-To: <54DD24AD.5090205@arcor.de> References: <54DD24AD.5090205@arcor.de> Message-ID: On Fri, Feb 13, 2015 at 1:09 AM, Christoph Buelter wrote: > Any ideas are greatly appreciated! ...amd64/cl.exe <--- here might be dragons. -- anatoly t. -------------- next part -------------- An HTML attachment was scrubbed... URL: From techtonik at gmail.com Tue Apr 7 07:40:48 2015 From: techtonik at gmail.com (anatoly techtonik) Date: Tue, 7 Apr 2015 08:40:48 +0300 Subject: [PySide] Is Pyside project Active? In-Reply-To: <1428085300.2588539.249044589.6CE38EFE@webmail.messagingengine.com> References: <1428085300.2588539.249044589.6CE38EFE@webmail.messagingengine.com> Message-ID: Hi, pyside.org domain name is probably expired. It is not active as I see it. Because there is a need to research and document the binding generator to port it to Qt5, and there is no support for that, neither organizational, nor financial. On Fri, Apr 3, 2015 at 9:21 PM, Lee Gold wrote: > Hi, > > Is the Pyside project active? > > Why is the web page down? > > Thanks. > > > -- > http://www.fastmail.com - Or how I learned to stop worrying and > love email again > > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside > -- anatoly t. -------------- next part -------------- An HTML attachment was scrubbed... URL: From techtonik at gmail.com Tue Apr 7 07:41:33 2015 From: techtonik at gmail.com (anatoly techtonik) Date: Tue, 7 Apr 2015 08:41:33 +0300 Subject: [PySide] Is Pyside project Active? In-Reply-To: References: <1428085300.2588539.249044589.6CE38EFE@webmail.messagingengine.com> Message-ID: Another problem is that contribution barrier is too high, because the project is not hosted on GitHub. -------------- next part -------------- An HTML attachment was scrubbed... URL: From techtonik at gmail.com Tue Apr 7 07:44:56 2015 From: techtonik at gmail.com (anatoly techtonik) Date: Tue, 7 Apr 2015 08:44:56 +0300 Subject: [PySide] Is Pyside project Active? In-Reply-To: References: <1428085300.2588539.249044589.6CE38EFE@webmail.messagingengine.com> Message-ID: Also, the activity mostly moved to: https://groups.google.com/forum/#!forum/pyside-dev On Tue, Apr 7, 2015 at 8:41 AM, anatoly techtonik wrote: > Another problem is that contribution > barrier is too high, because the project is > not hosted on GitHub. > -- anatoly t. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmccombs at dyn.com Tue Apr 7 15:48:34 2015 From: dmccombs at dyn.com (Dan McCombs) Date: Tue, 7 Apr 2015 09:48:34 -0400 Subject: [PySide] Is Pyside project Active? In-Reply-To: References: <1428085300.2588539.249044589.6CE38EFE@webmail.messagingengine.com> Message-ID: The domain name is not expired, it doesn't expire until 2015-07-03. It's likely something on the web hosting side. -Dan [image: Dyn logo, Dyn.com] [image: Dyn facebook account] [image: Dyn LinkedIn account] Dan McCombs / Senior Software Engineer 603 296 1568 @danmccombs On Tue, Apr 7, 2015 at 1:40 AM, anatoly techtonik wrote: > Hi, > > pyside.org domain name is probably expired. > > It is not active as I see it. Because there is a > need to research and document the binding > generator to port it to Qt5, and there is no > support for that, neither organizational, nor > financial. > > > > On Fri, Apr 3, 2015 at 9:21 PM, Lee Gold wrote: > >> Hi, >> >> Is the Pyside project active? >> >> Why is the web page down? >> >> Thanks. >> >> >> -- >> http://www.fastmail.com - Or how I learned to stop worrying and >> love email again >> >> _______________________________________________ >> PySide mailing list >> PySide at qt-project.org >> http://lists.qt-project.org/mailman/listinfo/pyside >> > > > > -- > anatoly t. > > _______________________________________________ > 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 jpe at wingware.com Tue Apr 7 16:00:00 2015 From: jpe at wingware.com (John Ehresman) Date: Tue, 07 Apr 2015 10:00:00 -0400 Subject: [PySide] Is Pyside project Active? In-Reply-To: References: <1428085300.2588539.249044589.6CE38EFE@webmail.messagingengine.com> Message-ID: <5523E2E0.3080405@wingware.com> On 4/7/15 9:48 AM, Dan McCombs wrote: > The domain name is not expired, it doesn't expire until 2015-07-03. > > It's likely something on the web hosting side. It's probably an issue with redirects. I believe the domain was set up by folks at what was then nokia when the project wound down there. John From techtonik at gmail.com Tue Apr 7 17:55:21 2015 From: techtonik at gmail.com (anatoly techtonik) Date: Tue, 7 Apr 2015 18:55:21 +0300 Subject: [PySide] Qt5 Support Message-ID: Just wanted you to know that guys at this OpenGeoSciences have this pull request with Qt5 support: https://github.com/OpenGeoscience/shiboken/pull/3 -- anatoly t. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mw_triad at users.sourceforge.net Tue Apr 7 18:41:04 2015 From: mw_triad at users.sourceforge.net (Matthew Woehlke) Date: Tue, 07 Apr 2015 12:41:04 -0400 Subject: [PySide] Qt5 Support In-Reply-To: References: Message-ID: On 2015-04-07 11:55, anatoly techtonik wrote: > Just wanted you to know that guys at this > OpenGeoSciences have this pull request with > Qt5 support: > https://github.com/OpenGeoscience/shiboken/pull/3 I'm pretty sure I mentioned this previously (although I don't think I pointed out the repo). Note that most of the *bugs* we ran into were submitted as upstream patches and have all¹ (TTBOMK) been merged. What's missing is the ability to find and use Qt 5 instead of Qt 4, and some minor changes due to API differences. That branch didn't make it optional; OGS elected to move wholesale to Qt 5. I'm not sure that shiboken would want to do that. At any rate, care would need to be taken integrating this, as OGS is using the template redirection support (that never, or at least hasn't yet, landed upstream), and some of the required changes were specific to that. (FWIW, I also think the include changes that Ben B. made are superfluous and an unnecessary barrier to supporting both Qt 4 and Qt 5.) (¹ The ones that are relevant to master, anyway; see again my comment re: template redirection support.) -- Matthew From schampailler at skynet.be Wed Apr 8 10:15:55 2015 From: schampailler at skynet.be (S. Champailler) Date: Wed, 8 Apr 2015 10:15:55 +0200 (CEST) Subject: [PySide] Qt5 Support In-Reply-To: References: Message-ID: <1539243952.530734.1428480955749.open-xchange@webmail.nmp.proximus.be> Is it possible to help a bit on this ? (I must say I've never user git pull request so I don't know what to do with that) stF > Le 7 avril 2015 à 17:55, anatoly techtonik a écrit : > > > Just wanted you to know that guys at this > OpenGeoSciences have this pull request with > Qt5 support: > https://github.com/OpenGeoscience/shiboken/pull/3 > > -- > anatoly t. > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside From mw_triad at users.sourceforge.net Wed Apr 8 16:32:29 2015 From: mw_triad at users.sourceforge.net (Matthew Woehlke) Date: Wed, 08 Apr 2015 10:32:29 -0400 Subject: [PySide] Qt5 Support In-Reply-To: <1539243952.530734.1428480955749.open-xchange@webmail.nmp.proximus.be> References: <1539243952.530734.1428480955749.open-xchange@webmail.nmp.proximus.be> Message-ID: On 2015-04-08 04:15, S. Champailler wrote: > Is it possible to help a bit on this ? > > (I must say I've never user git pull request so I don't know what to do with > that) The PR *itself* is not immediately useful to PySide. If you would like to contribute, you can look at the commits in that PR and attempt to recreate them¹ in shiboken master, although you should probably add an option whether to use Qt 4 or Qt 5, and try to make sure that both work. (¹ Actually, you probably only want 725dd0c8 through ecaaac3c, i.e. the ones by Ben B. a.k.a. @mathstuf; the others - i.e. mine - are either not relevant or already in master.) -- Matthew From p.oseidon at datec.at Mon Apr 13 17:23:32 2015 From: p.oseidon at datec.at (Paul O. Seidon) Date: Mon, 13 Apr 2015 17:23:32 +0200 Subject: [PySide] Simple app using a timer to update crahes when maximized References: Message-ID: Strange, had to add the layoutToBeChanged signal in the timer callback: def _on_Qt_TIMEOUT_timer_( self): self.layoutAboutToBeChanged.emit() self.layoutChanged.emit() return instead of just def _on_Qt_TIMEOUT_timer_( self): self.layoutChanged.emit() return Cheers Paul Paul O. Seidon wrote: > Dear PySiders, > > > being a wxPython user for years I decided to have a look at Qt using > PySide. A simple to-do manager containing to-dos that change their > priority over time (depending on the distance of now to the due date) > should be suited to get my feet wet. > > It uses QTableView, QSortFilterProxyModel and QAbstractTableModel. > > The QAbstractTableModel (actually the subclass) features a QTimer to > recalculate the priorities of the to-dos. Here I do > > def _on_Qt_TIMEOUT_timer_( self): > self.layoutChanged.emit() > return > > to tell the view to redisplay the data. > > Everything works fine so far, but when I minimize, maximize, minimize, > maximize, ... the GUI, then suddenly the app crashes upon maximizing the > GUI. It does not so, if I don't start the QTimer. And, the smaller the > timer interval the sooner it crashes. > > I guess there happens something in the QTableView when the GUI is max'ed > that interferes with the slot called by self.layoutChanged.emit(). > > I'm on Arch Linux, Python 2.7.9. > > Any idea? > > > Kind regards > Paul From tismer at stackless.com Sat Apr 18 15:16:18 2015 From: tismer at stackless.com (Christian Tismer) Date: Sat, 18 Apr 2015 15:16:18 +0200 Subject: [PySide] Simple app using a timer to update crahes when maximized In-Reply-To: References: Message-ID: <55325922.5050901@stackless.com> Hi, in the documentation at http://doc.qt.io/qt-4.8/qabstractitemmodel.html the following is told us: > When subclassing QAbstractItemModel > or QAbstractProxyModel > , ensure that you > emitlayoutAboutToBeChanged > () > before changing the order of items or altering the structure of the > data you expose to views, and emit layoutChanged() after changing the > layout. Admittedly, PySide should not just crash, but I'm not sure if that is a PySide problem. It would be interesting to run the same example on PyQt and see how that behaves. cheers - Chris On 13.04.15 17:23, Paul O. Seidon wrote: > Strange, had to add the layoutToBeChanged signal in the timer callback: > > def _on_Qt_TIMEOUT_timer_( self): > self.layoutAboutToBeChanged.emit() > self.layoutChanged.emit() > return > > instead of just > > def _on_Qt_TIMEOUT_timer_( self): > self.layoutChanged.emit() > return > > Cheers > Paul > > > Paul O. Seidon wrote: > >> Dear PySiders, >> >> >> being a wxPython user for years I decided to have a look at Qt using >> PySide. A simple to-do manager containing to-dos that change their >> priority over time (depending on the distance of now to the due date) >> should be suited to get my feet wet. >> >> It uses QTableView, QSortFilterProxyModel and QAbstractTableModel. >> >> The QAbstractTableModel (actually the subclass) features a QTimer to >> recalculate the priorities of the to-dos. Here I do >> >> def _on_Qt_TIMEOUT_timer_( self): >> self.layoutChanged.emit() >> return >> >> to tell the view to redisplay the data. >> >> Everything works fine so far, but when I minimize, maximize, minimize, >> maximize, ... the GUI, then suddenly the app crashes upon maximizing the >> GUI. It does not so, if I don't start the QTimer. And, the smaller the >> timer interval the sooner it crashes. >> >> I guess there happens something in the QTableView when the GUI is max'ed >> that interferes with the slot called by self.layoutChanged.emit(). >> >> I'm on Arch Linux, Python 2.7.9. >> >> Any idea? >> >> >> Kind regards >> Paul > > _______________________________________________ > PySide mailing list > PySide at qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside -- Christian Tismer :^) tismer at stackless.com Software Consulting : http://www.stackless.com/ Karl-Liebknecht-Str. 121 : http://www.pydica.net/ 14482 Potsdam : GPG key -> 0xFB7BEE0E phone +49 173 24 18 776 fax +49 (30) 700143-0023 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 536 bytes Desc: OpenPGP digital signature URL: From p.oseidon at datec.at Sun Apr 19 20:15:04 2015 From: p.oseidon at datec.at (Paul O. Seidon) Date: Sun, 19 Apr 2015 20:15:04 +0200 Subject: [PySide] Simple app using a timer to update crahes when maximized References: <55325922.5050901@stackless.com> Message-ID: Hi Chris, I found the "solution" by "porting" (was completely painless) my code to PyQt, which crashed, too. Some PyQt sample code I found elsewhere "inspired" me to try the emitlayoutAboutToBeChanged method. Cheers Paul Christian Tismer wrote: > Hi, > in the documentation at http://doc.qt.io/qt-4.8/qabstractitemmodel.html > the following is told us: > >> When subclassing QAbstractItemModel >> or >> QAbstractProxyModel , >> ensure that you emitlayoutAboutToBeChanged >> () >> before changing the order of items or altering the structure of the >> data you expose to views, and emit layoutChanged() after changing the >> layout. > > Admittedly, PySide should not just crash, but I'm not sure if that is > a PySide problem. > It would be interesting to run the same example on PyQt and see how > that behaves. > > cheers - Chris > > > On 13.04.15 17:23, Paul O. Seidon wrote: >> Strange, had to add the layoutToBeChanged signal in the timer callback: >> >> def _on_Qt_TIMEOUT_timer_( self): >> self.layoutAboutToBeChanged.emit() >> self.layoutChanged.emit() >> return >> >> instead of just >> >> def _on_Qt_TIMEOUT_timer_( self): >> self.layoutChanged.emit() >> return >> >> Cheers >> Paul >> >> >> Paul O. Seidon wrote: >> >>> Dear PySiders, >>> >>> >>> being a wxPython user for years I decided to have a look at Qt using >>> PySide. A simple to-do manager containing to-dos that change their >>> priority over time (depending on the distance of now to the due date) >>> should be suited to get my feet wet. >>> >>> It uses QTableView, QSortFilterProxyModel and QAbstractTableModel. >>> >>> The QAbstractTableModel (actually the subclass) features a QTimer to >>> recalculate the priorities of the to-dos. Here I do >>> >>> def _on_Qt_TIMEOUT_timer_( self): >>> self.layoutChanged.emit() >>> return >>> >>> to tell the view to redisplay the data. >>> >>> Everything works fine so far, but when I minimize, maximize, minimize, >>> maximize, ... the GUI, then suddenly the app crashes upon maximizing the >>> GUI. It does not so, if I don't start the QTimer. And, the smaller the >>> timer interval the sooner it crashes. >>> >>> I guess there happens something in the QTableView when the GUI is max'ed >>> that interferes with the slot called by self.layoutChanged.emit(). >>> >>> I'm on Arch Linux, Python 2.7.9. >>> >>> Any idea? >>> >>> >>> Kind regards >>> Paul >> >> _______________________________________________ >> PySide mailing list >> PySide at qt-project.org >> http://lists.qt-project.org/mailman/listinfo/pyside > > From techtonik at gmail.com Sun Apr 26 09:04:01 2015 From: techtonik at gmail.com (anatoly techtonik) Date: Sun, 26 Apr 2015 10:04:01 +0300 Subject: [PySide] Qt5 Support In-Reply-To: References: Message-ID: On Tue, Apr 7, 2015 at 7:41 PM, Matthew Woehlke < mw_triad at users.sourceforge.net> wrote: > On 2015-04-07 11:55, anatoly techtonik wrote: > > Just wanted you to know that guys at this > > OpenGeoSciences have this pull request with > > Qt5 support: > > https://github.com/OpenGeoscience/shiboken/pull/3 > > I'm pretty sure I mentioned this previously (although I don't think I > pointed out the repo). > > Note that most of the *bugs* we ran into were submitted as upstream > patches and have all¹ (TTBOMK) been merged. I see that Shiboken repository is not synced with Gitorious. https://qt.gitorious.org/pyside/shiboken/activities https://github.com/PySide/Shiboken/commits/master > What's missing is the > ability to find and use Qt 5 instead of Qt 4 If there is list of manual steps, then it could be automated. > and some minor changes due > to API differences. That branch didn't make it optional; Also, would be nice to see where the defines should be placed in. I think that the priority is to resurrect GitHub mirror. Thomas, Christian, is there some mirror service that is down ATM? -------------- next part -------------- An HTML attachment was scrubbed... URL: From techtonik at gmail.com Sun Apr 26 10:16:35 2015 From: techtonik at gmail.com (anatoly techtonik) Date: Sun, 26 Apr 2015 11:16:35 +0300 Subject: [PySide] Spring Wiki Cleanup Message-ID: Hi, I've cleaned up a few pages and refreshed RoadMap. Feel free to join the fun and fix the links, categories and redirections. MediaWiki is linked pretty cool using Category mechanism, so there should be no problem locating pages that are not yet cleaned up (I run out of time to create wiki page for clean up coordination, but feel free to add these pages to the list of stuff that is already processed). https://wiki.qt.io/Category:LanguageBindings::PySide::Downloads https://wiki.qt.io/PySide_Roadmap -- anatoly t. -------------- next part -------------- An HTML attachment was scrubbed... URL: