Results 1 to 3 of 3

Thread: about multiple windows design problem

  1. #1
    Join Date
    Oct 2012
    Posts
    35
    Thanks
    26
    Qt products
    Qt4
    Platforms
    Windows

    Default about multiple windows design problem

    HI All,

    I have a problem when designed multiple windows.I have three windows: mainwindow , A, B. primary code see as below:

    mainwindow.cpp
    class main
    {
    private:
    A a;
    B b;
    }

    a.cpp

    class B;
    class A
    {
    private:
    B *b;
    }

    b.cpp

    class A;
    class B
    {
    private:
    A *a;
    }

    when I runned with debug , compile succeed, but the program runned in the background, why? please give me correct solution, TKS.

  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: about multiple windows design problem

    You have not shown anything like code that does something so we have precisely no way to know what you are doing wrong. If you are not getting a window then chances are it's because you not creating and showing one.

  3. #3
    Join Date
    Oct 2012
    Posts
    35
    Thanks
    26
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: about multiple windows design problem

    i have created show one, i want to call class's varible and method each other , such as: A can call B class 's varible, and also B can call A class'varible .


    Added after 1 43 minutes:


    i have been solved ,THKS
    Last edited by kenchan; 16th November 2012 at 04:44.

Similar Threads

  1. design pattern for supporting multiple DB's?
    By scarleton in forum Qt Programming
    Replies: 3
    Last Post: 4th June 2010, 14:33
  2. Problem with design interface
    By tux-world in forum Newbie
    Replies: 5
    Last Post: 10th March 2010, 14:19
  3. Opengl/Qt Design Problem!
    By IcePic in forum Qt Programming
    Replies: 0
    Last Post: 3rd March 2009, 07:18
  4. Replies: 3
    Last Post: 5th October 2008, 23:41
  5. Design problem/question
    By Valheru in forum Qt Programming
    Replies: 2
    Last Post: 27th September 2006, 21:45

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.