Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    One widget has different view in Linux, Mac OS X, Windows

    General and Desktop
    1
    1
    929
    Loading More Posts
    • 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
      Lucky_spirit last edited by

      Hi, everybody!
      I write small application. I need to show some html page. To do it I use QTextBrowser. It showed this page good, but it's size was bigger than I need. I try to use QVBoxLayout and Stretch. It didn't bring a lot of advantage. Then I created my own class that was inherited by QTextBrowser and in new class I wrote my sizeHint() and minimumSizeHint() functions.
      In Linux they show html page so as I want. With empty document size equals 0 and in other variants it widget becomes the necessary size. But it works only in Linux with KDE. In Windows and Mac OS X my widget became 0-sized in all cases. Can you help me?
      Source code of my application is at GitHub here: "https://github.com/Lucky-spirit/Financial-analysis":https://github.com/Lucky-spirit/Financial-analysis . This widget is EvgTextBrowser.

      1 Reply Last reply Reply Quote 0
      • First post
        Last post