Results 1 to 3 of 3

Thread: GUI design opinion

  1. #1
    Join Date
    Mar 2010
    Posts
    319
    Thanks
    1
    Thanked 14 Times in 12 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Question GUI design opinion

    Hi, I am currently trying to come up with a GUI solution for my application. Basically, my application can open one or several files. My application works in three different modes and then, within each mode, I can have one or several ways of interacting with a particular file (I call those ways: views).

    So, the way I am currently thinking of it is by having a QGridLayout with has two rows and two columns:
    - r0c0: a QTabWidget used to select the mode in which I want to operate;
    - r0c1: a QTabWidget which is used to display different files depending on the mode and view selected;
    - r1c0: nothing; and
    - r1c1: a QTabWidget which tabs depend on the selected mode (see row 1, column 1), and which is used to select a particular view for the file.

    Though I am happy with the overall GUI design (opinions on it are still welcome though!), I have two issues related to the use of a QTabWidget object in r0c0 and r1c1. Indeed, what is of interest to me in those QTabWidget objects are the tabs themselves, not the contents. This is why the size policy of those two objects is set to Minimum so that we 'only' see the tabs and nothing more. However, this doesn't quite work as I would like. I mean that if you look at the first attachment:

    Central widget #1.png

    You will see that the two QTabWidget objects render a 'bar' to the right / above the tabs. Also, there is a gap between r0c0 and r0c1, and r1c1 and r0c1. Ideally, both of those bars and the gap wouldn't be there... i.e. something similar to the second attachment (after manually editing the first attachment):

    Central widget #2.png

    So, my question is how would you personally go about doing what I am after?...

    Cheers, Alan.

  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: GUI design opinion

    Maybe you should use QTabBar instead of QTabWidget?
    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
    Mar 2010
    Posts
    319
    Thanks
    1
    Thanked 14 Times in 12 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: GUI design opinion

    Yes, indeed, that's what I was told by someone else and what I have ended up doing. It's not 100% 'clean' (rendering wise), but much better than using QTabWidget, no question about it.

Similar Threads

  1. Need a second opinion on that piece of code...
    By homerun4711 in forum Newbie
    Replies: 7
    Last Post: 18th February 2011, 20:35
  2. Mastering signals; what's your opinion on Delta Object Rules?
    By piotr.dobrogost in forum Qt Programming
    Replies: 1
    Last Post: 14th October 2009, 13:05
  3. Replies: 3
    Last Post: 5th October 2008, 23:41
  4. I need a project opinion.
    By hgedek in forum General Discussion
    Replies: 6
    Last Post: 25th September 2007, 18:54
  5. Your opinion about Google Web Toolkit UI
    By patrik08 in forum General Programming
    Replies: 1
    Last Post: 21st May 2007, 05:27

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.