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. Porting from QT4.6 to QT5

Porting from QT4.6 to QT5

Scheduled Pinned Locked Moved Unsolved General and Desktop
44 Posts 8 Posters 21.9k Views 5 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.
  • Q Qt Enthusiast

    I am using solution

    #include <QtWebKit/QtWebKit>
    #include <QtWebKitWidgets/QtWebKitWidgets>

    is that solution Ok

    JKSHJ Offline
    JKSHJ Offline
    JKSH
    Moderators
    wrote on last edited by
    #34

    @Qt-Enthusiast said in Porting from QT4.6 to QT5:

    is that solution Ok

    Did you read the link I gave you?

    Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

    1 Reply Last reply
    0
    • Q Offline
      Q Offline
      Qt Enthusiast
      wrote on last edited by
      #35

      yesI read that from there only I found out and I wanted to confirm the same

      JKSHJ 1 Reply Last reply
      0
      • Q Qt Enthusiast

        yesI read that from there only I found out and I wanted to confirm the same

        JKSHJ Offline
        JKSHJ Offline
        JKSH
        Moderators
        wrote on last edited by
        #36

        @Qt-Enthusiast said in Porting from QT4.6 to QT5:

        yesI read that from there only I found out and I wanted to confirm the same

        You don't need to ask to confirm. You can confirm yourself by trying it.

        Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

        1 Reply Last reply
        3
        • Q Offline
          Q Offline
          Qt Enthusiast
          wrote on last edited by
          #37

          QStyleOptionViewItemV4' is deprecated , what should be the solution to fix this

          fatal error: QCleanlooksStyle: No such file or directory
          compilation terminated.

          how to solve these errors

          mrjjM 1 Reply Last reply
          0
          • Q Qt Enthusiast

            QStyleOptionViewItemV4' is deprecated , what should be the solution to fix this

            fatal error: QCleanlooksStyle: No such file or directory
            compilation terminated.

            how to solve these errors

            mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by mrjj
            #38

            @Qt-Enthusiast
            Hi
            You can use QStyleOptionViewItem directly.

            QCleanlooksStyle is worse. why does app need its includes ?
            You can compile the old style plugin by yourself, but now is a good
            opportunity to get rid of it. So please tell why app needs it.

            Any how, its all explained here
            http://doc.qt.io/qt-5/sourcebreaks.html
            read Changes to QStyle
            It also says how to get it back if needed.

            1 Reply Last reply
            1
            • Q Offline
              Q Offline
              Qt Enthusiast
              wrote on last edited by Qt Enthusiast
              #39

              error: 'QFusionStyle' does not name a type
              59 hdr->setStyle( new QFusionStyle );

              I included the file QTwidgets

              not working Need help again

              1 Reply Last reply
              0
              • Q Offline
                Q Offline
                Qt Enthusiast
                wrote on last edited by
                #40

                @Qt-Enthusiast said in Porting from QT4.6 to QT5:

                I am using solution

                I am using
                QHeaderview* heade r = new QHeaderView
                #if QT_VERSION >= QT_VERSION_CHECK(5,0,0)
                header->setStyle( new QFusionStyle );
                #else
                header->setStyle( new QCleanlooksStyle );
                #endif
                I am getting error: 'QFusionStyle' does not name a type

                Can some use help in proper usage of fusion style

                aha_1980A 1 Reply Last reply
                0
                • Q Qt Enthusiast

                  @Qt-Enthusiast said in Porting from QT4.6 to QT5:

                  I am using solution

                  I am using
                  QHeaderview* heade r = new QHeaderView
                  #if QT_VERSION >= QT_VERSION_CHECK(5,0,0)
                  header->setStyle( new QFusionStyle );
                  #else
                  header->setStyle( new QCleanlooksStyle );
                  #endif
                  I am getting error: 'QFusionStyle' does not name a type

                  Can some use help in proper usage of fusion style

                  aha_1980A Offline
                  aha_1980A Offline
                  aha_1980
                  Lifetime Qt Champion
                  wrote on last edited by
                  #41

                  @Qt-Enthusiast

                  See here: http://doc.qt.io/qt-5/sourcebreaks.html#changes-to-qstyle

                  "
                  QFusionStyle is internal. Recommended alternatives:

                  • QStyleFactory for creating instances of specific styles.
                  • QProxyStyle for customizing existing style implementations.
                  • QCommonStyle as a base for implementing full custom styles.

                  "

                  Qt has to stay free or it will die.

                  1 Reply Last reply
                  1
                  • M Offline
                    M Offline
                    mpergand
                    wrote on last edited by mpergand
                    #42

                    @Qt-Enthusiast said in Porting from QT4.6 to QT5:

                    header->setStyle( new QFusionStyle );

                    header->setStyle( "Fusion" );  // maybe for QApplication only
                    // or
                    header->setStyle( new QStyleFactory::create("Fusion" ));
                    
                    1 Reply Last reply
                    0
                    • Q Offline
                      Q Offline
                      Qt Enthusiast
                      wrote on last edited by
                      #43

                      @mpergand said in Porting from QT4.6 to QT5:

                      new QStyleFactory::create("Fusion" )
                      its is not working

                      can some one point me to a example how Qfusion style is being used in the Qt 5 code

                      1 Reply Last reply
                      0
                      • M Offline
                        M Offline
                        mpergand
                        wrote on last edited by mpergand
                        #44
                        setStyle(QStyleFactory::create("Fusion")); // without new
                        

                        For me (OSX), it works only with QApplication, not with QWidget

                        1 Reply Last reply
                        1

                        • Login

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