L
L
LNK2016-08-21 16:01:12
Programming
LNK, 2016-08-21 16:01:12

How to get QTabBar size (Qt, c++)?

How can I get the size of QTabBar (green area in the screenshot)?
e92bb7c942c1474eb2af42c508395b2c.png
And how then to determine if the mouse cursor is in this area? Actually, the main task is to find out when dragging a tab whether the mouse cursor is inside the tab bar or outside it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
AtomKrieg, 2016-08-21
@AtomKrieg

tb->parent()->size()->width();

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question