Unsolved how to move the cancel button in QProgressDialog?
-
my progress dialog looks like this:
no matter what i try, i can not seem to get that darn'd cancel button to move. how can i move it down so the dialog looks more elegantly laid out? -
Hi
Is there a stylesheet on it?You could use FindChild to get a pointer to it and use move() but
I wonder if it's in a layout and hence that would never work.You could use
https://doc.qt.io/qt-5/qobject.html#dumpObjectTree
and see if its in a layout. -
that was the first thing i tried. calling move does nothing because there is a private layout that ignores where you manually put things
-
@davecotter
Ok. If you apply no stylesheet is the button then aligned better?
I wonder if it adds some sort of spacing since the layout should
align them to the right and its an odd space after the button. -
If I apply no stylesheet, then it uses a standard macOS progress bar which is much thinner vertically so the spacing looks better. I would expect the spacing due to the layout to compensate for the vertical size when I change it using the style sheet.