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. [SOLVED]Qt5 RC 2 Issue with QTextBrowser
Forum Updated to NodeBB v4.3 + New Features

[SOLVED]Qt5 RC 2 Issue with QTextBrowser

Scheduled Pinned Locked Moved General and Desktop
6 Posts 2 Posters 2.3k 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.
  • B Offline
    B Offline
    b1gsnak3
    wrote on last edited by
    #1

    Hello.

    I wanted to try Qt5 RC2 to see if the gif animation issue in QTextDocument was ressolved but I can't seem to use the QTextBrowser or QTextEdit from either qt4 or qt3. Anyone know why this is happening? I get errors in the libraries when I try to use the older libraries.

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Can you rephrase the question? I'm reading it oven and over again, but can't determine what you have meant.

      What are you actually doing? What is this bit about using Qt4 and even the dinosaur of Qt3? If you mean that you have compiled your app using Qt5 and then tried running it against Qt4/3 libraries, then the answer is easy: don't do this, it won't work. A completely reversed situation will also fail.

      Qt has binary compatibility for major versions, but not between different majors.

      (Z(:^

      1 Reply Last reply
      0
      • B Offline
        B Offline
        b1gsnak3
        wrote on last edited by
        #3

        Well, I need a QTextBrowser or a QTextEdit to test if the new QTextDocument from qt5 supports gif animations.
        The libraries from qt5 don't have the QTextBrowser or QTextEdit classes anymore. So, I tried using the older classes from qt4 and qt3 and the setDocument method but they gave me errors when compiling.
        Yes I have compiled with qt5 but I have added the qt4 libraries in the pro file. And if the qt3 shouldn't work why does qt5 still have the libraries for it?

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          Are you sure? Try including <QtWidgets/QTextEdit>. Widgets constitute now a new module. You also have to add QT += widgets to your .pro file.

          (Z(:^

          1 Reply Last reply
          0
          • B Offline
            B Offline
            b1gsnak3
            wrote on last edited by
            #5

            thank you sierdzio :D

            1 Reply Last reply
            0
            • sierdzioS Offline
              sierdzioS Offline
              sierdzio
              Moderators
              wrote on last edited by
              #6

              Aha, so that was it. Just a quick follow-up from me, then:

              • "Qt5 porting guide":http://qt-project.org/doc/qt-5.0/qtdoc/portingguide.html
              • "What's new in Qt5":http://qt-project.org/doc/qt-5.0/qtdoc/qt5-intro.html

              (Z(:^

              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