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 make a project that is done with QtQuick to a gui application?
Forum Updated to NodeBB v4.3 + New Features

How to make a project that is done with QtQuick to a gui application?

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 2.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.
  • L Offline
    L Offline
    Leon
    wrote on last edited by
    #1

    I just made a searchbox ( which on text change filters some items ).

    !http://i.imgur.com/2z56h.png(image)!

    But i found a qt example made with qtquick which is really nice looking and works very good.

    !http://i.imgur.com/S9UVy.png(image2)!

    How can i make this example from qtquick to a gui application?
    Any suggestion? Thanks, Leon.

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      You mean how to embed a QML component in QtWidgets GUI?

      If so, in Quick1, QML is based on Graphics View Framework, you can add QDeclarativeView as a widget to your GUI (it inherits from QGraphicsView). This is not possible, though, with QtQuick2.

      (Z(:^

      1 Reply Last reply
      0
      • L Offline
        L Offline
        Leon
        wrote on last edited by
        #3

        I think the title is not right. I am not asking generally, i am asking about this specific example, i want to add the search thing of, it at my application. But the example is written with qtquick or whatever this is. I am not familiar with qt quick and that's why i am a little confused.

        IN OTHER WORDS. I want to copy that example but not to be written with qt quick, but at a Qt Gui Application with normal qt programming.

        P.S If you don't understant what i mean i will explain it again.
        The example can be found at the getting started->qt quick examples

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          Uh, right, so you want to replicate the look of the QML example, but using standard QtWidgets.

          Can be done, although would mean much more work. There are probably a few ways to do this, the one that came to my mind is:

          subclass QLineEdit

          reimplement paintEvent()

          write your own code that will paint the line edit this new way.

          But that's probably an overkill. Maybe it could be also done, a bit easier, with QSS, but you'll have to research that path yourself. As I recollect, the Jasmin/ Blanchette book had a handy set of examples for both approaches.

          Also, KDE has KLineEdit, which seems to have just what you need: "LINK":http://api.kde.org/4.x-api/kdelibs-apidocs/kdeui/html/classKLineEdit.html.

          (Z(:^

          1 Reply Last reply
          0
          • T Offline
            T Offline
            trollixx
            wrote on last edited by
            #5

            Take a look at "QxtLineEdit":https://bitbucket.org/libqxt/libqxt/src/tip/src/gui/qxtlineedit.h, which has reset button in its 'tip' version. Actually, I haven't tested it yet.

            Oleg

            1 Reply Last reply
            0

            • Login

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