Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved GUI and Library

    General and Desktop
    4
    11
    710
    Loading More Posts
    • 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.
    • H
      hjohn last edited by

      How to create a .dll file which does some GUI tricks ?

      In that GUI , I have an image which changes its colour by MouseButton Clicked event. I want to create such dll.

      raven-worx 1 Reply Last reply Reply Quote 0
      • raven-worx
        raven-worx Moderators @hjohn last edited by

        @hjohn
        for creating a shared library see this.
        In the QWidget then overrride mousePressEvent() handler to react to mouse clicks and do some stuff.

        --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
        If you have a question please use the forum so others can benefit from the solution in the future

        H 1 Reply Last reply Reply Quote 3
        • H
          hjohn @raven-worx last edited by

          @raven-worx
          What I mean is, I want to create a dll with GUI. is it possible!? and How?

          kshegunov raven-worx 2 Replies Last reply Reply Quote 0
          • kshegunov
            kshegunov Moderators @hjohn last edited by

            @hjohn said in GUI and Library:

            What I mean is, I want to create a dll with GUI. is it possible!? and How?

            Yes it is possible. A dll with GUI is no different than one without, just follow @raven-worx's link and read the docs on how to create a shared library.

            Read and abide by the Qt Code of Conduct

            1 Reply Last reply Reply Quote 3
            • raven-worx
              raven-worx Moderators @hjohn last edited by

              @hjohn said in GUI and Library:

              What I mean is, I want to create a dll with GUI.

              yes i know. Shared Library = DLL

              --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
              If you have a question please use the forum so others can benefit from the solution in the future

              H 1 Reply Last reply Reply Quote 3
              • H
                hjohn @raven-worx last edited by hjohn

                @raven-worx said in GUI and Library:

                yes i know. Shared Library = DLL

                I am using centOS .
                I have added my .so file into particular debug folder of project in which i want to use.

                :-1: error: error: /home/local/build-TestDll-Desktop_Qt_5_5_1_GCC_64bit-Debug/libMyLib.so: No such file or directory
                

                i have already added .so file in that path.If i run this project in windows (after changing files path).It works properly.

                jsulm 1 Reply Last reply Reply Quote 0
                • jsulm
                  jsulm Lifetime Qt Champion @hjohn last edited by

                  @hjohn Your original question was how to create a shared library. Now you say you added it already. So, what do you actually want to do? And why do you manually put your library to the build directory?!

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

                  H 1 Reply Last reply Reply Quote 1
                  • H
                    hjohn @jsulm last edited by

                    @jsulm
                    Yes , I created a library after asking the original question, just for learning purpose.
                    Now I'm running it on windows , and it works but when I try to do the same in Linux, its displaying that error message.

                    jsulm 1 Reply Last reply Reply Quote 0
                    • jsulm
                      jsulm Lifetime Qt Champion @hjohn last edited by

                      @hjohn Does it exist: /home/local/build-TestDll-Desktop_Qt_5_5_1_GCC_64bit-Debug/libMyLib.so ?

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

                      H 1 Reply Last reply Reply Quote 0
                      • H
                        hjohn @jsulm last edited by

                        @jsulm yes It does.

                        jsulm 1 Reply Last reply Reply Quote 0
                        • jsulm
                          jsulm Lifetime Qt Champion @hjohn last edited by

                          @hjohn Can you show your pro file?

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

                          1 Reply Last reply Reply Quote 1
                          • First post
                            Last post