Skip to content

3rd Party Software

Combining Qt with 3rd party libraries or components? Ask here!
1.1k Topics 5.5k Posts
  • 0 Votes
    12 Posts
    5k Views
    ?

    @raf924 thanks you very very much! i am going to test it out right now!

  • 0 Votes
    5 Posts
    2k Views
    G

    @SGaist
    THX,it's work good.
    I think this way is best way.

  • sddm returns a QT error

    3
    0 Votes
    3 Posts
    2k Views
    I

    I digged a little into sddm source code to find the code causing this and this is what I found. I added setenv manually so it finds the KDE QML files. Is there some kind of initialization not done ? The messages appear when ScreenModel() is called.

    //// GreeterApp.cpp

    GreeterApp::GreeterApp(int &argc, char **argv) : QGuiApplication(argc, argv) { // point instance to this self = this; // Parse arguments bool testing = false; if (arguments().contains("--test-mode")) testing = true; // get socket name QString socket = parameter(arguments(), "--socket", ""); setenv("QML2_IMPORT_PATH", "/opt/qt5/lib/qt5/qml:/usr/lib/qt5/qml:/lib/qt5/qml:/opt/kf5/lib/qt5/qml", 1); setenv("QML_IMPORT_PATH", "/opt/qt5/lib/qt5/qml:/usr/lib/qt5/qml:/lib/qt5/qml:/opt/kf5/lib/qt5/qml", 1); // get theme path QString themePath = parameter(arguments(), "--theme", ""); // create view m_view = new QQuickView(); m_view->setResizeMode(QQuickView::SizeRootObjectToView); m_view->engine()->addImportPath(IMPORTS_INSTALL_DIR); // read theme metadata m_metadata = new ThemeMetadata(QString("%1/metadata.desktop").arg(themePath)); // Translations // Components translation m_components_tranlator = new QTranslator(); if (m_components_tranlator->load(QLocale::system(), "", "", COMPONENTS_TRANSLATION_DIR)) installTranslator(m_components_tranlator); // Theme specific translation m_theme_translator = new QTranslator(); if (m_theme_translator->load(QLocale::system(), "", "", QString("%1/%2/").arg(themePath, m_metadata->translationsDirectory()))) installTranslator(m_theme_translator); // get theme config file QString configFile = QString("%1/%2").arg(themePath).arg(m_metadata->configFile()); // read theme config m_themeConfig = new ThemeConfig(configFile); // set default icon theme from greeter theme if (m_themeConfig->contains("iconTheme")) QIcon::setThemeName(m_themeConfig->value("iconTheme").toString()); // set cursor theme according to greeter theme if (m_themeConfig->contains("cursorTheme")) qputenv("XCURSOR_THEME", m_themeConfig->value("cursorTheme").toString().toUtf8()); // create models m_sessionModel = new SessionModel(); /////////// ScreenModel() is called here m_screenModel = new ScreenModel(); m_userModel = new UserModel(); m_proxy = new GreeterProxy(socket); m_keyboard = new KeyboardModel(); if(!testing && !m_proxy->isConnected()) { qCritical() << "Cannot connect to the daemon - is it running?"; exit(EXIT_FAILURE); } // Set numlock upon start if (m_keyboard->enabled()) { if (mainConfig.Numlock.get() == MainConfig::NUM_SET_ON) m_keyboard->setNumLockState(true); else if (mainConfig.Numlock.get() == MainConfig::NUM_SET_OFF) m_keyboard->setNumLockState(false); } m_proxy->setSessionModel(m_sessionModel); // connect proxy signals QObject::connect(m_proxy, SIGNAL(loginSucceeded()), m_view, SLOT(close())); // set context properties m_view->rootContext()->setContextProperty("sessionModel", m_sessionModel); m_view->rootContext()->setContextProperty("screenModel", m_screenModel); m_view->rootContext()->setContextProperty("userModel", m_userModel); m_view->rootContext()->setContextProperty("config", *m_themeConfig); m_view->rootContext()->setContextProperty("sddm", m_proxy); m_view->rootContext()->setContextProperty("keyboard", m_keyboard); // get theme main script QString mainScript = QString("%1/%2").arg(themePath).arg(m_metadata->mainScript()); // set main script as source m_view->setSource(QUrl::fromLocalFile(mainScript)); // connect screen update signals connect(m_screenModel, SIGNAL(primaryChanged()), this, SLOT(show())); show(); }

    //// ScreenModel.cpp

    ScreenModel::ScreenModel(QObject *parent) : QAbstractListModel(parent), d(new ScreenModelPrivate()) { // The messages appear at this code connect(QGuiApplication::instance(), SIGNAL(screenAdded(QScreen*)), this, SLOT(onScreenAdded(QScreen*))); initScreens(true); }
  • 0 Votes
    7 Posts
    5k Views
    H

    http://api.kde.org/frameworks-api/frameworks5-apidocs/solid/html/index.html

  • qwt log scale Limits

    2
    0 Votes
    2 Posts
    1k Views
    K

    Hi and welcome to devnet

    Did you try already autoScale()?

    PS: I will move your thread to "3rd Party Software", where threads concerning QWT can be found.
    Furthermore, it is also a good idea to post in QWT mailing list. There you might a better response than here in this forum.

  • 0 Votes
    4 Posts
    4k Views
    M

    @shoobomb Can you post your .pro project file?

  • 0 Votes
    4 Posts
    2k Views
    SGaistS

    In that case, I'd recommend to take a look at KDAB's blog entry about Qt Input Method In Depth

    The followup article will be even more useful, but this one is already a good starting point.

  • Qt and REDIS interface [SOLVED]

    8
    2 Votes
    8 Posts
    13k Views
    DuncanD

    @xtingray

    This helped a bunch, I got it to work !!!!

    Thanks you sir for your time,

    Duncan

  • Qwt graph page crashes GUI

    21
    0 Votes
    21 Posts
    8k Views
    K

    I can come back only to the initial recommendation to check also with the Qwt mailing list.

    Possibly you hook to a problem of versions. Qwt had to be updated for Qt 5 for instance.

  • 0 Votes
    2 Posts
    919 Views
    A

    I have not seen this done. I imagine we will have a solution for this before the year's end. In Other platforms we have used Gradle and Jenkins to solve this problem. Appery.io builds in the cloud but doesn't support (IOS ipa) without being on a Mac. I think its slightly harder than everybody thinks for the Mac solution. A provisioning file puts a Monkey wrench into a lot of this.

  • 0 Votes
    2 Posts
    1k Views
    SGaistS

    Hi,

    If you want to build KDSOAP for 32bit then just use a 32bit Qt build. You'll avoid all these troubles

  • Qwt graph page crashes GUI

    Locked
    2
    0 Votes
    2 Posts
    662 Views
    SGaistS

    Hi,

    Please, don't post the same question multiple times,

    You already have answers here

    Closing this one

  • 0 Votes
    1 Posts
    555 Views
    No one has replied
  • 0 Votes
    9 Posts
    3k Views
    S

    Could you send us the minimum projects which could reproduce the bugs(.hpp, .cpp and your .pro), if you could put it on github, it would be even better(easier for us to download and test it)
    I have a long time haven't played with openCV2, but I do have some experience about it

    By the way, since you are using Qt, why not just use QLabel or graphicsview framework to show the image?If you need to convert the QImage and cv::Mat, you could look at here.

  • 0 Votes
    2 Posts
    4k Views
    K

    @HappyCoder

    Out of personal experience I recommend also to ask your question on QWT mailing list
    AFAIK QWT is still independent and only based on Qt libs. Uwe has been monitoring this forum in the past, but answers are potentially faster through QWT mailing list.

  • Class Diagram Tool

    7
    0 Votes
    7 Posts
    2k Views
    C

    Try yEd i found it really cool, with lot of useful stuff, and it' free!!

  • 0 Votes
    4 Posts
    2k Views
    SGaistS

    What if you detach the curve and delete it by hand ?

  • Qtilities Logging

    4
    0 Votes
    4 Posts
    1k Views
    M

    @Maxxximo said:

    Finding a simple and STABLE, thread safe logging library is apparently a difficult task...

    We are using Log4Qt. It works pretty well (but you need to apply some code patch to build it with Qt5)

  • Building error qt4.8.6 phonon on mac os x10.10

    2
    0 Votes
    2 Posts
    1k Views
    SGaistS

    Hi,

    You should rather try with 4.8.7 (or from git)

  • A bug ghost!

    2
    0 Votes
    2 Posts
    1k Views
    JKSHJ

    @Duino said:

    I just meet a bug ghost in my code.That means if I try to find what happen inside,the code runs well.But if I don't, bugs happen.

    It's not a ghost. It's a Heisenbug :)

    How should I catch this bug ghost???

    Simplify your program, do unit testing. and use a tool like Valgrind.