#pyqt | Logs for 2019-03-21

Back
[00:45:35] -!- logs has joined #pyqt
[00:47:12] -!- mandeep has quit [Ping timeout: 246 seconds]
[01:41:36] -!- Dave_Elec has joined #pyqt
[02:05:16] -!- Dave_Elec has quit [Ping timeout: 272 seconds]
[03:38:09] -!- kdas_ has joined #pyqt
[03:38:45] -!- kushal has quit [Ping timeout: 256 seconds]
[03:46:30] kdas_ is now known as kushal
[05:46:13] -!- kallesbar_ has joined #pyqt
[06:28:55] -!- BPL has joined #pyqt
[08:08:33] -!- Dave_Elec has joined #pyqt
[08:09:56] -!- nsizemor has joined #pyqt
[08:47:32] -!- Dave_Elec has quit [Ping timeout: 245 seconds]
[08:48:47] -!- Dave_Elec has joined #pyqt
[08:56:18] -!- Dave_Elec has quit [Ping timeout: 252 seconds]
[11:20:57] -!- AbleBacon has joined #pyqt
[11:35:45] -!- mandeep has joined #pyqt
[11:58:43] -!- Siecje has joined #pyqt
[15:15:38] <altendky> i've got a qtreeview with auto scroll during drag'n'drop. the scroll is too fast and makes it hard to stop at the right place. can i set the max auto-scroll speed in code? in other programs i think the proximity to the edge is continuous (within the auto-scroll region) to adjust the speed but it seems that's not the case with qt. i'll go take a look at the source now too to see if i can find an answer...
[15:19:22] <Avaris> looks very internal
[15:19:39] <altendky> it does but https://github.com
[15:19:49] <altendky> maybe i can tweak the page steps and limit it
[15:19:56] <altendky> this is silly
[15:20:14] <altendky> makes me consider implementing it myself :[ and you know how i feel about that
[15:24:38] <Avaris> hmm, looking at that code, it starts slow and speeds up to step size?
[15:24:57] <altendky> to page step? that's what i saw so far
[15:27:01] <Avaris> heh https://github.com
[15:28:31] <altendky> so my vertical scrollbar page step defaults to 10
[15:28:38] <altendky> setting it to 1 seems to have no effect
[15:29:16] <altendky> not even marked TODO
[15:29:37] <altendky> i really think the gradient max speed would be good
[15:29:58] <altendky> maybe explicit max speed control, but only maybe
[15:30:18] <altendky> well, probably but... i think i might not use it with gradient max speed
[15:30:48] <altendky> also, scroll wheel while dragging would be nice
[15:47:56] <Avaris> altendky: weirdly obfuscated but you need to use ScrollPerPixel to get that increasing effect up to page step
[16:03:03] <altendky> one issue with my sys.excepthook-triggered exception dialog? when you are mid drag'n'drop and it pops up... things get confused
[16:05:29] <altendky> i think the scroll per pixel maybe made it a bit slower, but setting the page step still seems ineffectual
[16:06:06] <altendky> i also don't really like that any movement of the mouse resets the scroll speed
[16:07:31] -!- LoneElf has joined #pyqt
[16:07:53] <LoneElf> Anybody know of any examples of a collapsable side panel in qt, kinda like vscode's sidebar?
[16:08:21] <altendky> LoneElf: i don't know vscode, but there's QSlider
[16:08:37] <Avaris> *QSplitter?
[16:08:43] <altendky> uh... yeah, that
[16:09:05] <altendky> but i really want to wrap this https://github.com
[16:10:04] <Avaris> LoneElf: easy to write one. button one side, qwidget other side. stuff inside qwidget. button click toggles hide/show of qwidget. style button to your liking
[16:10:07] <LoneElf> Wow, that docking system looks nice. Kinda strange with all that extra padding, but cool nonetheless.
[16:11:14] <altendky> i'm pretty sure i did a horrible job of it since i want to redo the whole thing anyways ala docking but https://github.com has a button on the left to collapse the left panel
[16:11:33] <altendky> probably just write your own though. i feel like there was some 'gotcha' kinda, but mostly not
[16:12:15] <LoneElf> Cool, well thanks for pointing at some things guys :)
[16:18:03] <altendky> i had just a splitter before but as i recall it forced the overall window size to be large enough for both the left and right widgets even when the left widget was collapsed by the splitter
[16:35:31] <LoneElf> I may just go with something like the dockwidgets example. It's got the functionality I need... Not the collapsability I had wanted, but I think it would be a quick starting point.
[16:37:59] -!- mintograde has joined #pyqt
[16:38:12] <altendky> LoneElf: if you don't want a dock and just a button that hides or shows another widget, that should be pretty straightforward. horizontal layout, button in the middle (or wherever). `widget_to_hide.setVisible(not widget_to_hide.isVisible())` or somesuch on the button click.
[16:39:21] <Avaris> LoneElf: this is from ancient times: https://stackoverflow.com
[16:45:43] -!- nsizemor has quit [Quit: nsizemor]
[17:27:29] kallesbar_ is now known as kallesbar
[17:28:30] -!- Siecje has quit [Quit: Leaving.]
[17:59:04] -!- AbleBacon has quit [Quit: Leaving]
[18:16:07] -!- kallesbar has quit [Quit: Konversation terminated!]
[20:58:16] -!- BPL has quit [Quit: Leaving]
[22:45:20] -!- mintograde has quit [Ping timeout: 272 seconds]