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. Need help can't find anything
Forum Updated to NodeBB v4.3 + New Features

Need help can't find anything

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

    I'm using QML for desktop but I welcome widgets as I can easily translate them to QML, here is my problem:

    I am making an integrated browser and it would appear there is no widget/component available that fits the bill for a simple URL bar.

    I have used textEdit, but when it "scrolls" it overlaps everything else. wrapping does not work. I tried using a scroll bar (horizontal) and that worked nicely, but it has a giant scroll bar I can't get rid of.

    I looked all over the documentation, all over youtube, nothing.
    there is a lot of videos showing QtWebEngine browsers, but literally all of them do not use a proper URL. (Apparently no one knows how to make one)
    I tried looking at textEdit guides and login guides, nothing.

    All i am trying to do is create a bar like the URL bar at the top of your browser.
    one that I can use arrow keys to scroll left or right.
    I was considering changing the style of the scrollview scrollbar to be very small to add a bit of function and solve my problem at the same time, but I'll see if anyone that has made one before knows how to solve this problem.

    :)

    Chris KawaC 1 Reply Last reply
    0
    • LahearleL Lahearle

      I'm using QML for desktop but I welcome widgets as I can easily translate them to QML, here is my problem:

      I am making an integrated browser and it would appear there is no widget/component available that fits the bill for a simple URL bar.

      I have used textEdit, but when it "scrolls" it overlaps everything else. wrapping does not work. I tried using a scroll bar (horizontal) and that worked nicely, but it has a giant scroll bar I can't get rid of.

      I looked all over the documentation, all over youtube, nothing.
      there is a lot of videos showing QtWebEngine browsers, but literally all of them do not use a proper URL. (Apparently no one knows how to make one)
      I tried looking at textEdit guides and login guides, nothing.

      All i am trying to do is create a bar like the URL bar at the top of your browser.
      one that I can use arrow keys to scroll left or right.
      I was considering changing the style of the scrollview scrollbar to be very small to add a bit of function and solve my problem at the same time, but I'll see if anyone that has made one before knows how to solve this problem.

      Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Lahearle See QLineEdit for widgets or TextInput for QML.

      1 Reply Last reply
      0
      • LahearleL Offline
        LahearleL Offline
        Lahearle
        wrote on last edited by
        #3

        update: I used the flickable method but find that it feels a little "jank"

        if I select all from the start of the https: it will act as normal, but when I click the righthand portion of the flickable, it auto sends the flickable back to the start (zero)
        which is not like a regular search bar.

        I set it to horizontal flick only and it's doable, but not ideal. sometimes when selecting I accidentally grab the flickable box and move the text, even though it's almost not there (child to a rectangle, so the text takes up most of the space).

        There has got to be a better way to do this, even if it involves using other modules?

        :)

        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