Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.5k Topics 457.3k Posts
  • Scrolling a QTableWidget while it is populating

    3
    0 Votes
    3 Posts
    1k Views
    M
    If it is Solved, kindly prepend [Solved] to your Question.... Thanks & Regards
  • QT and OpenGL for games

    3
    0 Votes
    3 Posts
    3k Views
    Z
    I agree with Tobias. In fact Qt5 with QWindow, QOpenGLContext and friends is actually a very nice alternative to SDL, glut etc. How you keep the event loop responsive is entirely down to what you do in the main thread. You can of course offload your rendering to a worker thread - Qt Quick 2 does exactly this.
  • OpenGL issues in QT5

    2
    0 Votes
    2 Posts
    2k Views
    Z
    My advice is start off simple and just use a QWindow subclass, create yourself a QOpenGLContext to get your own rendering working. Once that is working, change your window class to inherit from QDeclarativeView and set a QML scene on it and integrate your rendering. These two videos may be of interest to you ;) http://www.youtube.com/watch?v=VxsS7u-vgc8&list=PLizsthdRd0YzYe5T3Txgg7TUGVi-ijq4d&index=20 http://www.youtube.com/watch?v=GYa5DLV6ADQ&list=PLizsthdRd0YzYe5T3Txgg7TUGVi-ijq4d&index=21
  • QTextEdit; adjustSize() not working?

    3
    0 Votes
    3 Posts
    3k Views
    G
    Thanks for your help :) but I solved it by calculating width and height and setting the geometry.
  • Regarding the navigation from one window to other

    13
    0 Votes
    13 Posts
    7k Views
    S
    i have read the Qwt examples . but there is no proper guidance
  • MinGW and Qt 5.0 RC

    2
    0 Votes
    2 Posts
    1k Views
    I
    Developers has plan for it "http://blog.qt.digia.com/blog/2012/12/13/qt-5-0-rc2-released/#comment-116858":http://blog.qt.digia.com/blog/2012/12/13/qt-5-0-rc2-released/#comment-116858 If not with 5.0 Release then with 5.0.1.
  • Principles in connecting multiple apps in an AD-HOC connection

    8
    0 Votes
    8 Posts
    4k Views
    C
    Thanks Mulder!
  • 0 Votes
    2 Posts
    1k Views
    D
    ??
  • [SOLVED] Error while compiling with Python 3.3

    4
    0 Votes
    4 Posts
    2k Views
    D
    Yeah...Problem Solved!!!
  • [Solved] Is QMessageBox missing from Qt5-RC2?

    4
    0 Votes
    4 Posts
    16k Views
    S
    Thanks for the advice! I am still having some other issues with the SQLite database I use with my application, and I am still trying to find out what causes the problem.
  • Statically-built Qt4.8.4 cannot build DLL for a Shared Library

    3
    0 Votes
    3 Posts
    2k Views
    C
    OK, I found out that statically built Qt cannot produce dll files which can only be produced with "shared Qt". Though you can link a "statically-built" app with a "shared-built" dll/library file, you may end up adding the QtGui, QtCore, etc DLLS since it is needed by your generated library. Thanks for the link though. One of these days I will try to read those. Cheers and more powers! PS. I will not YET mark this thread as [solved]. I am waiting for other devs to post if they found solution to this problem.
  • [Solved] How can I add a QLineEdit to Menubar?

    5
    0 Votes
    5 Posts
    10k Views
    M
    Thanks for your reply Code_ReaQtor....
  • Problem with network proxy

    2
    0 Votes
    2 Posts
    2k Views
    A
    Is their any solution to this problem or is it that it can't be done using Qt?
  • [SOLVED]How to use shortcuts for QActions

    7
    0 Votes
    7 Posts
    4k Views
    A
    Thanks a lot. It did the job
  • Auto-Suggest doesn't work with Qt Libs.

    2
    0 Votes
    2 Posts
    1k Views
    M
    Nevermind, figured it out. In the kit's section, I didn't leave the sysroot blank, which caused the problem. Hope this helps someone.
  • DumpObjectTree not showing any output in netbeans Linux Kubuntu

    2
    0 Votes
    2 Posts
    2k Views
    H
    I found the code and copied it into simple little class (bellow) and it works that way But the QObject::DumpObjectTree() still does not work. I call it like this from main. @ MainWindow mw; DumpTree::dumpObjectTree(&mw); mw.show();@ I changed the method declarations so instead of dumping “this' I pass in a pointer to what I want dumped. Otherwise the code is exactly how I copied it out of qobject.cpp file. This will work for now but it would be nice to get it fixed right, especially if other people are having the same problem. Any ideas how to troubleshoot this. Thanks @#ifndef DUMPOBJECTTREE_H #define DUMPOBJECTTREE_H #include <QObject> class DumpTree : public QObject { Q_OBJECT public: static void dumpObjectTree( const QObject* ob) { dumpRecursive(0, ob); } private: static void dumpRecursive(int level, const QObject *object) { #if defined(QT_DEBUG) if (object) { QByteArray buf; buf.fill(' ', level / 2 * 8); if (level % 2) buf += " "; QString name = object->objectName(); QString flags = QLatin1String(""); #if 0 if (qApp->focusWidget() == object) flags += 'F'; if (object->isWidgetType()) { QWidget * w = (QWidget ) object; if (w->isVisible()) { QString t("<%1,%2,%3,%4>"); flags += t.arg(w->x()).arg(w->y()).arg(w->width()).arg(w->height()); } else { flags += 'I'; } } #endif qDebug("%s%s::%s %s", (const char) buf, object->metaObject()->className(), name.toLocal8Bit().data(), flags.toLatin1().data()); QObjectList children = object->children(); if (!children.isEmpty()) { for (int i = 0; i < children.size(); ++i) dumpRecursive(level + 1, children.at(i)); } } #else Q_UNUSED(level) Q_UNUSED(object) #endif } }; #endif /* DUMPOBJECTTREE_H */ @
  • Using QT5 on windows

    2
    0 Votes
    2 Posts
    2k Views
    ZlatomirZ
    To use it with VS2012 or MinGW you will need to build Qt framework yourself (with the compiler you want to use) - "here":releases.qt-project.org/qt5.0/rc2/single/qt-everywhere-opensource-src-5.0.0-rc2.zip is a link to RC2 source code. //you can search on doc/wiki on how to build Qt - and also ask here if something isn't clear.
  • How to close all Dialogs opened on my app on exit...

    6
    0 Votes
    6 Posts
    5k Views
    M
    bq. Have some Dialog that I can set the “QWidget *parent”, but someone I can’t do that, because I show the Dialog in class extended from QObject! Dialog without parent is not a good idea. If you derive your own class from QObject and an instance of that class is going to create a QDialog, nothing is holding you from adding a member variable of type "QWidget*" to your class to store the pointer to the parent dialog. So when the instance of your class (derived from QObject) is created, pass the parent pointer in constructor or via a separate setParentWidget(QWidtget *ptr)". Then, when the QDialog is created, use the pointer you stored before as the parent. And if you don't like this solution for whatever reason, you can still use "qApp()->activeWindow()" as parent for your QDialog... @class MyClass : public QObject { public: MyClass(QWidget *ptr) { m_parent = ptr; } private: QWidget *m_parent; void showDialog(void) { QDialog myDlg = new QDialog(m_parent); myDlg->exec(&#41;; } };@
  • [SOLVED]Qt5 RC 2 Issue with QTextBrowser

    6
    0 Votes
    6 Posts
    2k Views
    sierdzioS
    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
  • Qt: Display Filesystem in A Customized Way inside QTreeView

    2
    0 Votes
    2 Posts
    1k Views
    S
    I think the only way is to just subclass QStandardItemModel (or QAbstractItemModel) and do the file system listings instead of using QFileSystemModel. But it looks complicated. Can anyone help me achieve this?