From alexander.blasche at qt.io Tue Dec 18 11:51:42 2018 From: alexander.blasche at qt.io (Alex Blasche) Date: Tue, 18 Dec 2018 10:51:42 +0000 Subject: [PySide] Qt for Python 5.12.0 released Message-ID: Hi, We are happy to announce Qt for Python 5.12.0 was released today. More information can be found in the release blog post: https://blog.qt.io/blog/2018/12/18/qt-python-5-12-released/ Thank you to everyone who helped us make that happen. Regards, -- Alex Blasche From schampailler at skynet.be Tue Dec 18 20:56:12 2018 From: schampailler at skynet.be (Stefan Champailler) Date: Tue, 18 Dec 2018 20:56:12 +0100 Subject: [PySide] Qt for Python 5.12.0 released In-Reply-To: References: Message-ID: <20181218205612.0ea61d97@debian.lan> Now that's a Christmas gift !!! Tremendous job ! stF On Tue, 18 Dec 2018 10:51:42 +0000 Alex Blasche wrote: > Hi, > > We are happy to announce Qt for Python 5.12.0 was released today. > More information can be found in the release blog post: https://blog.qt.io/blog/2018/12/18/qt-python-5-12-released/ > > Thank you to everyone who helped us make that happen. > > Regards, > -- > Alex Blasche > _______________________________________________ > PySide mailing list > PySide at qt-project.org > https://lists.qt-project.org/listinfo/pyside From redstone-cold at 163.com Wed Dec 19 04:12:25 2018 From: redstone-cold at 163.com (Zhao Lee) Date: Wed, 19 Dec 2018 11:12:25 +0800 (CST) Subject: [PySide] QT Remote Objects In-Reply-To: <1ac8bb8f-c34f-9113-7f7f-4fda872d1922@mesdan.it> References: <098D57F5-5DB5-4FB6-9FA8-66BE473E4597@riverbankcomputing.com> <1ac8bb8f-c34f-9113-7f7f-4fda872d1922@mesdan.it> Message-ID: <6680713e.1e.167c4733b32.Coremail.redstone-cold@163.com> it seems PySide2 has Qt Remote Objects support , and I tested with this example https://doc-snapshots.qt.io/qtforpython/tutorials/basictutorial/qml.html with Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 16:07:46) [MSC v.1900 32 bit (Intel)] on win32 First , python main.py -platform webgl:port=8998 then I visit http://127.0.0.1:8998 no response , any ideas ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From redstone-cold at 163.com Wed Dec 19 09:38:58 2018 From: redstone-cold at 163.com (Zhao Lee) Date: Wed, 19 Dec 2018 16:38:58 +0800 (CST) Subject: [PySide] implement a custom QWebEngineUrlSchemeHandler Message-ID: <12660069.66.167c59e31a8.Coremail.redstone-cold@163.com> I want to implement a custom QWebEngineUrlSchemeHandler to hand custom URL scheme 'sound', but the requestStarted() never got called , what's wrong ? code: https://bpaste.net/show/3be4b1874aed -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cristian.Maureira-Fredes at qt.io Wed Dec 19 13:50:14 2018 From: Cristian.Maureira-Fredes at qt.io (=?iso-8859-1?Q?Cristi=E1n_Maureira-Fredes?=) Date: Wed, 19 Dec 2018 12:50:14 +0000 Subject: [PySide] implement a custom QWebEngineUrlSchemeHandler In-Reply-To: <12660069.66.167c59e31a8.Coremail.redstone-cold@163.com> References: <12660069.66.167c59e31a8.Coremail.redstone-cold@163.com> Message-ID: That's PyQt5 code, please take into consideration that PyQt and PySide are different projects, then the problems you have in one are not necessarily on the other one. Cheers ________________________________________ From: PySide on behalf of Zhao Lee Sent: 19 December 2018 09:38:58 To: pyqt; pyside Subject: [PySide] implement a custom QWebEngineUrlSchemeHandler I want to implement a custom QWebEngineUrlSchemeHandler to hand custom URL scheme 'sound', but the requestStarted() never got called , what's wrong ? code: https://bpaste.net/show/3be4b1874aed From redstone-cold at 163.com Wed Dec 19 13:57:27 2018 From: redstone-cold at 163.com (Zhao Lee) Date: Wed, 19 Dec 2018 20:57:27 +0800 (CST) Subject: [PySide] [PyQt] implement a custom QWebEngineUrlSchemeHandler In-Reply-To: <1976167.Np7CUZpraF@neptun.solsys.priv> References: <12660069.66.167c59e31a8.Coremail.redstone-cold@163.com> <1976167.Np7CUZpraF@neptun.solsys.priv> Message-ID: <70407554.d4.167c68ad782.Coremail.redstone-cold@163.com> Yes, assign it a parent solved the problem . Thanks very much ! 在2018年12月19 17时56分, "Detlev Offenbach"写道: Try to instantiate your scheme handler first and keep it in a variable. Otherwise it might get collected by the Python garbage collector. See the eric web browser as an example. Am Mittwoch, 19. Dezember 2018, 09:38:58 CET schrieb Zhao Lee: > I want to implement a custom QWebEngineUrlSchemeHandler to hand custom URL > scheme 'sound', but the requestStarted() never got called , what's wrong ? > code: https://bpaste.net/show/3be4b1874aed -- Detlev Offenbach detlev at die-offenbachs.de -------------- next part -------------- An HTML attachment was scrubbed... URL: From frank at ohufx.com Sun Dec 23 10:03:53 2018 From: frank at ohufx.com (Frank Rueter | OHUfx) Date: Sun, 23 Dec 2018 22:03:53 +1300 Subject: [PySide] QComboBox - rect of actual menu vs widget area Message-ID: Hi, I am trying to draw a simple busy indicator into a QCombobox while it's being populated with items. I thought I'd use with a custom paint event that checks is a certain condition is true, and if so it will draw custom stuff in to the menu, otherwise it just does it's default thing and draw the items as usual. This is the bit I started with: class TaskWidget(QtWidgets.QComboBox):     def __init__(self, parent=None):         super(TaskWidget, self).__init__(parent)     def paintEvent(self, event):         super(TaskWidget, self).paintEvent(event)         painter = QtGui.QPainter()         painter.begin(self)         indicator = QtCore.QRect(0,0,5, event.rect().height())         painter.fillRect(indicator, QtCore.Qt.red)         painter.end() which yields this: How do I get the (rounded) rectangle of the menu itself though? I.e. I only want to draw the red bar inside the menu area that will show the items. I guess I should try to query the item view's rect via it's item delegate or something, but I can't get it right. Any help would be appreciated. Happy Christmas! Cheers, frank -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: oggomkafjjcfdfnc.png Type: image/png Size: 67579 bytes Desc: not available URL: From frank at ohufx.com Sun Dec 23 10:47:07 2018 From: frank at ohufx.com (Frank Rueter | OHUfx) Date: Sun, 23 Dec 2018 22:47:07 +1300 Subject: [PySide] QComboBox - rect of actual menu vs widget area In-Reply-To: References: Message-ID: <4e21446a-0581-e549-ca2e-0141f25015b4@ohufx.com> Here is the basic functional code (to have a QComboBox with integrated buy bar): class TaskWidget(QtWidgets.QComboBox):     """combo box with simple bar animation to indicate that the items are not ready yet"""     def __init__(self, parent=None):         super(TaskWidget, self).__init__(parent)         self.counter = 0         self.position = 0         self.indicator_width = 20         self.finished = False         self.start_anim()     def start_anim(self):         self.timer_id = self.startTimer(50)     def stop_anim(self):         self.finished = not self.finished         self.killTimer(self.timer_id)     def timerEvent(self, event):         if not self.finished:             self.counter += .2             self.position = ((math.sin(self.counter) + 1) * .5) * (self.width() - self.indicator_width)             self.update()     def paintEvent(self, event):         super(TaskWidget, self).paintEvent(event)         painter = QtGui.QPainter()         painter.begin(self)         indicator = QtCore.QRect(self.position,0,self.indicator_width, event.rect().height())         painter.fillRect(indicator, QtCore.Qt.gray)         painter.end() On 23/12/18 10:03 PM, Frank Rueter | OHUfx wrote: > Hi, > > I am trying to draw a simple busy indicator into a QCombobox while > it's being populated with items. > I thought I'd use with a custom paint event that checks is a certain > condition is true, and if so it will draw custom stuff in to the menu, > otherwise it just does it's default thing and draw the items as usual. > This is the bit I started with: > > class TaskWidget(QtWidgets.QComboBox): >     def __init__(self, parent=None): >         super(TaskWidget, self).__init__(parent) > >     def paintEvent(self, event): >         super(TaskWidget, self).paintEvent(event) >         painter = QtGui.QPainter() >         painter.begin(self) >         indicator = QtCore.QRect(0,0,5, event.rect().height()) >         painter.fillRect(indicator, QtCore.Qt.red) >         painter.end() > > which yields this: > > How do I get the (rounded) rectangle of the menu itself though? I.e. I > only want to draw the red bar inside the menu area that will show the > items. > > I guess I should try to query the item view's rect via it's item > delegate or something, but I can't get it right. > Any help would be appreciated. > > Happy Christmas! > > Cheers, > frank > > > _______________________________________________ > PySide mailing list > PySide at qt-project.org > https://lists.qt-project.org/listinfo/pyside -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: oggomkafjjcfdfnc.png Type: image/png Size: 67579 bytes Desc: not available URL: From l.yinsen at foxmail.com Tue Dec 25 08:52:11 2018 From: l.yinsen at foxmail.com (=?ISO-8859-1?B?bC55aW5zZW4=?=) Date: Tue, 25 Dec 2018 15:52:11 +0800 Subject: [PySide] Is there any plan binding Qt Gui frameworks to Lua? Message-ID: Our project need some gui programming in lua, so i wonder is there any plan for qt binding to lua just like wxLua project ? Thank you -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexander.blasche at qt.io Wed Dec 26 10:26:50 2018 From: alexander.blasche at qt.io (Alex Blasche) Date: Wed, 26 Dec 2018 09:26:50 +0000 Subject: [PySide] Is there any plan binding Qt Gui frameworks to Lua? In-Reply-To: References: Message-ID: Sorry, there are no such plans at this stage. -- Alex > -----Original Message----- > From: PySide On Behalf Of l.yinsen > Sent: Tuesday, 25 December 2018 08:52 > To: pyside > Subject: [PySide] Is there any plan binding Qt Gui frameworks to Lua? > > Our project need some gui programming in lua, so i wonder is there any plan for > qt binding to lua just like wxLua project ? Thank you