Qt Forum

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

    Qt Academy Launch in California!

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

    Mobile and Embedded
    2
    4
    1731
    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.
    • N
      NTCYP last edited by

      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 Reply Quote 0
      • jsulm
        jsulm Lifetime Qt Champion last edited by

        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 Reply Quote 0
        • N
          NTCYP @jsulm last edited by

          @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 Reply Quote 0
          • jsulm
            jsulm Lifetime Qt Champion last edited by

            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 Reply Quote 0
            • First post
              Last post