Results 1 to 5 of 5

Thread: Programming user interface advice

  1. #1
    Join Date
    Jan 2010
    Location
    Turkey
    Posts
    39
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Programming user interface advice

    0


    Hi,
    In my project I going to generate a user interface through programming. Scalability of this UI is very important requirement.

    So far I am using two dimensional graphics for generating the UI. I think there may be different solutions but for the moment I know only two.

    First one is supplying X,Y coordinates of each two dimensional graphic on my UI.(I do not prefer this solution because I do not want to calculate X,Y coordinates of each graphic. For the moment I don't have a logic for doing this easily)

    Second one(which is currently I am using now) is using layouts which organizes its contents according to size of item. In this solution I don't have to calculate X,Y coordinates of each item.(Layout is doing this for me) But this approach may have its own pitfalls.

    I am very new to user interface programming.
    Can you give me advice about this issue?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Programming user interface advice

    I think 99% of us are using layouts for their ui. The rest is yours to deduce
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Programming user interface advice

    Give me a L!
    Give me an A!
    Give me a Y!
    Give me an O!
    Give me an U!
    Give me a T!

    LAYOUT!!!



    P.s.: Yes, I'm not an individualist and I go with the flow... but in that case, it's perfect!

  4. #4
    Join Date
    Apr 2010
    Posts
    769
    Thanks
    1
    Thanked 94 Times in 86 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Programming user interface advice

    The one time I used a grid-like approach was when I was programming a calendar, where the days needed to be arranged in a grid.

    And the way I solved that problem was to write my own calendar layout class, and use that as a layout. The big advantage was freedom from fixed-size constraints and calculations - just drop whatever widget I was using into the layout by day number (1-31) and the layout would deal with the size and positioning.

  5. #5
    Join Date
    May 2010
    Posts
    18
    Thanks
    4
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Programming user interface advice

    I also faced the issues with layouts but after spending 2-3 days the layout stuff seems to clear to me.
    It is much better solution but complex to understand fully.

Similar Threads

  1. Which is the best way to make a fluid user interface in QT?
    By Kevin Hoang in forum Qt Programming
    Replies: 5
    Last Post: 9th March 2010, 13:37
  2. Customizing UIC (User Interface Compiler)
    By Thalionath in forum Qt Programming
    Replies: 1
    Last Post: 13th October 2009, 18:53
  3. Qt interface based programming
    By thedoctor in forum Qt Programming
    Replies: 4
    Last Post: 26th June 2009, 21:13
  4. User Interface with QTableView
    By Brandybuck in forum Qt Programming
    Replies: 1
    Last Post: 23rd March 2006, 00:24

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.