ChatCrawlersearch across public Telegram Open the app
Q

Qt for Python (PySide/Shiboken)

6 July 2020
2020-07-06×
6 July 2020
C
Jim both the painteditem and the wiki link patches have already a +2, so feel free to click on "submit" to merge them. On the briefcase tutorial, we are waiting for someone from the documentation team to review it and we will be done :)
Фотография
click to show
J
should I hit "stage" to get the submi button ?
I can take care of the rest
I reverted it, because I didn't notice there was some touching around the submodule
C
ah! I can move it too...duh! don't worry about then :)
I fucked up the merges on the wrong branches xD
Mondays 🥳🥳🥳🥳
and since you see there some pyside-tools changes
I would need to cherry pick and remove the submodule changes
I hope you are fine with it
so once that's approved, I will click on 'submit' if you don't mind
after some time we will do a 5.15 -> dev merge, so your patch will remain
C
(just wanted to do some story telling, to explain my mistake, and the solution)
J
THank for all your explanation. just submit all if needed. I swear my next contribution will be lot less messy 😂😂
(which makes sense!)
but since we are working on Qt 6 already, we are using dev for that
so that's why we advise to merge on 5.15 for fixes and small doc features or examples
C
and I was on automatic pilot mode, so I just proceed as always :P
D
Guys, I have a QHBoxLayout with 3 widgets, I wanted to resize the 2 last widgets when I resize one, but I tried to use resize and didn't work
F
Should those be resizable by the user? If so, you might want to use a QSplitter instead?
F
ah, I see - the point of a QHBoxLayout (or any layout) is that it manages your widget's sizes, so I don't think this will work
F
what you'd probably need to do is to give the widget a custom sizeHint method (and perhaps also use self.setSizePolicy accordingly) so that the widget tells the layout "I want exactly as much space as the icons take, not more" if it's collapsed
If you want to collapse stuff like this I'd always put things in a separate widget that I can show/hide
the parent layout would handle resizing then
Ë
You could also try .setMaximumWidth() to the toolbox
F
ah, setMaximumWidth() might be an easier solution, I wasn't aware of that!
C
to have this idea of "collapsable" menu
let me record a video
GIF
hide-show.mp4 · 42 KB · click to show
C
I have it on a menu, because I was just playing around 😆but it would make more sense to have it with a button on the same left side.
but I just added that part on the github repo if you want to use it
D
Starters >>> Finishers
well, when I have an idea I write a prototype 😆but yeah...never really finish it. I have so many other private repos
that was one of them, but just made it public, since I guess it could be useful for you and others here
I have another one, more like a drawer widget, but for that I'm writing a tutorial for PySide
so hopefully it will be finished soon
C
GIF
drawer.mp4 · 23 KB · click to show
the trick was to create that PushButton floating and moving it on 0,0
C
and then the other widget that uses the menu is over the background widget
it's just related to "layouts"
so let's replace "floating" for "layout-less"
if you move a widget to a position where another widget is located, it will appear "on top of it"
C
so that's what is happening with the side menu
ok. I was using a GridLayout , arranged it in Designer side by side and then in code removed the layouts and added them back to the same grid area
C
sounds like another solution too
Ë
Nice to have would be a dedicated method. With some kind of z-index.
Ë
DinoInteresting
if you wanna test it. Its implemented in another project this one does not have ui recompile
I never used ui before, my boss wants everything without .ui files, I don't know why
Calendar: July 2020
Archive by month
Open in Telegram Каталог площадок Искать в ChatCrawler

A snapshot of an open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · What we do not do · Remove a page · Catalog