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. One widget has different view in Linux, Mac OS X, Windows
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.0k 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
    Lucky_spirit
    wrote on 16 Oct 2012, 12:41 last edited by
    #1

    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
    0

    1/1

    16 Oct 2012, 12:41

    • Login

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