Results 1 to 2 of 2

Thread: GUI Window doesnt close

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2012
    Location
    Porto
    Posts
    38
    Thanks
    4
    Thanked 1 Time in 1 Post
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default GUI Window doesnt close

    Hi everybody.

    I have a problem with windows (widgets) in qt.

    In my mainwindow.cpp has

    Qt Code:
    1. th = new QThread;
    2. features = new Features(&Manager);
    3. features ->moveToThread(th);
    4. th->start();
    5.  
    6. Hardware cl(status,&Manager,features,this);
    7. a.exec();
    To copy to clipboard, switch view to plain text mode 

    The hardware class call other widgtet. This widget has a cancel button with done(REJECTED);
    But the window(hardware) doesnt close.

  2. #2
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 453 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: GUI Window doesnt close

    It is not possible to guess the problem with the posted code, could you re-create the problem with an simple example.

    Where are you closing the Harware window?
    What is cancel button signal connected to?
    When you know how to do it then you may do it wrong.
    When you don't know how to do it then it is not that you may do it wrong but you may not do it right.

Similar Threads

  1. X11 close window by WId
    By webstar2568 in forum Qt Programming
    Replies: 3
    Last Post: 22nd May 2014, 09:57
  2. Qt4 - How to close a window?
    By ankeetguha in forum Newbie
    Replies: 1
    Last Post: 30th May 2011, 09:42
  3. Replies: 9
    Last Post: 16th May 2010, 16:21
  4. How to close parent window from child window?
    By montylee in forum Qt Programming
    Replies: 5
    Last Post: 14th October 2008, 11:40
  5. Qt Designer 4 window doesnt appear
    By raman_31181 in forum Qt Tools
    Replies: 16
    Last Post: 2nd July 2008, 13:33

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.