Results 1 to 3 of 3

Thread: Multi-window document structure

  1. #1
    Join Date
    Feb 2009
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Multi-window document structure

    Hi,

    I'm trying to develop graphic interface with Designer for an embedded Linux device with a small touch-screen. I come from graphics background, with very little programming skills, but I'm working together with a programmer, who will take care of the actual programming. I've browsed through the documentation and some Qt books, but I still seem to be missing some basic concepts, so I'd really appreciate if someone could point me in the right direction with the following questions.

    The device in question will have a small fixed-size interface (full-screen) with a few subcategories (so there will be no need for the resizing capabilities). There will be one main navigation display, which will be used to navigate to other screens, which will take over the whole screen (quite similar to most navigators). Each of these sub-windows have different functionality. What I seem to be missing how to construct the ui-file so, that it is easy to design/preview all the individual screens and navigation between them (10-15 different screens), and to produce abovementioned one-screen-at-a-time interface.

    Should one ui-document contain all screens as separate widgets side by side, and then set the visibility of the widgets using setVisible(true/false) statements and then center the visible widget in the window? Or would it be better to have each screen as a separate ui-file?

    Thanks in advance,
    JariV

  2. #2
    Join Date
    Sep 2008
    Posts
    84
    Thanks
    28
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Multi-window document structure

    hii
    i'm also working for an embedded Linux device with a small touch-screen.
    my question is can u give some screenshot of what type of work u want to do?

    also have u able to configure qt with touchscreen support?

  3. #3
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Multi-window document structure

    Quote Originally Posted by JariV View Post
    The device in question will have a small fixed-size interface (full-screen) with a few subcategories (so there will be no need for the resizing capabilities). There will be one main navigation display, which will be used to navigate to other screens, which will take over the whole screen (quite similar to most navigators). Each of these sub-windows have different functionality. What I seem to be missing how to construct the ui-file so, that it is easy to design/preview all the individual screens and navigation between them (10-15 different screens), and to produce abovementioned one-screen-at-a-time interface.
    You could use a "stacked widget" from the "containers" category. Qt Designer shows little arrow buttons for easy designing/previewing of individual screens.

    Should one ui-document contain all screens as separate widgets side by side, and then set the visibility of the widgets using setVisible(true/false) statements and then center the visible widget in the window? Or would it be better to have each screen as a separate ui-file?
    With QStackedWidget it would be only a matter of changing the current screen. However, this means that all screens would be constructed in the memory all the time. Depending on the complexity of those screens and the constraints of the device, it may or may not be feasible. Alternatively the screens could be constructed on the fly whenever the screen is changed. Or there could be a buffer of recently used screens to avoid having them all in the memory but still making it fast to switch back and forth between the screens.
    J-P Nurmi

Similar Threads

  1. How to set Qt window transparent?
    By montylee in forum Qt Programming
    Replies: 17
    Last Post: 24th December 2013, 20:11
  2. Multi Window Application in QT/C++
    By pshah.mumbai in forum Newbie
    Replies: 8
    Last Post: 8th July 2008, 17:21
  3. Set a window as child at runtime
    By sabeesh in forum Qt Programming
    Replies: 1
    Last Post: 26th November 2007, 09:30

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.