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. GUI and Library
Forum Updated to NodeBB v4.3 + New Features

GUI and Library

Scheduled Pinned Locked Moved Unsolved General and Desktop
11 Posts 4 Posters 1.2k 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.
  • H Offline
    H Offline
    hjohn
    wrote on 17 Jul 2018, 06:28 last edited by
    #1

    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.

    R 1 Reply Last reply 17 Jul 2018, 06:30
    0
    • H hjohn
      17 Jul 2018, 06:28

      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.

      R Offline
      R Offline
      raven-worx
      Moderators
      wrote on 17 Jul 2018, 06:30 last edited by
      #2

      @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 17 Jul 2018, 06:40
      3
      • R raven-worx
        17 Jul 2018, 06:30

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

        H Offline
        H Offline
        hjohn
        wrote on 17 Jul 2018, 06:40 last edited by
        #3

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

        K R 2 Replies Last reply 17 Jul 2018, 06:45
        0
        • H hjohn
          17 Jul 2018, 06:40

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

          K Offline
          K Offline
          kshegunov
          Moderators
          wrote on 17 Jul 2018, 06:45 last edited by
          #4

          @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
          3
          • H hjohn
            17 Jul 2018, 06:40

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

            R Offline
            R Offline
            raven-worx
            Moderators
            wrote on 17 Jul 2018, 06:45 last edited by
            #5

            @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 17 Jul 2018, 07:25
            3
            • R raven-worx
              17 Jul 2018, 06:45

              @hjohn said in GUI and Library:

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

              yes i know. Shared Library = DLL

              H Offline
              H Offline
              hjohn
              wrote on 17 Jul 2018, 07:25 last edited by hjohn
              #6

              @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.

              J 1 Reply Last reply 17 Jul 2018, 07:27
              0
              • H hjohn
                17 Jul 2018, 07:25

                @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.

                J Offline
                J Offline
                jsulm
                Lifetime Qt Champion
                wrote on 17 Jul 2018, 07:27 last edited by
                #7

                @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 17 Jul 2018, 08:43
                1
                • J jsulm
                  17 Jul 2018, 07:27

                  @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?!

                  H Offline
                  H Offline
                  hjohn
                  wrote on 17 Jul 2018, 08:43 last edited by
                  #8

                  @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.

                  J 1 Reply Last reply 17 Jul 2018, 09:03
                  0
                  • H hjohn
                    17 Jul 2018, 08:43

                    @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.

                    J Offline
                    J Offline
                    jsulm
                    Lifetime Qt Champion
                    wrote on 17 Jul 2018, 09:03 last edited by
                    #9

                    @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 17 Jul 2018, 09:50
                    0
                    • J jsulm
                      17 Jul 2018, 09:03

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

                      H Offline
                      H Offline
                      hjohn
                      wrote on 17 Jul 2018, 09:50 last edited by
                      #10

                      @jsulm yes It does.

                      J 1 Reply Last reply 17 Jul 2018, 11:05
                      0
                      • H hjohn
                        17 Jul 2018, 09:50

                        @jsulm yes It does.

                        J Offline
                        J Offline
                        jsulm
                        Lifetime Qt Champion
                        wrote on 17 Jul 2018, 11:05 last edited by
                        #11

                        @hjohn Can you show your pro file?

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

                        1 Reply Last reply
                        1

                        1/11

                        17 Jul 2018, 06:28

                        • Login

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