Results 1 to 1 of 1

Thread: Line heights in QGridlayout

  1. #1
    Join Date
    Sep 2016
    Posts
    1

    Default Re: Line heights in QGridlayout

    Hello everybody,

    I have the following problem:

    In a QScrollArea is a QSplitter. In this splitter 2 widgets are added. The left widget contains a number of QLabels in a grid layout, which are vertically oriented. The right widget contains some QLineEdit, combo boxes, and QTextEdits. My problem is that I do not get the labels on the left at the height of the object on the right. Is something difficult to describe, so I have a graphic depicted:

    dialog.gif

    The splitter must be unfortunately, since in the label longer texts can stand and one must also be able to reduce. Do you have an idea how I can solve this or do you have a suggestion how I could solve that better?

    Thanks and regards
    uha


    Added after 1 6 minutes:


    Problem solved. The QLabels miss a setFixedHeight with the height of the right side and then it goes.
    Last edited by uha; 26th July 2017 at 08:48.

Similar Threads

  1. QLineEdit and QPushButton heights
    By ecir.hana in forum Qt Programming
    Replies: 11
    Last Post: 11th April 2013, 04:24
  2. different row heights in QTreeView
    By Qiieha in forum Qt Programming
    Replies: 2
    Last Post: 3rd October 2012, 16:08
  3. QTableView keeping row heights
    By baray98 in forum Qt Programming
    Replies: 0
    Last Post: 6th May 2011, 06:23
  4. Delete a QGridLayout and New QGridLayout at runtime
    By sabeesh in forum Qt Programming
    Replies: 1
    Last Post: 5th November 2007, 14:01
  5. QTableView row heights
    By Brandybuck in forum Qt Programming
    Replies: 8
    Last Post: 7th November 2006, 04:08

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.