Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • Linux - Support system's theme change

    16
    0 Votes
    16 Posts
    8k Views
    A
    Oh, I already have from Qt Creator's source code. :) It's just that I am still struggling about the overall structure of the source code, so I tend to use it as a last resource.
  • Article about Qt bugs found with static analyzer "PVS-Studio"

    11
    1 Votes
    11 Posts
    6k Views
    S
    bq. Translation: How to make fewer errors at the stage of code writing. Part N3. http://www.viva64.com/en/a/0075/ nice link @Andrey_Karpov
  • Using QtOpenCL with multiple devices

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • [SOLVED] File standard system editor

    4
    0 Votes
    4 Posts
    2k Views
    G
    You can also include the "help framework":http://developer.qt.nokia.com/doc/qt-4.7/qthelp-framework.html that's provided by Qt. You can find a simple example "here":http://developer.qt.nokia.com/doc/qt-4.7/examples-helpsystem.html
  • Play sound in ubuntu linux suggestion

    6
    0 Votes
    6 Posts
    6k Views
    A
    Thanks, the last one worked fine :)
  • Offset for QHelpEvent pos() function

    4
    0 Votes
    4 Posts
    3k Views
    A
    Thanks. mapFromGlobal() is that thing that I searching for.
  • How do I install widgets from Qt-Apps?

    6
    0 Votes
    6 Posts
    4k Views
    D
    Congratulation to your success!
  • [solved]how can i include a class in a dialog?

    4
    0 Votes
    4 Posts
    3k Views
    K
    I just want to make you aware of on option to store such information user names and related information into a file. "QSettings ":http://doc.qt.nokia.com/4.7/qsettings.html Typically QSettins facilitates that quite nicely for different applications and platforms. On windows you have the option to store in ini-files and also for linux the data are more easily maintained compared to hand-knitted files. You may use the file structure behind the scenes and open it from any place in your program. Maybe that would be of help. I cannot answer your quite detailed question above. main.cpp is just a name of a file which presumably holds most or all information of your code. It all depends on what you are trying to achieve and how your program is setup. I guess it is somehow possible, but there is no way to provide details without knowing more. Anyhow, I think it would be good if you have a look to the possibilities of QSettings.
  • Can't make child in Qtreeview using QStandardItemModel

    2
    0 Votes
    2 Posts
    3k Views
    D
    Try to use QStandardItemModel directly with your QTreeView. If you can see the "child" then the problem is with your GroupSortFilterProxyModel which in your case is located between QTreeView and QStandardItemModel.
  • Using the Intel C++ Compiler in Qt Creator

    7
    0 Votes
    7 Posts
    11k Views
    D
    bq. So it’s not necessary to compile Qt and Qt Creator in icc? It does not matter what compiler was used to build Qt Creator. As Volker mentioned, for Qt you must use a binary compatible compiler
  • Qt meta class

    14
    0 Votes
    14 Posts
    6k Views
    C
    Here are some chunks of codes which you can run for the basic understanding of Qt meta system. @#include <QtCore/QCoreApplication> #include <iostream> using namespace std; #include <QObject> class MyApp : public QObject { Q_OBJECT public: MyApp() {} }; class MyNonQObject : public QObject { public: MyNonQObject() {} }; class MyQObject : public QObject { Q_OBJECT public: MyQObject() {} }; int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); MyQObject obj; obj.setObjectName("instanceName"); QString objName = obj.objectName(); QString clasName = obj.metaObject()->className(); cout << "MyQObject objName: " << objName.toStdString() <<endl; cout << "MyQObject className: " << clasName.toStdString() <<endl; bool isherited = obj.inherits("QObject"); cout << "Derive from QObject ? " << isherited << endl; isherited = obj.inherits("QWideget"); cout << "Derive from QWideget ? " << isherited << endl; MyNonQObject obj2; clasName = obj2.metaObject()->className(); cout << "MyNonQObject className: " << clasName.toStdString() <<endl; int sizeOfQObject = sizeof(QObject); cout << "size of QObject: " << sizeOfQObject <<endl; return a.exec&#40;&#41;; } @
  • Communications over Wi-Fi

    7
    0 Votes
    7 Posts
    5k Views
    D
    changsheng230, socket is always socket and it doesn't matter what os/arch sits on the other side. What do you mean by "socket programming which iOS/Android supported"?
  • [Solved] How to reflect an image at a label?

    5
    0 Votes
    5 Posts
    6k Views
    L
    Cool thanks, it works!
  • OpenGL painter->fillRect Question

    3
    0 Votes
    3 Posts
    3k Views
    Z
    You are trying to mix OpenGL rendering with QPainter painting and you are also trying to paint on the widget outside of the paint event. If you want to ue QPainter in addition to OpenGL - ie not using OpenGL to draw all of yoru scene then I suggest you have a read of the the "OpenGL overpainting example":http://doc.qt.nokia.com/latest/opengl-overpainting.html.
  • [SOLVED] QListView - To select a disabled item

    4
    0 Votes
    4 Posts
    4k Views
    A
    Ok, I have just fixed the issue I mentioned above. Clearly still learning about (powerful) delegates... ( https://github.com/opencor/opencor/commit/5334d6b3c6f150643d1ede14b3471bae41044e03 )
  • [solved]calling a dialog in another dialog

    25
    0 Votes
    25 Posts
    15k Views
    R
    ok.sure.
  • [Solved] Qt kills unconditionally??

    9
    0 Votes
    9 Posts
    3k Views
    T
    thank you all my problem is solved
  • [QtNetwork] Reading and writing data

    7
    0 Votes
    7 Posts
    6k Views
    B
    Thanks for a very long and nice explanation. I have to admit that this forum is probably the best forum I know :) My friend's given me some links about security and I hope they'd answer my question how I can protect from potential attacks. Topic can be closed. Thx again!
  • Problem while running Box 2d

    17
    0 Votes
    17 Posts
    6k Views
    K
    i had made a change and copy my box2d folder in my working folder., SOURCES += main.cpp INCLUDEPATH += $$PWD/Box2D_v2.0.1/Box2D/Include LIBPATH += $$PWD/Box2D_v2.0.1/Box2D/Source/Gen/float LIBS += -lbox2d but the problem still occures..
  • [Solved] Display qDebug messages to a textbrowser

    2
    0 Votes
    2 Posts
    5k Views
    L
    There is an example of that on the wiki: "Browser for QDebug output":http://developer.qt.nokia.com/wiki/Browser_for_QDebug_output