Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Control of UI Design in QT
Forum Updated to NodeBB v4.3 + New Features

Control of UI Design in QT

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 1.1k Views 1 Watching
  • 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.
  • B Offline
    B Offline
    BlazeRifted
    wrote on last edited by
    #1

    QT is a very powerful tool for creating UI's and that is why I am using it. But I am having trouble designing the look of the interface. My vision is to have it look something like blender,
    http://www.katsbits.com/images/tutorials/blender-layout/de-select-load-ui-opening-file.jpg

    So I obviously am trying to make it a little like that. Is their any suggestions to enhance the look in the UI?

    1 Reply Last reply
    0
    • C Offline
      C Offline
      clochydd
      wrote on last edited by
      #2

      I suggest to work with styleSheets which give you control of the design and you should be able to make a blenderlike UI.
      Here's a small sample for a pushButton, assigned in the form to a QFrame with some buttons through Creator:

      @
      QPushButton {
      font: 7pt "Ubuntu";
      border-width: 1px;
      border-color: #87c3ff;
      border-style: solid;
      border-radius: 2;
      min-width: 55px;
      min-height: 15px;
      }
      QPushButton:hover {
      border-color: orchid;
      border-width: 2px;
      }
      QPushButton:pressed {
      padding-left: 2px;
      padding-top: 2px;
      background-color: orchid;
      }

      @

      1 Reply Last reply
      0
      • N Offline
        N Offline
        nicky j
        wrote on last edited by
        #3

        Is it possible to place all the style sheets in one file and have the rest of my program check that file when rendering widgets?

        1 Reply Last reply
        0
        • C Offline
          C Offline
          clochydd
          wrote on last edited by
          #4

          that should be possible as you can assign strings containing the stylesheets in runtime by using setStyleSheet

          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