Chrome status bar in qt

I'm not great at creating a GUI, and in general my philosophy is this: I do not create them, or I make them as simple as possible (and I convince myself that this is better for ease of use :)

For my current project, I am using Qt from Python (PyQt), and I want to start adding some GUI elements without cluttering the interface.

My idea is to create these elements as a kind of floating form widgets that appear only when necessary; almost like a status bar (and search bar) in chrome.

Is there any standard api that allows you to create such an interface?

+3
source share
1 answer

. - Chrome, QFrame , .

2 , - , , . , , . QFrame , resizeEvent .

:

void MyWindow:: resizeEvent ( QResizeEvent *) {  frame.setGeometry(0, this- > height() - frame.sizeHint(). height(), this- > width(), frame.sizeHint(). height()); }

, .

+5

Source: https://habr.com/ru/post/1748074/


All Articles