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. Migration GTK2
Forum Updated to NodeBB v4.3 + New Features

Migration GTK2

Scheduled Pinned Locked Moved Unsolved General and Desktop
16 Posts 4 Posters 3.4k 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.
  • J Jewest

    @jsulm because buildroot 2013.2 does not support 5.x.
    And migrating buildroot + custom build packages takes too much time.
    (Migrating buildroot also gives me the option to use GTK 3 / 4)

    Doing both will be a too big investment at this time just for swipe support.

    jsulmJ Offline
    jsulmJ Offline
    jsulm
    Lifetime Qt Champion
    wrote on last edited by
    #4

    @Jewest Maybe this can help: https://wiki.lxde.org/en/Migrate_from_GTK%2B_to_Qt

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

    J 1 Reply Last reply
    2
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #5

      hi
      What kind of swipe support in 4.8 ?
      Like this ?
      http://doc.qt.io/archives/qt-4.8/qswipegesture.html#details

      I just wonder if 4.8 will be good enough.

      J 1 Reply Last reply
      0
      • jsulmJ jsulm

        @Jewest Maybe this can help: https://wiki.lxde.org/en/Migrate_from_GTK%2B_to_Qt

        J Offline
        J Offline
        Jewest
        wrote on last edited by
        #6

        @jsulm I found that page.
        while reading it more carefully this time, the QUiLoader maybe an option when it can read GTKbuilder xml file correctly.
        It there an option to import the files or glade files?

        jsulmJ mrjjM 2 Replies Last reply
        0
        • J Jewest

          @jsulm I found that page.
          while reading it more carefully this time, the QUiLoader maybe an option when it can read GTKbuilder xml file correctly.
          It there an option to import the files or glade files?

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #7

          @Jewest Sorry, I don't know. Never used GTK+ and never ported a GTK+ app to Qt :-)

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

          1 Reply Last reply
          0
          • mrjjM mrjj

            hi
            What kind of swipe support in 4.8 ?
            Like this ?
            http://doc.qt.io/archives/qt-4.8/qswipegesture.html#details

            I just wonder if 4.8 will be good enough.

            J Offline
            J Offline
            Jewest
            wrote on last edited by
            #8

            @mrjj The current request from the sales department is to add a simple swipe to the next page function. why do you think this 4.8 will not be good enough? the function is present since 4.6 so I would assume that basic swiping is handled correctly.

            mrjjM 1 Reply Last reply
            0
            • J Jewest

              @jsulm I found that page.
              while reading it more carefully this time, the QUiLoader maybe an option when it can read GTKbuilder xml file correctly.
              It there an option to import the files or glade files?

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #9

              @Jewest

              Hi
              While both are xml and seems to be very similar , i never saw any mention of Creator/Qt being able to read
              GTKbuilder xml files.
              However the class names would not mach anyway.

              1 Reply Last reply
              1
              • J Jewest

                @mrjj The current request from the sales department is to add a simple swipe to the next page function. why do you think this 4.8 will not be good enough? the function is present since 4.6 so I would assume that basic swiping is handled correctly.

                mrjjM Offline
                mrjjM Offline
                mrjj
                Lifetime Qt Champion
                wrote on last edited by
                #10

                @Jewest
                Well nowadays, swiping is mostly QML
                So while 4.8 can detect a swipe gesture, im just wondering how/what widget that can actually swipe
                in 4.8 ?

                J.HilkJ J 2 Replies Last reply
                0
                • mrjjM mrjj

                  @Jewest
                  Well nowadays, swiping is mostly QML
                  So while 4.8 can detect a swipe gesture, im just wondering how/what widget that can actually swipe
                  in 4.8 ?

                  J.HilkJ Online
                  J.HilkJ Online
                  J.Hilk
                  Moderators
                  wrote on last edited by
                  #11

                  @mrjj said in Migration GTK2:

                  @Jewest
                  Well nowadays, swiping is mostly QML
                  So while 4.8 can detect a swipe gesture, im just wondering how/what widget that can actually swipe
                  in 4.8 ?

                  QPropertyAnimation is part of QT since 4.6. Therefore any/all, if you really want to/have the time to do it ?


                  Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                  Q: What's that?
                  A: It's blue light.
                  Q: What does it do?
                  A: It turns blue.

                  mrjjM 1 Reply Last reply
                  0
                  • J.HilkJ J.Hilk

                    @mrjj said in Migration GTK2:

                    @Jewest
                    Well nowadays, swiping is mostly QML
                    So while 4.8 can detect a swipe gesture, im just wondering how/what widget that can actually swipe
                    in 4.8 ?

                    QPropertyAnimation is part of QT since 4.6. Therefore any/all, if you really want to/have the time to do it ?

                    mrjjM Offline
                    mrjjM Offline
                    mrjj
                    Lifetime Qt Champion
                    wrote on last edited by
                    #12

                    @J.Hilk
                    ok so StackedWidget or tabWidget will not just do it.
                    It must be hand programmed anyway ?

                    J.HilkJ 1 Reply Last reply
                    0
                    • mrjjM mrjj

                      @Jewest
                      Well nowadays, swiping is mostly QML
                      So while 4.8 can detect a swipe gesture, im just wondering how/what widget that can actually swipe
                      in 4.8 ?

                      J Offline
                      J Offline
                      Jewest
                      wrote on last edited by
                      #13

                      @mrjj The detection of the swipe is good enough. so I guess 4.8 will be good enough for me.
                      Biggest problem at the moment is the 60 views that I currently have. So importing or converting the files will make my life a lot easier. (and easier to sell to my manager(cost)).

                      mrjjM 1 Reply Last reply
                      0
                      • mrjjM mrjj

                        @J.Hilk
                        ok so StackedWidget or tabWidget will not just do it.
                        It must be hand programmed anyway ?

                        J.HilkJ Online
                        J.HilkJ Online
                        J.Hilk
                        Moderators
                        wrote on last edited by
                        #14

                        @mrjj The QML counterparts do it by default, at least in Qt5. QStackWidget in general doesn't do that right?
                        I spend a good amount of time this year to make an animated QStackWidget transition between two/any QWidgets. I really hope I didn't reinvent the wheel here...


                        Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                        Q: What's that?
                        A: It's blue light.
                        Q: What does it do?
                        A: It turns blue.

                        mrjjM 1 Reply Last reply
                        1
                        • J Jewest

                          @mrjj The detection of the swipe is good enough. so I guess 4.8 will be good enough for me.
                          Biggest problem at the moment is the 60 views that I currently have. So importing or converting the files will make my life a lot easier. (and easier to sell to my manager(cost)).

                          mrjjM Offline
                          mrjjM Offline
                          mrjj
                          Lifetime Qt Champion
                          wrote on last edited by mrjj
                          #15

                          @Jewest
                          Hi
                          I would recreate one "view" in Qt and compare the
                          GTK ui with the QT ui and see
                          if a converter would be easy to write. ( maybe its only like map of 20 classnames)
                          Im not into GTK but it seems to call them UI file too
                          so before making an estimate i would have a small test of
                          getting one GTK UI into Qt.

                          1 Reply Last reply
                          0
                          • J.HilkJ J.Hilk

                            @mrjj The QML counterparts do it by default, at least in Qt5. QStackWidget in general doesn't do that right?
                            I spend a good amount of time this year to make an animated QStackWidget transition between two/any QWidgets. I really hope I didn't reinvent the wheel here...

                            mrjjM Offline
                            mrjjM Offline
                            mrjj
                            Lifetime Qt Champion
                            wrote on last edited by
                            #16

                            @J.Hilk
                            Well if there are for Widgets, i never saw any mention of it so
                            i think you time was well spend :)

                            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