#pyqt | Logs for 2020-07-14

Back
[03:30:17] -!- roussinm has quit [Quit: WeeChat 2.3]
[04:42:06] -!- cottoneyejim has joined #pyqt
[06:09:36] -!- [6502] has joined #pyqt
[06:10:16] <[6502]> Hello... is it possible to access QImage pixels as a Python `array.array` object?
[06:15:45] -!- lemoldu has joined #pyqt
[06:23:00] -!- altendky has quit [Ping timeout: 256 seconds]
[06:24:47] -!- altendky has joined #pyqt
[06:34:34] -!- TheNewbie has joined #pyqt
[06:46:25] -!- Belxjander has quit [Ping timeout: 264 seconds]
[06:46:39] -!- Bjander has joined #pyqt
[06:47:14] Bjander is now known as Belxjander
[07:12:30] -!- [6502] has quit [Remote host closed the connection]
[07:23:22] -!- cottoneyejim has quit [Ping timeout: 256 seconds]
[07:23:44] -!- cottoneyejim has joined #pyqt
[07:36:24] -!- cottoneyejim has quit [Ping timeout: 256 seconds]
[07:51:04] -!- cottoneyejim has joined #pyqt
[07:56:18] -!- honigkuchen has quit [Remote host closed the connection]
[08:20:12] -!- frispete_ has quit [Ping timeout: 256 seconds]
[08:34:56] -!- frispete has joined #pyqt
[08:42:39] -!- cottoneyejim has quit [Ping timeout: 256 seconds]
[08:43:02] -!- cottoneyejim has joined #pyqt
[10:01:56] -!- JanC_ has joined #pyqt
[10:02:11] -!- JanC has quit [Killed (wolfe.freenode.net (Nickname regained by services))]
[10:02:11] JanC_ is now known as JanC
[10:09:40] -!- roussinm has joined #pyqt
[10:35:33] -!- iTommix has joined #pyqt
[10:36:19] <iTommix> Hi @all. I’m using pyqt and want to change the sliders for touchscreen (bigger). The horizontal slider works perfect, but the vertical one becomes unresponsible and i ask myself whats wrong? here is my code https://bpa.st
[10:37:39] <altendky> did you try just setting the minimum width and not having style sheets? the less messing around the better. side note, why the arguments being passed to super?
[10:39:19] <iTommix> minimum width for what exactly? The css should be global, like in my project. i want to have all sliders the same
[10:39:52] <iTommix> altendky: btw: did you try my code?
[10:40:14] <altendky> i did not yet. but set the minimum width for the thing you want wider
[10:40:29] <altendky> it may not be a great final solution but could be a relevant exploration of your issue
[10:40:52] <altendky> and the more you fiddle from defaults the more likely you run into issues
[10:40:58] <iTommix> you mean something like „slider.handle.minWidth“ ?
[10:41:23] <altendky> that seems unlikely to be a thing but sure?
[10:42:42] <iTommix> i guess you can modify this what i need only via css like iv’e done…
[10:43:05] <altendky> as mentioned, perhaps this isn't a 'real' solution. but perhaps it is relevant for debugging
[10:43:39] <iTommix> i just wonder about the difference between both sliders. one works, the other not
[10:43:49] <altendky> awesome, pyqt4 isn't even available in latest ubuntu lts...
[10:43:55] <altendky> ok?
[10:44:20] <iTommix> like i told you, in pyqt5 its the same behavior
[10:44:38] <altendky> but i had to change the imports around so i figured i'd try to just get pyqt4 first
[10:44:43] <altendky> and no, it's not just 4 vs 5
[10:44:55] <iTommix> replace the import with „from PyQt5 import QtWidgets as QtGui,QtCore“ and it works without changes in pyqt5
[10:45:06] <altendky> yes, i got it running
[10:45:12] <altendky> your claim was still wrong, but whatever
[10:45:18] <iTommix> you see… strange, yes?
[10:45:24] <altendky> i can't drag the vertical. i can click next to it to get it to move
[10:45:50] <altendky> iTommix: now, delete your tweaks one by one until it works. make a minimal example with only what is required to break it.
[10:46:24] <Avaris> what's with the negative margins?
[10:46:37] * altendky was just finally looking at the code...
[10:47:22] <iTommix> Avaris: you can change it to positive as well, i guess it will not change anything
[10:47:47] -!- Belxjander has quit [Ping timeout: 240 seconds]
[10:48:27] -!- Belxjander has joined #pyqt
[10:48:46] <iTommix> altendky: yes, in pyqt5 i can click near the handle and it will move. thats the difference. but normally you pick the handle itself and change the value. and even that ist strange in pyqt5: it moves alone in one direction till the end
[10:49:09] <altendky> so it's not exactly the same in 4 and 5?
[10:49:41] <iTommix> no, but both not what i expect if i pick that handle
[10:49:54] <altendky> then don't say they are the same :[
[10:50:05] <altendky> details regularly matter
[10:50:07] <Avaris> sure it does. your vertical one has positive margin. so the "box" is smaller
[10:50:58] <iTommix> Avaris: i will change…
[10:52:14] <altendky> deleting the margin does seem to help
[10:52:51] <Avaris> they should both be negative in fact
[10:53:30] <iTommix> Avaris: Great! Thank you… that does the trick. i was sure i checked this already
[10:53:37] <Avaris> positive margin makes the "slider box" effectively 0 width. so you can't click on it. you can only click on the empty scroll area to jump
[10:55:24] <iTommix> sometimes you become blind after hours to solve things.
[10:56:08] <altendky> That's what truly minimal examples are for, but yes
[10:57:36] <iTommix> yes, but my code you couldn’t minimze anymore… just try to comment the styles for the handle, not the groove. the handle will be gone… anyway, thaks altendky and Avaris
[10:58:04] <altendky> iTommix: i cut some stuff out. and when i cut out the margin i noticed it worked ok. so it lead right to it
[10:59:07] <iTommix> ah… ok, you meant inside css…
[10:59:19] <altendky> yes, everything minimal
[10:59:29] <altendky> not just the stuff you imagined was important
[11:30:16] -!- iTommix has quit [Quit: iTommix]
[12:20:20] -!- sazawal has joined #pyqt
[13:12:59] -!- cottoneyejim has quit [Ping timeout: 240 seconds]
[13:25:43] -!- cottoneyejim has joined #pyqt
[14:11:39] -!- TheNewbie has quit [Quit: Leaving]
[14:55:35] -!- lemoldu has quit [Quit: Leaving]
[16:52:28] -!- BPL has joined #pyqt
[16:53:36] -!- honigkuchen has joined #pyqt
[17:14:58] -!- sazawal has quit [Quit: Leaving]
[17:17:01] -!- necro has joined #pyqt
[18:50:59] -!- cottoneyejim has quit [Ping timeout: 240 seconds]
[19:51:14] -!- Belxjander has quit [Ping timeout: 240 seconds]
[20:00:09] -!- roussinm has quit [Quit: WeeChat 2.3]
[20:04:51] -!- Belxjander has joined #pyqt
[20:26:45] -!- BPL has quit [Quit: Leaving]