#pyqt | Logs for 2018-09-19
Back
[00:07:30] kdas_ is now known as kushal
[01:56:49] -!- necrose99 has quit [Read error: Connection reset by peer]
[02:56:23] -!- anqxyr has joined #pyqt
[06:29:11] -!- mintograde has joined #pyqt
[06:38:23] -!- anqxyr has quit [Ping timeout: 252 seconds]
[07:16:43] -!- mintograde has quit [Ping timeout: 245 seconds]
[07:43:00] -!- nitro25 has joined #pyqt
[08:05:41] -!- kushal has quit [Quit: ZNC 1.7.0 - https://znc.in]
[08:06:05] -!- kushal has joined #pyqt
[08:07:31] -!- BazookaTooth has quit [Ping timeout: 256 seconds]
[08:08:17] -!- BazookaTooth has joined #pyqt
[08:23:07] -!- frispete_ has joined #pyqt
[08:26:21] -!- frispete has quit [Ping timeout: 252 seconds]
[10:42:08] -!- Siecje has joined #pyqt
[10:55:49] -!- frispete_ has quit [Quit: Konversation terminated!]
[11:00:01] -!- frispete has joined #pyqt
[12:25:55] -!- BazookaTooth has quit [Ping timeout: 256 seconds]
[12:31:35] -!- BazookaTooth has joined #pyqt
[12:32:37] -!- Darkness`` has joined #pyqt
[12:34:32] <Darkness``> hi, anyone here? i need to get a qscrollarea > qwidget > qformlayout dynamically filled with qlables
[12:34:57] <altendky> Darkness``: what's the issue?
[12:35:14] <Darkness``> but im not able to get this widget expanding to the size of the scrollarea (fixed size works but then its not scrollable)
[12:37:28] <Darkness``> the best resolution so far i got to work, was with an qwidget of size 100x30 (i dont set this size)
[12:39:15] <Darkness``> oh and QSizePolicy.<whatever> has no effect
[12:39:50] <altendky> Darkness``: this came up a couple weeks ago. i'm looking but i think it related to http://doc.qt.io
[12:40:53] <altendky> http://doc.qt.io
[12:44:47] <Darkness``> k thx ill try it
[12:45:21] <altendky> Darkness``: iirc they wanted the width locked to the scroll area but the height not so it could scroll vertically
[12:46:35] <altendky> so their solution involved sizpolicy horizontal set to minimum for the scroll area
[12:47:00] <altendky> Darkness``: their not on now or i'd see if they had some code to share
[12:57:14] <Darkness``> its a bit weird that on qt designer it looks like expected but on pyqt it will not work
[14:01:38] <Darkness``> altendky thx again, it works now
[14:01:51] <altendky> Darkness``: good deal. can you share the setup code for that?
[14:52:51] <Darkness``> hm i can write a short version only with the scroll area
[14:53:20] <altendky> Darkness``: it's probably just a couple config lines? i don't need a whole runnable, just want to see what the settings are
[14:53:32] <altendky> unless you want to make a full example :]
[15:00:35] <Darkness``> the scrollarea is a small part of 1700 LOCs so a full example will not helpfully
[15:14:32] -!- ralsina has joined #pyqt
[15:50:54] -!- kallesbar has quit [Ping timeout: 264 seconds]
[15:52:21] -!- necrose99b has joined #pyqt
[15:58:27] -!- nitro25 has quit [Remote host closed the connection]
[15:59:17] -!- mandeep has joined #pyqt
[16:19:10] -!- mintograde has joined #pyqt
[16:23:04] <Darkness``> altendky any suggestion for a pastecode page?
[16:23:20] <altendky> Darkness``: i personally like gist.github.com
[16:23:37] <altendky> multiple files, highlighting *shrug*
[16:24:12] <hazzy-m> http://dpaste.com is also good for temp pastes
[16:24:22] <Darkness``> but acc required, right?
[16:24:45] <hazzy-m> acc?
[16:24:48] <altendky> Darkness``: perhaps now. it's not a big deal
[16:24:48] <hazzy-m> no
[16:25:14] <altendky> hazzy-m: afaik they added that a few months ago
[16:27:27] <hazzy-m> altendky: Sure enough, that's a shame. Must have had problems with it being abused
[16:28:08] <Darkness``> http://dpaste.com
[16:31:15] <Darkness``> for pasting a short script the deal is to big :)
[16:31:32] <altendky> Darkness``: it's not in a layout, just sort of floating there. what was it you were trying to control?
[16:32:01] <Darkness``> do you know how long i need to get that shit to work?
[16:32:44] <Darkness``> its a working example
[16:32:58] <altendky> Darkness``: it's pretty easy to get stuck on something for quite awhile, i know. i'm just not clear what it is that it's doing since it all seems to be fixed size
[16:33:39] <altendky> Darkness``: you wanted the blue to track the width of the scroll area?
[16:34:11] <Darkness``> yeah a main layout is planned in future
[16:35:15] <Darkness``> and yeah the biggest problem was to get the form part to expanding
[16:36:15] <Darkness``> because it has a default fixed with which cuts of the text in the real gui
[16:36:29] <Darkness``> it seems to have a default fixed with
[16:38:38] <Darkness``> form part = formpart of the qformlayout
[16:38:40] -!- BPL has joined #pyqt
[16:39:09] <Darkness``> the lablepart is dynamically growing to the inserted text
[16:43:25] <altendky> Darkness``: i think you were basically just setting the size, not making it track
[16:52:25] <Darkness``> nope definitly not
[16:52:39] <altendky> Darkness``: definitely not what?
[16:53:37] <Darkness``> that i have set a to small size which caused the problem
[16:57:24] <Darkness``> in a short period of the last hours i set the size manually to the same as the scrollarea but on the gui it was cut off after the half of the size
[17:14:20] <Darkness``> but yeah thx4help
[17:14:42] <altendky> Darkness``: i'm still fiddling, trying to figure it out
[17:16:50] <Darkness``> yeah me too ^, but no luck
[17:18:32] <Darkness``> maybe i was a problem with a assigned parent object
[17:18:35] <Darkness``> it
[17:18:50] <altendky> Darkness``: i dropped all that :] i just .setLayout() etc
[17:19:53] <Darkness``> because that was a detail i changed multiple times, for ever example i found :)
[17:23:33] <Darkness``> i got it in the real prog ^
[17:23:50] <altendky> Darkness``: in a layout that can resize?
[17:28:10] <Darkness``> uh maybe a timing problem
[17:29:03] <altendky> Darkness``: i already am adding stuff in a timer-triggered function so the event loop is running
[17:30:51] <altendky> Darkness``: anyways, gotta run. i'll let you know if i get something working later
[17:30:54] <altendky> good luck
[17:38:03] <Darkness``> if i fid a way to access the widgets within the formlayout i know if that was the problem
[17:52:32] <Darkness``> comment out #34 and #40
[17:53:07] <Darkness``> write a for at the end which sets a text to the Labels
[17:53:25] <Darkness``> and you have a labels with a fixed with
[17:53:30] <Darkness``> width
[17:59:15] -!- Siecje has parted #pyqt
[18:00:23] <altendky> Darkness``: you don't want fixed width, do you?
[18:35:59] <Darkness``> no thats the way to reproduce my old problem
[18:38:01] <Darkness``> and if you than colirze the background of the child widget you can see a (default) fixed width
[18:38:07] <Darkness``> colorize
[18:38:47] <Darkness``> which is maybe a bug because in qt designer the child widget is maximised with the sizepolicy expanding option
[18:51:45] <altendky> Darkness``: https://gist.github.com
[18:52:03] <altendky> Darkness``: http://doc.qt.io
[18:53:55] <altendky> Darkness``: also, i'm pretty sure this does nothing `b.sizePolicy().setHorizontalPolicy(7)`. you have to set the modified policy back onto the widget. `policy = b.sizePolicy(); policy.setHorizontalPolicy(thepolicy); b.setSizePolicy(policy)` (i think)
[18:58:06] <Darkness``> yeah i dont know that i had insert few weeks ago, i never checked if that does anything :D
[19:01:32] <altendky> Darkness``: did you try my code?
[19:07:12] -!- mintograde has quit [Quit: Leaving]
[19:08:38] <Darkness``> yeah but sry i forgot some details to say
[19:09:29] <Darkness``> thats a bigger gui the scrollarea is only a small part
[19:10:08] <Darkness``> thats why i used setGeometry
[19:13:10] <altendky> Darkness``: doesn't matter stick that in whatever
[19:14:53] <Darkness``> but why this works and my old one not?
[19:16:20] <altendky> Darkness``: I linked the docs for the function that did it
[19:16:34] <altendky> Well, property
[19:17:08] -!- mintograde has joined #pyqt
[19:18:14] <Darkness``> the resizable i tryed too because it was in a example, it has not worked ^
[19:18:34] <Darkness``> but k now i have two solutions, thx :)
[19:18:35] <altendky> Darkness``: you were probably messing it up with other attempts
[19:18:45] <altendky> Darkness``: what is the other one?
[19:18:49] <Darkness``> yes
[19:20:56] <altendky> Darkness``: the thing you linked before only set the size at startup. It didn't adapt at all
[19:21:10] <Darkness``> line #40 in http://dpaste.com
[19:21:57] <altendky> Darkness``: I only tried myself because that code didn't really work
[19:22:18] <altendky> Darkness``: put it in a layout and resize stuff
[19:22:51] <altendky> Darkness``: line 34 is just seeing the width once
[19:23:57] <Darkness``> the scrollbar in a layout?
[19:24:19] <altendky> Darkness``: hmm?
[19:24:48] <altendky> Darkness``: seeing the width to a value you calculated at that one point in time. As soon as any size adjusts, it'll be wrong
[19:25:47] <altendky> *setting
[19:26:36] <Darkness``> the size of the gui is not changable atm, so the width of the scrollbar at that point is the final one
[19:27:06] <altendky> Darkness``: don't design like that. It won't handle various fonts and screen scalings etc
[19:27:15] <Darkness``> i know :)
[19:27:26] <altendky> Darkness``: why are you doing it then?
[19:28:24] <Darkness``> i started the programm with gtk2 got to gtk3 and then to qt, and at that point i dosnt know anything about layouts :)
[19:29:14] <Darkness``> and than simply no time to change the whole ui
[19:29:16] <altendky> Darkness``: welp, get started. :]
[19:29:50] <Darkness``> welp?
[19:31:27] <altendky> Darkness``: no particular meaning, just an interjection like 'well' could be
[19:37:31] <Darkness``> yeah someday... in future ^
[23:02:18] -!- mintograde has quit [Ping timeout: 252 seconds]
[23:09:19] -!- BPL has quit [Read error: Connection reset by peer]