Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Call for Presentations - Qt World Summit

    Qt and layout problems

    General and Desktop
    4
    8
    1941
    Loading More Posts
    • 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.
    • T
      tucnak last edited by

      I can't layout items in layout.
      "LINK (screenshot)":http://xmages.net/i/3283070

      I want my tablewidget fit when window size is changing, so I created layout. When I am changing window size, my layout not changing size.

      Maybe I am not using it correctly.

      1 Reply Last reply Reply Quote 0
      • A
        andre last edited by

        You have to make sure that:

        Every layout has been set on a QWidget (using QWidget::setLayout) or another layout

        Every widget is in a layout

        That needs to be true all the way up to the top level widget.

        1 Reply Last reply Reply Quote 0
        • C
          Chris H last edited by

          In particular, make sure you have set the central widget of your main window (if you are using a QMainWindow) or set the layout for your dialog, if using QDialog. Are you using Designer to lay out the widgets, or doing it by hand?

          1 Reply Last reply Reply Quote 0
          • T
            tucnak last edited by

            Yes, I've done all that. Layout have to fit sizes of all widgets in him when window size is changing. But in my case, it doesn't working.

            1 Reply Last reply Reply Quote 0
            • T
              tucnak last edited by

              "LINK (screenshot)":http://xmages.net/i/3283070

              There is screenshot of my Designer.

              1 Reply Last reply Reply Quote 0
              • A
                andre last edited by

                "It doesn't work" is not enough to diagnose your problem. However, not that many, many people are using Qt's layouts with great success. So, it is more likely that you are missing a step, than that Qt doesn't work correctly.

                1 Reply Last reply Reply Quote 0
                • A
                  andre last edited by

                  There is no layout for the top level dialog, I think.

                  1 Reply Last reply Reply Quote 0
                  • B
                    broadpeak last edited by

                    [quote author="Andre" date="1325084252"]There is no layout for the top level dialog, I think. [/quote]

                    I see the same!

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post