Results 1 to 4 of 4

Thread: <Solved> Pointer to Calling class is needed

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2015
    Posts
    5
    Thanks
    1
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default <Solved> Pointer to Calling class is needed

    Hi there,

    I've a problem with the old topic "Signal from one class to another class".

    To clearify my situation:

    I have A which calls B (a modal QDialog, so it is without parent). B has a button, when pressed a function in A is calling, this way works. But the other way round I have the problem...

    I initialize B like this:

    b = new B();
    and later in the "openFunction":
    b->setFixedSize(b->minimumSize());
    testbshow();

    and now, in B I want this:
    connect(A, SIGNAL(CallB()), this, SLOT(FunctionB()));

    Because B should be Modal I can't do anything like this (maybe, I'm only don't know how I get B modal with this line):
    b = new B(this);

    I hope someone has a idea what I can do, so that B can get a signal from A.

    -casisto
    Last edited by Casisto; 22nd August 2015 at 18:58.

Similar Threads

  1. Replies: 3
    Last Post: 23rd May 2015, 13:57
  2. Replies: 7
    Last Post: 2nd September 2010, 19:42
  3. class calling other class functions?
    By Hardstyle in forum Newbie
    Replies: 4
    Last Post: 2nd June 2010, 02:38
  4. QPushButton not calling repaint when needed?
    By Enygma in forum Qt Programming
    Replies: 5
    Last Post: 13th May 2010, 17:03
  5. Accessing a class Object by pointer in another class
    By pdoria in forum Qt Programming
    Replies: 2
    Last Post: 14th January 2008, 15:59

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.