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. how to call a library used QObject::connect from a non qt base application ?
Forum Updated to NodeBB v4.3 + New Features

how to call a library used QObject::connect from a non qt base application ?

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 2 Posters 376 Views
  • 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.
  • MozzieM Offline
    MozzieM Offline
    Mozzie
    wrote on last edited by
    #1

    hi,
    as far as i know, if i want to use signals and slots, I must have an qApp instance right?
    so does this means i can not use a library used qt's signals and slots from other non qt application?

    1 Reply Last reply
    0
    • Christian EhrlicherC Online
      Christian EhrlicherC Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by Christian Ehrlicher
      #2

      If you want to use Qt functionality you need a running Q(Core|Gui)Application

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      MozzieM 1 Reply Last reply
      2
      • Christian EhrlicherC Christian Ehrlicher

        If you want to use Qt functionality you need a running Q(Core|Gui)Application

        MozzieM Offline
        MozzieM Offline
        Mozzie
        wrote on last edited by
        #3

        @Christian-Ehrlicher
        then how does qt for android work?

        1 Reply Last reply
        0
        • Christian EhrlicherC Online
          Christian EhrlicherC Online
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Mozzie said in how to call a library used QObject::connect from a non qt base application ?:

          then how does qt for android work?

          Exactly like on other OSes - a QApplication event loop is running.

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          MozzieM 1 Reply Last reply
          1
          • Christian EhrlicherC Christian Ehrlicher

            @Mozzie said in how to call a library used QObject::connect from a non qt base application ?:

            then how does qt for android work?

            Exactly like on other OSes - a QApplication event loop is running.

            MozzieM Offline
            MozzieM Offline
            Mozzie
            wrote on last edited by
            #5

            @Christian-Ehrlicher

            so how to running QApplication event loop from other application as a library?

            1 Reply Last reply
            0
            • Christian EhrlicherC Online
              Christian EhrlicherC Online
              Christian Ehrlicher
              Lifetime Qt Champion
              wrote on last edited by
              #6

              You could create a separate thread where you start the QApplication but then all gui operations have to be done there. I would say - leave it.

              Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
              Visit the Qt Academy at https://academy.qt.io/catalog

              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