October 22, 2011

zvivered zvivered
Lab Rat
26 posts

Event called upon window resize

 

Hello,

I created a “Qt Gui Application” project with Qt creator 2.3.1

The project creates: main.cpp, mainwindow (cpp+h).

I want to add an event that will be called whenever the window is resized (with mouse).

But when I clicked ‘Go To slot …’ I did not find such an event.

Can you help ?

Thanks,
Zvika.

3 replies

October 22, 2011

Lukas Geyer Lukas Geyer
Dinosaur Breeder
2074 posts

An event is not a slot. The event you are looking for is QResizeEvent [doc.qt.nokia.com].

October 22, 2011

Andre Andre
Area 51 Engineer
6067 posts

And it will be send to QWidget::resizeEvent() which you can reimplement in your widget.

 Signature 

Looking for Qt developers to join our team @ i-Optics: https://qt-project.org/forums/viewthread/25393/

October 22, 2011

zvivered zvivered
Lab Rat
26 posts

Thanks !

 
  ‹‹ [solved] printf/scanf not working...?      [Moved] unresolved external symbol _SDL_GetError ››

You must log in to post a reply. Not a member yet? Register here!