Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. [SOLVED] Qt Designer

[SOLVED] Qt Designer

Scheduled Pinned Locked Moved Qt Creator and other tools
5 Posts 3 Posters 1.7k Views
  • 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 Offline
    M Offline
    maxg0
    wrote on last edited by
    #1

    Hi everyone,

    I am completely new to QT and was wondering whether you coul help out with the following.
    We would like to use QT for HMI type GUI development and Qt Widgets might be enough for what we want.
    I seem to undsrtand that there is something called "Qt Designer" available.
    A Qt designer file has a ".ui" extension and the source is xml.

    As it looks reasonably intuitive, my questions (I will read the manual so this is just to try and speed up the learning process) are:

    1. Does this xml file integrate into a c++ project? I mean, do I still attach functionality to these controls by coding them in C++?
    2. Would I be able to add to a dialog box fancier controls such as dials and gauges? Do the widget classes provide this functionality?

    Many Thanks

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mcosta
      wrote on last edited by
      #2

      Hi,

      Welcome to Qt World.
      For both question answer is YES; to discover HOW do these thing you MUST read Documentation.

      Once your problem is solved don't forget to:

      • Mark the thread as SOLVED using the Topic Tool menu
      • Vote up the answer(s) that helped you to solve the issue

      You can embed images using (http://imgur.com/) or (http://postimage.org/)

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Skh1002
        wrote on last edited by
        #3

        Hi maxg0,

        I am also new to Qt, but I've already tried Qt Designer to create a few test interfaces. So far, my impression is that its functionality can be at best described as limited. Maybe it's just me, but I had to repeatedly edit xml manually to get the effect I wanted to achieve. A number of functions, which seem to be reasonably common are absent (for instance, action groups are not supported).

        I guess that Qt Designer is fine for simple things, but I would not use it for something serious. At this moment, I decided that it is more efficient to write the UI code manually, especially considering the fact that it will be generated by uic anyway.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mcosta
          wrote on last edited by
          #4

          Obviously I don't agree!

          Designer is what name says: only a Designer; it do all you need to build also complex UI.
          There are things you must write manually but, if you become expert on Qt and Designer, this is needed only in few situations.

          Once your problem is solved don't forget to:

          • Mark the thread as SOLVED using the Topic Tool menu
          • Vote up the answer(s) that helped you to solve the issue

          You can embed images using (http://imgur.com/) or (http://postimage.org/)

          1 Reply Last reply
          0
          • S Offline
            S Offline
            Skh1002
            wrote on last edited by
            #5

            Well, I am happy that Qt Designer works as a primary tool for you. Maybe I am not grokking it so far, but I run into its limitations too often. I'd rather write UI code directly than fiddle with Designer xml to achieve the same effect.

            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