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 access Qt GUI from an library using qt designer form
Forum Update on Monday, May 27th 2025

How to access Qt GUI from an library using qt designer form

Scheduled Pinned Locked Moved Unsolved General and Desktop
shared libraryqt designer
29 Posts 5 Posters 9.9k 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.
  • S Offline
    S Offline
    SGaist
    Lifetime Qt Champion
    wrote on 13 Sept 2016, 19:14 last edited by
    #13

    Hi,

    What are your "standard application" ?

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

    S 1 Reply Last reply 14 Sept 2016, 05:27
    2
    • S SGaist
      13 Sept 2016, 19:14

      Hi,

      What are your "standard application" ?

      S Offline
      S Offline
      Srujan
      wrote on 14 Sept 2016, 05:27 last edited by
      #14

      @SGaist
      Its "cryptokimanager"

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 14 Sept 2016, 07:49 last edited by
        #15

        Let me rephrase that: what toolkit does it use ?

        Is it already using Qt ?

        Are you building that app yourself or are you writing a plugin for it and have no access to its internals ?

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

        S 1 Reply Last reply 14 Sept 2016, 10:24
        0
        • S SGaist
          14 Sept 2016, 07:49

          Let me rephrase that: what toolkit does it use ?

          Is it already using Qt ?

          Are you building that app yourself or are you writing a plugin for it and have no access to its internals ?

          S Offline
          S Offline
          Srujan
          wrote on 14 Sept 2016, 10:24 last edited by Srujan
          #16

          @SGaist
          Its a tool for managing and validating a pkcs#11 module..
          For more info please refer Cryptoki manager

          1 Reply Last reply
          0
          • V Offline
            V Offline
            VRonin
            wrote on 14 Sept 2016, 10:40 last edited by
            #17

            Can you post your code from which you call show_dialog1( ); ?

            "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
            ~Napoleon Bonaparte

            On a crusade to banish setIndexWidget() from the holy land of Qt

            S 1 Reply Last reply 14 Sept 2016, 11:28
            1
            • V VRonin
              14 Sept 2016, 10:40

              Can you post your code from which you call show_dialog1( ); ?

              S Offline
              S Offline
              Srujan
              wrote on 14 Sept 2016, 11:28 last edited by
              #18

              @VRonin
              simply I have called 'show_dialog1();' from one of exported functions in shared library..

              1 Reply Last reply
              0
              • V Offline
                V Offline
                VRonin
                wrote on 14 Sept 2016, 11:33 last edited by VRonin
                #19

                I suspect you are not creating the application. try Q_ASSERT(QCoreApplication::instance()); if it asserts (i.e. instance() returns NULL) then it means you simply forgot to crate the QApplication before creating any QWidget

                "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
                ~Napoleon Bonaparte

                On a crusade to banish setIndexWidget() from the holy land of Qt

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 14 Sept 2016, 12:54 last edited by
                  #20

                  The question you are not answering is: are you working on that software code source directly ?

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

                  S 1 Reply Last reply 19 Sept 2016, 10:46
                  1
                  • S SGaist
                    14 Sept 2016, 12:54

                    The question you are not answering is: are you working on that software code source directly ?

                    S Offline
                    S Offline
                    Srujan
                    wrote on 19 Sept 2016, 10:46 last edited by
                    #21

                    @SGaist
                    yes

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 19 Sept 2016, 20:56 last edited by
                      #22

                      Ok, then are you converting it to a full-blown Qt application ?

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

                      S 1 Reply Last reply 20 Sept 2016, 04:55
                      0
                      • S SGaist
                        19 Sept 2016, 20:56

                        Ok, then are you converting it to a full-blown Qt application ?

                        S Offline
                        S Offline
                        Srujan
                        wrote on 20 Sept 2016, 04:55 last edited by
                        #23

                        @SGaist
                        If you are talking about- Cryptoki manager then i am not working on that application. I working on the library that is used to test with cryptokimanager(thrid party standard application).
                        As specified earlier, in my library there is a need of dialog part.

                        1 Reply Last reply
                        0
                        • S Offline
                          S Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on 21 Sept 2016, 10:12 last edited by
                          #24

                          So you are going to call the Cryptoki manager application from your code ?

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

                          S 1 Reply Last reply 25 Sept 2016, 16:12
                          0
                          • S SGaist
                            21 Sept 2016, 10:12

                            So you are going to call the Cryptoki manager application from your code ?

                            S Offline
                            S Offline
                            Srujan
                            wrote on 25 Sept 2016, 16:12 last edited by
                            #25

                            @SGaist
                            yes

                            1 Reply Last reply
                            0
                            • S Offline
                              S Offline
                              SGaist
                              Lifetime Qt Champion
                              wrote on 25 Sept 2016, 19:19 last edited by
                              #26

                              What's still not clear is whether you are writing a full-blown Qt application for that. Is it the case ?

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

                              S 1 Reply Last reply 26 Sept 2016, 09:35
                              0
                              • S SGaist
                                25 Sept 2016, 19:19

                                What's still not clear is whether you are writing a full-blown Qt application for that. Is it the case ?

                                S Offline
                                S Offline
                                Srujan
                                wrote on 26 Sept 2016, 09:35 last edited by
                                #27

                                @SGaist yes now i have created separate qt application and invoking that application from library using pipe mechanism..
                                Now the issue is 'getting value from that application(what ever entered in qlineedit of dialog box)'

                                J 1 Reply Last reply 26 Sept 2016, 10:35
                                0
                                • S Srujan
                                  26 Sept 2016, 09:35

                                  @SGaist yes now i have created separate qt application and invoking that application from library using pipe mechanism..
                                  Now the issue is 'getting value from that application(what ever entered in qlineedit of dialog box)'

                                  J Online
                                  J Online
                                  jsulm
                                  Lifetime Qt Champion
                                  wrote on 26 Sept 2016, 10:35 last edited by
                                  #28

                                  @Srujan Your Qt application could write to stdout and your library would read stdout of that application and parse it. See the documentation for QProcess.

                                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                                  S 1 Reply Last reply 28 Sept 2016, 09:59
                                  2
                                  • J jsulm
                                    26 Sept 2016, 10:35

                                    @Srujan Your Qt application could write to stdout and your library would read stdout of that application and parse it. See the documentation for QProcess.

                                    S Offline
                                    S Offline
                                    Srujan
                                    wrote on 28 Sept 2016, 09:59 last edited by
                                    #29

                                    @jsulm Thanks it worked..

                                    1 Reply Last reply
                                    0

                                    22/29

                                    19 Sept 2016, 20:56

                                    • Login

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