Results 1 to 2 of 2

Thread: Help - 1 Separate Window to Rule them all, Ideas please

  1. #1
    Join Date
    Jun 2013
    Posts
    46
    Thanks
    24
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Windows

    Exclamation Help - 1 Separate Window to Rule them all, Ideas please

    Qt colleagues

    please inform me, how to:
    1) create more than 1 "window", in the same application
    2) use 1 window as a "control window" to call other windows
    ie. each window does something else according to selection from the "controlling window"
    3) Hence connecting connecting a "Push Button click" to open a new different window.

    Is it possible, to create all the windows in qt Creator(drag and drop)

    Ideas Welcome

    Thanks

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

    Default Re: Help - 1 Separate Window to Rule them all, Ideas please

    Quote Originally Posted by 2lights View Post
    1) create more than 1 "window", in the same application
    The same way you created the first one. Create an instance of a QWidget and show() it.
    2) use 1 window as a "control window" to call other windows. ie. each window does something else according to selection from the "controlling window"
    "Call other windows" is vague. You can connect signals in one object to to slots in another, or hold a pointer to another object and call functions directly...
    3) Hence connecting connecting a "Push Button click" to open a new different window.
    Connect the clicked() signal to a slot that creates another instance of a QWidget and calls show().
    Is it possible, to create all the windows in qt Creator(drag and drop)
    Yes, you can design as many different layouts of widgets as you want in Designer.

    It is also possible to type a sentence without unnecessary highlighting

  3. The following user says thank you to ChrisW67 for this useful post:

    2lights (11th July 2013)

Similar Threads

  1. Replies: 5
    Last Post: 27th July 2012, 08:21
  2. How to decide whether to make a separate class for widgets of a window?
    By TheIndependentAquarius in forum Qt Programming
    Replies: 4
    Last Post: 15th February 2012, 08:51
  3. No rule to make target
    By Coolname007 in forum Qt Programming
    Replies: 6
    Last Post: 4th March 2011, 21:08
  4. Scalling window(widget) - any ideas?
    By obquty in forum Qt Programming
    Replies: 11
    Last Post: 8th May 2010, 01:40
  5. Ideas for implementation of a little mouse window
    By hayzel in forum Qt Programming
    Replies: 2
    Last Post: 25th October 2009, 18:36

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.