Results 1 to 10 of 10

Thread: GUI enhancement

  1. #1
    Join Date
    Jul 2009
    Location
    Jordan, and UAE
    Posts
    55
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default GUI enhancement

    Hello Everyone,

    I have a few questions about User Interface in Qt

    I'm using Qt creator to do my work, I have a QMainWindow application , which contains central widget, also it contains dock widgets

    I have 2 issues at this point

    1- There is not distinction in the boundaries between the central widget, and the dock widgets, also no distention between the dock widgets themselves, so how to solve this issue?

    2- the dockabe widgets always start very wide, and I have to resize it manually every time, even though I have put the size policy to minimum to every dock widget

    I've attached a picture with what I already have

    thanks very much
    Attached Images Attached Images

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

    Default Re: GUI enhancement

    Quote Originally Posted by yazwas View Post
    1- There is not distinction in the boundaries between the central widget, and the dock widgets,
    What do you mean? I can see a thick vertical line on your screenshot.

    2- the dockabe widgets always start very wide, and I have to resize it manually every time, even though I have put the size policy to minimum to every dock widget
    Do not enforce policies on the dock windows. Do that on widgets inside them.
    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
    Jul 2009
    Location
    Jordan, and UAE
    Posts
    55
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: GUI enhancement

    Quote Originally Posted by wysota View Post
    What do you mean? I can see a thick vertical line on your screenshot.
    The thick vertical line is not the boundary, its a frame thats within the central widget itself, not the boundary

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

    Default Re: GUI enhancement

    Are you sure you added the dock windows to the main window properly? Can you show us the code you have written to do that?
    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.


  5. #5
    Join Date
    Jul 2009
    Location
    Jordan, and UAE
    Posts
    55
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: GUI enhancement

    Quote Originally Posted by wysota View Post
    Are you sure you added the dock windows to the main window properly? Can you show us the code you have written to do that?
    I think so, because I used the QtCreator GUI interface to do that, so I did not write any code to create the dock widgets and add them,

    I've attached a screenshot for Object/class view I have
    hopefully this will help
    Attached Images Attached Images

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

    Default Re: GUI enhancement

    Object hierarchy is not enough to say anything. Post the real ui file.
    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.


  7. #7
    Join Date
    Jul 2009
    Location
    Jordan, and UAE
    Posts
    55
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: GUI enhancement

    Quote Originally Posted by wysota View Post
    Object hierarchy is not enough to say anything. Post the real ui file.
    This is the real ui*.h file for the main application

    i've zipped it because its not acceptable as a .h file, its larger than acceptable

    Thanks in advance
    Attached Files Attached Files

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

    Default Re: GUI enhancement

    I meant the ui file (the one saved by Designer).
    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.


  9. #9
    Join Date
    Jul 2009
    Location
    Jordan, and UAE
    Posts
    55
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: GUI enhancement

    Quote Originally Posted by wysota View Post
    I meant the ui file (the one saved by Designer).
    Here it is

    Thanks
    Attached Files Attached Files

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

    Default Re: GUI enhancement

    And what is wrong with it exactly? There are splitters dividing the components and the width of dock widgets is clearly determined by their contents... So?
    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.


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
  •  
Qt is a trademark of The Qt Company.