Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [SOLVED] How can i connect signal from widget which is contained in QMdiSubWindow?
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] How can i connect signal from widget which is contained in QMdiSubWindow?

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 911 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    andy_march
    wrote on last edited by
    #1

    Hi.
    I have editor which contain QGraphicsScene and QGraphicsView. This editor is placed into a QMdiSubWindow. Now i need to use signal selectionChanged from QGraphicsScene. I can do something like this:
    @
    void Editor::init() {
    ....
    connect(scene_, SIGNAL(selectionChanged()), this, SIGNAL(selectionInEditorChanged()));
    ....
    }
    @
    But class Editor is used as internal widget in QMdiSubWindow. How can i use signal Editor::selectionInEditorChanged(); from my QMainWindow subclass?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Why not just connect the Editor widget after you created it ? Or are you using a custom QMdiSubWindow ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • A Offline
        A Offline
        andy_march
        wrote on last edited by
        #3

        Thank you, it helped.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved