2

I have made my own form in Qt Designer and connected it to QGIS. One of my fields is a relation reference. But the text doesn't fit in the combo box. You can see it in the picture. enter image description here

I tried to change different settings in Qt Designer but it didn't help. Maybe someone can tell me how to change the size of a combo box in relation reference widget?

  • Welcome to gis.stackexchange! Please edit the title of your question to include enough information for future visitors to be able to find this thread when looking for the same problem. – underdark Jun 1 '16 at 19:33
  • 1
    What Settings did you try, did you learn ALL about Layouts before playing with Widgets? – Jochen Schwarze Jun 4 '16 at 6:03
  • I've tried to change geometry width and height. I made my form size on all window. But some of my relation reference widget's combo boxes are too big and some too small. And all of them displayed in one line. It will be great to displayed combo boxes in several lines. About setting. I also tried change size Policy, min and max size of iteam, size of Increament and so on. – bable Jun 5 '16 at 8:16
1

In the Property Dialog of the Widget change the Size Policy for Horizontal to Expanding and the "Drop Down" bit will get bigger as it is dragged. Although dragging it will make the "Drop Down" bar longer it will never exceed half of the total length of the whole tool.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.