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. Locking Widgets to the form

Locking Widgets to the form

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 2.1k 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.
  • O Offline
    O Offline
    Omni_Philm
    wrote on last edited by
    #1

    Hello all,

    I am currently designing an interface in the Qt designer. Sometimes, my mouse acts funny and accidentally drags a widget that is behind the widget that I want to position.

    Basically, I am wondering if there is any way that I can lock the position of a widget in the Qt designer?

    JKSHJ 1 Reply Last reply
    0
    • O Omni_Philm

      Hello all,

      I am currently designing an interface in the Qt designer. Sometimes, my mouse acts funny and accidentally drags a widget that is behind the widget that I want to position.

      Basically, I am wondering if there is any way that I can lock the position of a widget in the Qt designer?

      JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      @Omni_Philm said in Locking Widgets to the form:

      Basically, I am wondering if there is any way that I can lock the position of a widget in the Qt designer?

      Unfortunately not. However, Ctrl+Z (or Cmd+Z on macOS) will quickly undo the wrong move.

      Sometimes, my mouse acts funny and accidentally drags a widget that is behind the widget that I want to position.

      How about using Layouts instead of absolute positioning? https://doc.qt.io/qt-5/layout.html

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      O 1 Reply Last reply
      1
      • JKSHJ JKSH

        @Omni_Philm said in Locking Widgets to the form:

        Basically, I am wondering if there is any way that I can lock the position of a widget in the Qt designer?

        Unfortunately not. However, Ctrl+Z (or Cmd+Z on macOS) will quickly undo the wrong move.

        Sometimes, my mouse acts funny and accidentally drags a widget that is behind the widget that I want to position.

        How about using Layouts instead of absolute positioning? https://doc.qt.io/qt-5/layout.html

        O Offline
        O Offline
        Omni_Philm
        wrote on last edited by
        #3

        @JKSH

        No problem, I wasn't sure if that feature was in the IDE or not. Just wanted to check.

        Thank you

        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