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. QWebEngineView - Disable auto word-wrap of tooltip (title)

QWebEngineView - Disable auto word-wrap of tooltip (title)

Scheduled Pinned Locked Moved Unsolved General and Desktop
qwebengineviewtooltipwordwrap
4 Posts 2 Posters 1.6k Views
  • 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.
  • S Offline
    S Offline
    SamurayH
    wrote on 23 Nov 2018, 18:24 last edited by SamurayH
    #1

    I've noticed that the text of tooltip is auto wrapped in QWebEngineView. I tried to modify CSS so as to disable the word-wrap, but it doesn't work. On Chrome I don't have this problem.
    Here's some screenshots :
    QWebEngineView :
    0_1542997210675_0.PNG
    Chrome :
    0_1542997215934_1.PNG

    I'm using QWebEngineView::setHtml to display a local Html file.

    Is there a way to fix this ?

    "قال رسول الله صلى الله عليه وسلم : " أحب الناس إلى الله أنفعهم للناس

    J 1 Reply Last reply 23 Nov 2018, 20:17
    0
    • S SamurayH
      23 Nov 2018, 18:24

      I've noticed that the text of tooltip is auto wrapped in QWebEngineView. I tried to modify CSS so as to disable the word-wrap, but it doesn't work. On Chrome I don't have this problem.
      Here's some screenshots :
      QWebEngineView :
      0_1542997210675_0.PNG
      Chrome :
      0_1542997215934_1.PNG

      I'm using QWebEngineView::setHtml to display a local Html file.

      Is there a way to fix this ?

      J Offline
      J Offline
      JonB
      wrote on 23 Nov 2018, 20:17 last edited by
      #2

      @SamurayH
      Show the CSS you tried, just in case?

      S 1 Reply Last reply 24 Nov 2018, 11:45
      0
      • J JonB
        23 Nov 2018, 20:17

        @SamurayH
        Show the CSS you tried, just in case?

        S Offline
        S Offline
        SamurayH
        wrote on 24 Nov 2018, 11:45 last edited by SamurayH
        #3

        This is the Html:

        <div id="fullSc" class="tBB" title="FullScreen (Alt + F11)" onclick="fullSc(this);"><span></span></div>
        

        And here's the CSS :

        .tBB {
             width:32px;
             height:32px;
             color:#fff;
             font-size:18pt;
             font-family: IconFont;
             cursor:pointer;
        
             white-space:pre; // I tried this because it works with QTooltip (rich text)
                              // even if it will affect the div content only, and not its tooltip
        }
        .tBB:hover{
             color:#42AECC;
             transition: .5s;
        }
        

        "قال رسول الله صلى الله عليه وسلم : " أحب الناس إلى الله أنفعهم للناس

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SamurayH
          wrote on 25 Nov 2018, 20:27 last edited by SamurayH
          #4

          I've decided to report this issue as a bug here.
          Was you able to reproduce the issue ?

          "قال رسول الله صلى الله عليه وسلم : " أحب الناس إلى الله أنفعهم للناس

          1 Reply Last reply
          0

          1/4

          23 Nov 2018, 18:24

          • Login

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