Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Bug at QTabWidget / QWidget resizeEvent ?
Qt 6.11 is out! See what's new in the release blog

Bug at QTabWidget / QWidget resizeEvent ?

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 3 Posters 904 Views 2 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.
  • W Offline
    W Offline
    Wolff
    wrote on last edited by Wolff
    #1

    Hi!

    Since versions up to Qt 5.12.0 , all my Widget and Tab Widgets enter in a Infinite resizeEvent....

    Becouse i have a lot of Scatter Graphics and Charts on my TabWidget , everytime o open the system all the charts and graphics start to recelculate their sizes causing performance impacts.

    This is a problem for me , since i suppose the resizeEvent only happen when we resize the window...

    Anyone know if the things change about this? This is a correct behaviour on the Widgets now?

    PS:. I debbug the code some more times and i detect another strange behaviour. this infinite resize event happen and the size of the screen are being changed too!

    Kind Regards.
    Wolff

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      Could you test with Qt5.13 and see if still happens ?
      Also what platform ? windows/linux/mac?

      As far as i know, nothing was changed regarding when resizeEvent is called.

      1 Reply Last reply
      0
      • W Offline
        W Offline
        Wolff
        wrote on last edited by
        #3

        Hi, Yes.

        I test the same program with all versions since 5.11.3 , and in all versions after 5.11.3 (5.12.x and 5.13.0) this behaviour happen.

        I´m using the Windows Plattform and using MinGW.

        The only difference related to plattform is the compiler being used, when in the 5.11.3 version i use MinGW 530 and in the other versions the compiler MinGW 730 are being used.

        Kind Regards.
        Wolff

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi,

          Can you provide a minimal compilable example that reproduces that behaviour ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          2
          • W Offline
            W Offline
            Wolff
            wrote on last edited by
            #5

            Hi SGaist!

            I´m Trying to do that, becouse to reproduce the behaviour i need build a new CWindow with two docking QTabWidgets (One for the Left and Other as Central Widget).
            My problem are focused on the Central Docking Widget where i have 4 Widgets on the TabWidget.

            I´m receiving many strange behaviours from it, listed below:

            • When i click on the tabs that have QCharts,Q3DScatter3DGraphics , the resizeEvent of the QMainWindow is estimulated.
            • When i implement the resizeEvent of the Widgets involved (QMainWindow and TabWidgets) the behaviour changes.

            Another strange detail is about the documentation of the QTabWidget, where tell us to not provide a Parent Pointer in the TabWidgets.
            Usually i not code myself this events and on the initialization for all Widgets i pass the Parent Pointer this.

            So i believe there is something related with the treatment being made internally by Qt
            whith the parent/child pointers, ore something like that.

            I only post this topic here becouse if i compile my system in the older version, the system works like a charm... :)

            When i finish the Prototype i send here , ok?

            Kind Regards.
            Wolff

            1 Reply Last reply
            0
            • W Offline
              W Offline
              Wolff
              wrote on last edited by
              #6

              Hi!

              I not find what cause the behaviour, but reimplementing the resizeEvent() in all the Widget "Tree" (Becouse there a lot of Widgets inside of other Widgets) , The Strange behaviours start to stop.

              So, for me i will reimplement this to not worry about it in future.

              Thanks a lot for any help anyway. ;)

              Kind Regards.
              Wolff

              1 Reply Last reply
              1

              • Login

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