#pyqt | Logs for 2018-09-06
Back
[02:49:28] -!- anqxyr has joined #pyqt
[03:07:18] -!- kallesbar has joined #pyqt
[05:41:53] -!- Flaghacker has joined #pyqt
[05:42:02] <Flaghacker> Can you just override functions like this? https://paste.pound-python.org
[05:42:46] <Flaghacker> I have a QWidgetItem that contains an instance of this class, and where item.sizeHint() != item.widget().sizeHint(). That shoulnd't be possible, right?
[05:42:58] <Flaghacker> So maybe it does't always call sizeHint correctly.
[05:54:23] <Flaghacker> That wans't the proble: from looking at the Qt source, WIdgetItem automatically extends sizeHint up until the minimSizeHint. Dammit!
[06:02:27] -!- mintograde has joined #pyqt
[06:59:27] -!- mintograde has quit [Ping timeout: 240 seconds]
[07:34:53] -!- nitro25 has joined #pyqt
[07:35:25] -!- jthornton has joined #pyqt
[08:22:30] -!- frispete_ has joined #pyqt
[08:26:00] -!- frispete has quit [Ping timeout: 252 seconds]
[08:37:54] <altendky> Flaghacker: mostly overriding works. Mostly we all get size hint and policy stuff wrong (well, at least me)
[08:52:57] -!- Siecje has joined #pyqt
[08:59:00] <Flaghacker> altendky, Ah good to hear I'm not the only one.
[08:59:03] -!- BPL has joined #pyqt
[08:59:30] <Flaghacker> I've used a bunch of layout systems and I've never had the feeling I understood any of the layout calculation stuff.
[09:05:57] <altendky> To be flexible it has to be complicated I suppose
[09:09:44] -!- nsizemor has joined #pyqt
[09:17:09] -!- nitro25 has quit [Remote host closed the connection]
[09:20:08] -!- nitro25 has joined #pyqt
[09:55:58] -!- paulwood has joined #pyqt
[10:01:41] -!- paulwood has quit [Quit: Textual IRC Client: www.textualapp.com]
[10:16:13] -!- BPL has quit [Read error: Connection reset by peer]
[10:26:08] -!- BPL has joined #pyqt
[11:32:05] <Flaghacker> Any way to get the QScrollArea to pass the minimumsize of it's child widget though? I basically want the behaviour of the commented out lines but then for general situations: https://paste.pound-python.org
[11:44:08] <altendky> Flaghacker: inherit and override? But what are you trying to add vertical scroll to?
[11:44:39] <Flaghacker> To the 'button' is my example, in reality it's just a long GridLayout
[11:48:30] <altendky> Flaghacker: you read http://doc.qt.io ?
[11:50:05] <Flaghacker> I just found out that setting the sizepolicy to Minimum on the horizontal direction of the scrollarea works .
[11:50:23] <Flaghacker> But now there are size contrains as well? yet another hting to learn!
[11:50:57] <altendky> Yep :|
[11:55:57] <Flaghacker> Altually those are exactly what i wanted! Thanks for that.
[11:56:17] <Flaghacker> Behaviour should be the same though.
[11:57:12] <Flaghacker> I've got to run now, but thanks a lot!
[11:57:15] -!- Flaghacker has quit [Quit: Leaving]
[12:59:17] -!- Belxjander has quit [Quit: AmigaOSv4.1.6+//PowerPC native]
[13:08:49] -!- BPL has quit [Quit: Leaving]
[13:12:49] -!- Belxjander has joined #pyqt
[13:33:46] -!- Belxjander has quit [Ping timeout: 272 seconds]
[13:43:15] -!- Bjander has joined #pyqt
[13:46:37] Bjander is now known as Belxjander
[13:53:10] -!- nsizemor has quit [Quit: nsizemor]
[14:22:07] -!- jthornton has quit [Ping timeout: 240 seconds]
[15:07:17] -!- BPL has joined #pyqt
[15:56:03] -!- nitro25 has quit [Remote host closed the connection]
[16:01:27] -!- kallesbar has quit [Ping timeout: 240 seconds]
[16:20:49] -!- JT-Shop has joined #pyqt
[16:54:20] -!- mintograde has joined #pyqt
[16:59:32] -!- daegontaven has joined #pyqt
[17:39:03] -!- anqxyr has quit [Read error: Connection reset by peer]
[18:17:03] -!- Siecje has quit [Quit: Leaving.]
[18:26:00] -!- JT-Shop has quit [Read error: Connection reset by peer]
[19:16:24] -!- mandeep has joined #pyqt
[19:21:54] -!- BPL has quit [Quit: Leaving]
[19:32:10] -!- daegontaven has quit [Quit: Connection closed for inactivity]
[19:38:01] -!- mandeep has quit [Quit: Leaving]
[20:32:20] -!- daegontaven has joined #pyqt
[22:42:09] -!- daegontaven has quit [Quit: Connection closed for inactivity]
[23:51:34] -!- mintograde has quit [Ping timeout: 246 seconds]