Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QLineEdit does not want to expand

QLineEdit does not want to expand

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 3 Posters 830 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.
  • P Offline
    P Offline
    peter-70
    wrote on last edited by
    #1

    Inside of my QGridLayout I have a QLineEdit, at the second column.
    It is a toolbar, so I cut or put elements into it, at the begin of runtime.

    When I have only one button in the first column, and a QLineEdit in anyone column,
    then I set the SizePolicy, Stretch of the widget and so on... but nothing works!

    The QLineEdit stay always in his initial size.

    What I must do, to expand the QLineEdit to maximum of available place?

    jsulmJ 1 Reply Last reply
    0
    • P peter-70

      Inside of my QGridLayout I have a QLineEdit, at the second column.
      It is a toolbar, so I cut or put elements into it, at the begin of runtime.

      When I have only one button in the first column, and a QLineEdit in anyone column,
      then I set the SizePolicy, Stretch of the widget and so on... but nothing works!

      The QLineEdit stay always in his initial size.

      What I must do, to expand the QLineEdit to maximum of available place?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @peter-70 Do you have a third column?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • P Offline
        P Offline
        peter-70
        wrote on last edited by
        #3

        Yes, I have several columns

        1 Reply Last reply
        0
        • dheerendraD Offline
          dheerendraD Offline
          dheerendra
          Qt Champions 2022
          wrote on last edited by
          #4

          Can you give us workable sample code ? We can check & revert to you.

          Dheerendra
          @Community Service
          Certified Qt Specialist
          http://www.pthinks.com

          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