Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Event called upon window resize

Event called upon window resize

Scheduled Pinned Locked Moved Qt Creator and other tools
4 Posts 3 Posters 11.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    zvivered
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lgeyer
      wrote on last edited by
      #2

      An event is not a slot. The event you are looking for is "QResizeEvent":http://doc.qt.nokia.com/latest/qresizeevent.html.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        andre
        wrote on last edited by
        #3

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

        1 Reply Last reply
        0
        • Z Offline
          Z Offline
          zvivered
          wrote on last edited by
          #4

          Thanks !

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved