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. How to use FancyTabWidget class
Forum Updated to NodeBB v4.3 + New Features

How to use FancyTabWidget class

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 718 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
    Mark81
    wrote on last edited by
    #1

    I was trying to make my own sub class of QTabWidget when I realized my goal was very close to the FancyTabWidget class, used in QtCreator in the left tabbar.

    Questions:

    • am I allowed to use it in my own application?
    • what's the recommended way to use it? Compile the whole plugin and use it as a library (including the headers and linking the dll) or import the source files into the project and deal with all the nested dependencies and adapt the code so it can compile as a standard class rather than a library?
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      AFAIK, Qt Creator is GPLv3 so if it fits your use case, then yes you can use it.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2
      • M Offline
        M Offline
        Mark81
        wrote on last edited by
        #3

        Thanks. I compiled the plugin (minGW and Qt5.11.0) and linked the Core4.dll library. In my code I try to create an instance:

        #include "fancytabwidget.h"
        
        // ...
        
        private:
            Core::Internal::FancyTabWidget *w;
        
        // ...
        
            w = new Core::Internal::FancyTabWidget(this);
        

        I got the following error:

        F:\MyProject\mainwindow.cpp:7: error: undefined reference to `Core::Internal::FancyTabWidget::FancyTabWidget(QWidget*)'
        

        Here the lines in my pro file:

        INCLUDEPATH += "D:/qt-creator-master/src/plugins/coreplugin/"
        LIBS += -L"D:/build-qtcreator-Desktop_Qt_5_11_0_MinGW_32bit-Release/lib/qtcreator/plugins" -lCore4
        
        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          This is a plugin, it doesn't export any specialise symbol. It might be easier to integrate the code directly into your project.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          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