Qt Forum

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

    Call for Presentations - Qt World Summit

    Widget geometry problem

    Mobile and Embedded
    2
    3
    2179
    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.
    • M
      mindomobile last edited by

      Hey guys

      OK. So the problem I'm facing with latest QT SDK (qt 4.7.4) is that when I arrange my GUI elements with QT designer as I used to do before (using vertical and horizontal layouts) I can no longer get the width and height properties of those GUI elements for mobile simulator and desktop builds. What is more geometry() method does not seem to work ether. All I get is QRect(0,0 100x30) for every GUI component - buttons, inputs or QGraphicsView, I even took a pain to measure the size of these components using screenshot & photoshop its obvious something is not right.

      Any ideas?

      Thanks

      Mobile application development | <a href="http://mindomobile.com">mindomobile.com</a>

      1 Reply Last reply Reply Quote 0
      • Alicemirror
        Alicemirror last edited by

        Hi,

        please take a look to the references to the Qt-Complex framework that is a QML based auto-adapting system that used geometry and other methods to solve this problem. The actual version of the project is outdated but also working. You can find all the references here:

        For the project in http://projects.developer.nokia.com/Qt_Complex while "here":http://developer.qt.nokia.com/wiki/category:Tools::QtComplex you can find some wiki pages with a first documentation on how it works.

        Enrico Miglino (aka Alicemirror)
        Balearic Dynamics
        Islas Baleares, Ibiza (Spain)
        www.balearicdynamics.com

        1 Reply Last reply Reply Quote 0
        • Alicemirror
          Alicemirror last edited by

          If it is not sufficient, please write me directly or post a note on the Mobile and Embedded group, I'll send you a preview of the Qt Complex 2.0 near to be released.

          Enrico Miglino (aka Alicemirror)
          Balearic Dynamics
          Islas Baleares, Ibiza (Spain)
          www.balearicdynamics.com

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