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. Qt on Linux problem
Forum Updated to NodeBB v4.3 + New Features

Qt on Linux problem

Scheduled Pinned Locked Moved General and Desktop
7 Posts 2 Posters 2.6k Views 2 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.
  • M Offline
    M Offline
    marksibly
    wrote on last edited by
    #1

    Hi,

    I'm trying to build a qt5 app on linux (mint 17.2 cinnamon) and get these compile errors:

    no member named 'setTabBarAutoHide' in 'TabWidget'
    no member named 'setPlaceholderText' in 'QPlainTextEdit'

    This occurs in the auto-generated ui_mainwindow.h file. I've deleted the build dir, cleaned all, ran qmake again (and again...) etc and still no luck.

    The Qt kit selected is apparently 5.2.1, and it builds fine on the Mac and Windows.

    Compiler output looks like this:

    clang++ -c -pipe -O2 -std=c++11 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-clang -I../ted2 -I/usr/include/qt5 -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -I. -I. -I. -o mainwindow.o ../ted2/mainwindow.cpp
    In file included from ../ted2/mainwindow.cpp:7:
    ./ui_mainwindow.h:140:20: error: no member named 'setTabBarAutoHide' in 'TabWidget'
            tabWidget->setTabBarAutoHide(false);
            ~~~~~~~~~  ^
    ./ui_mainwindow.h:306:26: error: no member named 'setPlaceholderText' in 'QPlainTextEdit'
            consoleTextEdit->setPlaceholderText(QApplication::translate("MainWindow", "Building...", 0));
    

    Any ideas? I'm on the verge reinstalling linux from scratch, but I'd rather not!

    Bye,
    Mark

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

      @marksibly said:

      setTabBarAutoHide

      "This property was introduced in Qt 5.4"

      So what version are you using on mac and windows?

      So before killing mint, try to update qt ?

      1 Reply Last reply
      0
      • M Offline
        M Offline
        marksibly
        wrote on last edited by
        #3

        So what version are you using on mac and windows?

        Qt5.5, and the setTabBarAutoHide are present in ui_mainwindow.h on mac/pc too.

        So before killing mint, try to update qt ?

        I've done a 'sudo apt-get upgrade' - is there more I can try?

        The Qt version I installed is from the qt download center, BUT I did try and apt-get install Qt before that which I guess may have thrown things.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          marksibly
          wrote on last edited by
          #4

          Clean install did the trick...

          mrjjM 1 Reply Last reply
          0
          • M marksibly

            Clean install did the trick...

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

            @marksibly

            Super.
            Of Qt or did mint die ?

            1 Reply Last reply
            0
            • M Offline
              M Offline
              marksibly
              wrote on last edited by
              #6

              Of Qt or did mint die ?

              Reinstalled mint from scratch, then ran the qt online installer, then a bunch of apt-gets for missing stuff.

              I love qt, but it can be a bear to install/maintain!

              mrjjM 1 Reply Last reply
              0
              • M marksibly

                Of Qt or did mint die ?

                Reinstalled mint from scratch, then ran the qt online installer, then a bunch of apt-gets for missing stuff.

                I love qt, but it can be a bear to install/maintain!

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

                @marksibly
                yeah its a complex system.
                I run ubuntu in a virtual machine so I can always snapshot back to a known point when
                i fux it up ;)

                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