Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Unsolved QWidget::showNormal()

    General and Desktop
    2
    3
    845
    Loading More Posts
    • 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.
    • D
      dxdws last edited by dxdws

      Hi. I need the widget position to be set to (0, 0) before the call to the showNormal().
      Now I do so

      move (321,0);
      showNormal ();

      But move() occurs after the state of the widget is restored.

      qDebug:
      pos: 0, 0 // widget is maximized
      pos: 321, 123 // call the showNormal()
      pos: 321, 0 // move (321, 0)  call after widget is normal
      
      mrjj 1 Reply Last reply Reply Quote 0
      • mrjj
        mrjj Lifetime Qt Champion @dxdws last edited by

        @dxdws
        Hi
        If the window is maximized, im not sure move can be applied.
        So it might cache it just like resize when its not shown yet.

        D 1 Reply Last reply Reply Quote 0
        • D
          dxdws @mrjj last edited by dxdws

          @mrjj I need to hide the flicker effect from going to 0 vertically, when the window is restored to its original state.

          showMaximized()
          showNormal()
          move(xPos, 0)

          1 Reply Last reply Reply Quote 0
          • First post
            Last post