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 hjohn

    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-worxR Offline
    raven-worxR Offline
    raven-worx
    Moderators
    wrote on 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
    3
    • raven-worxR raven-worx

      @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 last edited by
      #3

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

      kshegunovK raven-worxR 2 Replies Last reply
      0
      • H hjohn

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

        kshegunovK Offline
        kshegunovK Offline
        kshegunov
        Moderators
        wrote on 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

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

          raven-worxR Offline
          raven-worxR Offline
          raven-worx
          Moderators
          wrote on 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
          3
          • raven-worxR raven-worx

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

            jsulmJ 1 Reply Last reply
            0
            • H 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.

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on 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
              1
              • jsulmJ jsulm

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

                jsulmJ 1 Reply Last reply
                0
                • H hjohn

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

                  jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on 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
                  0
                  • jsulmJ jsulm

                    @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 last edited by
                    #10

                    @jsulm yes It does.

                    jsulmJ 1 Reply Last reply
                    0
                    • H hjohn

                      @jsulm yes It does.

                      jsulmJ Offline
                      jsulmJ Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on 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

                      • Login

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