verticaltoolbar | Vertical Toolbar , a Firefox extension | Browser Plugin library
kandi X-RAY | verticaltoolbar Summary
kandi X-RAY | verticaltoolbar Summary
Vertical Toolbar, a Firefox extension.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of verticaltoolbar
verticaltoolbar Key Features
verticaltoolbar Examples and Code Snippets
Community Discussions
Trending Discussions on verticaltoolbar
QUESTION
Whenever I resize the window (a QDialog), Reference Viewer and Selected Viewer (subclasses of QScrollArea) should have the exact same size at all time, even after a resize event. However, once out of twice, I get a size 1 pixel smaller for the Selected Viewer (QScrollArea widget on the right). By once out of twice, I mean every odd pixel count.
It seems that the QGridLayout is forcing the right-most panel to that smaller size, probably due to rounding down the value of the space still available.
I use a QGridLayout because I need the toolbar to stay aligned in the center between the panels and it works well.
Here is a screencast demonstrating the problem: you can see the scrollbar showing up every-time the Selected Viewer (panel on the right) is resized one pixel shorter in width compared to the panel on the left.
Here is mostly what I'm doing:
...ANSWER
Answered 2020-Jun-21 at 14:35I assume that problem is with ScrollArea being used for referenceImageViewer, so in each resize event actual referenceImageViewer is trying to add a horizontal scrollbar to itself.
As a solution you can
- Set referenceImageViewer's adjust policy to (QAbstractScrollArea.AdjustIgnored or QAbstractScrollArea.AdjustToContents).
- Try to use Widgets instead of ScrollAreaImageViewer instances in gridLayout, and then adding ScrollAreaImageViewer inside that widgets.
Edited.
There must be difference between width of 1st and 3rd widgets as long as ToolBar's width is fixed. E.g when window width is 501 and toolbar width is fixed at 20 auto alignment can't equally divide remaining 481 pixels in a half..
As a solution your toolbar must be resizable too. For reducing ToolBar width changes you can increase 1st and 3rd column stretch in GridLayout for example to value 8, and set 2nd column stretch to 1, so layout will automatically adjust width of each column.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install verticaltoolbar
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page