Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Error: 'class QTextBrowser' has no member named 'setSizeAdjustPolicy'
QtWS25 Last Chance

Error: 'class QTextBrowser' has no member named 'setSizeAdjustPolicy'

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 2 Posters 2.0k 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.
  • N Offline
    N Offline
    NTCYP
    wrote on last edited by
    #1

    Hi,

    I put my dialog window the QTextBrowser and manualy in properties window I set the verticalScrollBarPolicy and horizontalScrollBarPolicy to be on. When I try to compile I get an error that says;

    error: 'class QTextBrowser' has no member named 'setSizeAdjustPolicy'
    

    Any help please?

    Kind Reagrds,

    1 Reply Last reply
    0
    • jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Qt documentation says: This property was introduced in Qt 5.2.
      Which Qt version do you use?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      N 1 Reply Last reply
      0
      • jsulmJ jsulm

        Qt documentation says: This property was introduced in Qt 5.2.
        Which Qt version do you use?

        N Offline
        N Offline
        NTCYP
        wrote on last edited by
        #3

        @jsulm I am using;

        Qt Creator 3.3.1 (opensource) Based on Qt 5.4.1 (GCC 4.6.1, 32 bit.
        

        And my .pro file set it to;

        QT += core gui

        greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
        

        But for my board my compiler is set to;

        Qt version 4.8.3 for Embedded Linux
        

        Kind Regards

        1 Reply Last reply
        0
        • jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          You cannot use setSizeAdjustPolicy in Qt 4.8
          You need at least Qt 5.2

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          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