Dear visitor, welcome to QtForum.org.
If this is your first visit here, please read the Help. It explains in detail how this page works.
To use all features of this page, you should consider registering.
Please use the registration form, to register here or read more information about the registration process.
If you are already registered, please login here.

How add slot and signal to exist class ?

Hi, i have a problem with adding slot (and signal, to slot work correct).
How can i add slot(and signal if is nessesery) to for example QTabWidget resize (if control change size), double click or click right button mouse ??

by the way, I think you will run into problems if you try and take widget size in widget ctor - I think Qt won't calculate all these things until widget is shown.

Anyway, I think it looks like you are doing something strange here - resizing should be done by layouts or by animation - you probably shouldn't be doing these things 'manually'

If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.