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. QWidget::showNormal()
Forum Updated to NodeBB v4.3 + New Features

QWidget::showNormal()

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 1.3k 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.
  • D Offline
    D Offline
    dxdws
    wrote on last edited by dxdws
    #1

    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
    
    mrjjM 1 Reply Last reply
    0
    • D 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
      
      mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @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
      0
      • mrjjM mrjj

        @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 Offline
        D Offline
        dxdws
        wrote on last edited by dxdws
        #3

        @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
        0

        • Login

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