Results 1 to 17 of 17

Thread: Help drawing a gui

Hybrid View

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

    Default Re: Help drawing a gui

    If your customers what it that way (which in my opinion is not the best choice) then just add a second row and put all element there. From left to right.

    One other option your be to draw your left panel transparent over the wave form and alter the opacity when the mouse is over. Or give a small "show panel"-button, so the user can decide if it should be shown.

  2. #2
    Join Date
    Nov 2007
    Location
    Italy
    Posts
    694
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    59
    Thanked 1 Time in 1 Post

    Default Re: Help drawing a gui

    Quote Originally Posted by Lykurg View Post
    If your customers what it that way (which in my opinion is not the best choice) then just add a second row and put all element there. From left to right.

    One other option your be to draw your left panel transparent over the wave form and alter the opacity when the mouse is over. Or give a small "show panel"-button, so the user can decide if it should be shown.
    Thank you Lykurg,
    your idea of transparent panel seems very great. Is there any example I can see?
    Franco Amato

  3. #3
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Wiki edits
    17

    Default Re: Help drawing a gui

    Or perhaps make each panel a horizontal set of widgets beneath the existing controls


    Edit: I should learn to read, Lykurg already said that

  4. #4
    Join Date
    Nov 2007
    Location
    Italy
    Posts
    694
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    59
    Thanked 1 Time in 1 Post

    Default Re: Help drawing a gui

    Quote Originally Posted by ChrisW67 View Post
    Or perhaps make each panel a horizontal set of widgets beneath the existing controls


    Edit: I should learn to read, Lykurg already said that
    Chris could I use a grid layout to layout buttons and 'panel controls' under the wave display?
    Franco Amato

  5. #5
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Wiki edits
    17

    Default Re: Help drawing a gui

    You could but another nested horizontal layout would also do the trick. If you want the rearranged panel widgets to line up with the ones above then use a grid layout either for the entire layout or just around the play/stop controls and the panel widgets. If you want the panel widgets to be independent of the play/stop controls in horizontal spacing then go with a horizontal layout.

  6. #6
    Join Date
    Nov 2007
    Location
    Italy
    Posts
    694
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    59
    Thanked 1 Time in 1 Post

    Default Re: Help drawing a gui

    Quote Originally Posted by ChrisW67 View Post
    You could but another nested horizontal layout would also do the trick. If you want the rearranged panel widgets to line up with the ones above then use a grid layout either for the entire layout or just around the play/stop controls and the panel widgets. If you want the panel widgets to be independent of the play/stop controls in horizontal spacing then go with a horizontal layout.
    Or maybe I can move all the buttons into the little panel and move the panel ( containing ALL controls ) under the wave display.
    I can share the code
    Franco Amato

  7. #7
    Join Date
    Nov 2007
    Location
    Italy
    Posts
    694
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    59
    Thanked 1 Time in 1 Post

    Default Re: Help drawing a gui

    Quote Originally Posted by ChrisW67 View Post
    You could but another nested horizontal layout would also do the trick. If you want the rearranged panel widgets to line up with the ones above then use a grid layout either for the entire layout or just around the play/stop controls and the panel widgets. If you want the panel widgets to be independent of the play/stop controls in horizontal spacing then go with a horizontal layout.
    Chris,
    I thought to put ALL controls ( buttons under wavedisplay + widget in the little panel ) into a separate dialog that user can show when needed.
    Can you suggest an elegant way to do it? Gui design isn't definitively my best quality.

    Regards,
    Franco
    Franco Amato

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

    Default Re: Help drawing a gui

    I would probably use a splitter or a button to pop-up the controls (just like QComboBox pops up the list). With proper settings (Qt::Popup) the controls widget would hide itself automatically if you clicked outside it.
    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
    Nov 2007
    Location
    Italy
    Posts
    694
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    59
    Thanked 1 Time in 1 Post

    Default Re: Help drawing a gui

    Quote Originally Posted by wysota View Post
    I would probably use a splitter or a button to pop-up the controls (just like QComboBox pops up the list). With proper settings (Qt::Popup) the controls widget would hide itself automatically if you clicked outside it.
    Hi Wysota,
    sorry I didn't exactly undertsand your idea. Splitter is not used to divide a widget into many parts?

    Regards
    Franco Amato

  10. #10
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    8
    Thanked 133 Times in 128 Posts

    Default Re: Help drawing a gui

    what about dock widgets or a simple floating toolbar?

  11. #11
    Join Date
    Nov 2007
    Location
    Italy
    Posts
    694
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    59
    Thanked 1 Time in 1 Post

    Default Re: Help drawing a gui

    Quote Originally Posted by MrDeath View Post
    what about dock widgets or a simple floating toolbar?
    Hi but the floating toolbar shoudn't stay at the top of the mainwindow? Should I need 2 toolbar ( one per wave widget ).
    And the dock widget I'm not sure if it's a good idea as I need the wave display to be as large as possible,

    Regards
    Franco Amato

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

    Default Re: Help drawing a gui

    Quote Originally Posted by franco.amato View Post
    sorry I didn't exactly undertsand your idea.
    I don't know how much simpler I can describe it. I think it's pretty clear right now. See how QComboBox works and make something similar.

    Splitter is not used to divide a widget into many parts?
    RTFM
    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.


Similar Threads

  1. Drawing in QML
    By JeffC in forum Newbie
    Replies: 10
    Last Post: 10th June 2011, 18:25
  2. 2D drawing
    By WXNSNW in forum Qt Programming
    Replies: 3
    Last Post: 5th October 2010, 23:01
  3. Drawing
    By chethana in forum Qt Programming
    Replies: 1
    Last Post: 16th October 2007, 06:29
  4. Drawing an arc.
    By munna in forum Qt Programming
    Replies: 6
    Last Post: 13th June 2006, 05:36
  5. Drawing using QT
    By Kapil in forum Newbie
    Replies: 1
    Last Post: 17th March 2006, 04:23

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.