Skip to Content
Computer Vision with OpenCV 3 and Qt5
book

Computer Vision with OpenCV 3 and Qt5

by Amin Ahmadi Tazehkandi
January 2018
Intermediate to advanced content levelIntermediate to advanced
486 pages
11h 28m
English
Packt Publishing
Content preview from Computer Vision with OpenCV 3 and Qt5

Cascading

You can set style sheets for the whole application, parent widgets, or child widgets. In our preceding examples, we simply set the style sheets for two child widgets. The styling of each widget will be decided on the cascading rule, which simply means that each widget will also get the style rules set in parent widget or the application if there are any style sheets set for them. We can use this fact to avoid redundantly setting the style rules that are common to the entire application or a specific window in each widget over and over again.

Now, let's try the following style sheet in MainWindow, which combines all you've learned in a single and simple example. Make sure you delete all previously set style sheets (for the two

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering OpenCV 4 - Third Edition

Mastering OpenCV 4 - Third Edition

Roy Shilkrot, David Millán Escrivá
Hands-On Computer Vision with TensorFlow 2

Hands-On Computer Vision with TensorFlow 2

Benjamin Planche, Eliot Andres
OpenCV 4 with Python Blueprints - Second Edition

OpenCV 4 with Python Blueprints - Second Edition

Dr. Menua Gevorgyan, Michael Beyeler (USD), Arsen Mamikonyan, Michael Beyeler

Publisher Resources

ISBN: 9781788472395Supplemental Content