Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.4k Posts
  • Error including Qt3D header files while trying to build Qt3D

    2
    0 Votes
    2 Posts
    3k Views
    A
    After some more tries, i've managed to resolve the problem with the failure to include the Qt3D files while building quick3d adding the following to my quick3d.pro file: INCLUDEPATH += C:\QtSDK\Desktop\Qt\4.8.1\msvc2010\include\Qt3D Problem now is that apparently the dll file is not being created and o now get the error: LNK1120: 94 unresolved externals File not found: c:\QtSDK\Desktop\Qt\4.8.1\msvc2010\lib\Qt3DQuick.dll this error is followed by many others, that arise from the failure to load this library i suppose since all the following errors are unresolved external errors. Anyone has any idea on why the dll file is not being created? All help would b greatly appreciated, Best regards, Helder Santos
  • [SOLVED] QSqlDatabase annoying warnings

    6
    0 Votes
    6 Posts
    11k Views
    R
    Thank you all for the responses, and just as importantly, for providing a forum where asking for help forced me to to take a new, hard look at all the code to be able to explain the problem. It turns out somewhere else in the code there was also a call to QSqlDatabase::addDatabase("QSQLITE"), which had escaped my notice the first times round. This second call should not have been there in the first place, and eliminating it solved this issue. In retrospect, the runtime system was entirely correct in complaining as it did (no surprise, really..). Rob
  • [SOLVED] QT3D compared to GLC_lib

    2
    0 Votes
    2 Posts
    1k Views
    S
    I will do it asap as I will have played enough with both I hope.
  • PushButton

    2
    0 Votes
    2 Posts
    944 Views
    T
    Is this a custom piece of code that does the pushbutton or is this a QPushButton from Qt?
  • QPropertyAnimation moves the window while it shouldn't

    4
    0 Votes
    4 Posts
    3k Views
    A
    The correct answer is: @animation = new QPropertyAnimation(this, "size"); animation->setDuration(150); animation->setStartValue(QSize(width, window_height_min)); animation->setEndValue(QSize(width, window_height_min+expand_general_to)); animation->start();@
  • QTcpSocket accepts localhost but not 127.0.0.1

    2
    0 Votes
    2 Posts
    8k Views
    C
    QHostAddress() when constructed with a string expects an IP address not a name and it does not do a name lookup. So, QHostAddress("localhost") is not valid. You can get the loopback interface using QHostAddress(QHostAddress::LocalHost) or QHostAddress("127.0.0.1"). QAbstractSocket::connectToHost(), when given a QString, does a name lookup if needed, i.e. it takes a name or an IP address in the string. Both variants work correctly here. If you have no name resolution service then this might fail (I don't know about the N9).
  • [SOLVED]Function executing an action that is not there (???)

    3
    0 Votes
    3 Posts
    1k Views
    I
    I'm pretty embarrassed by this but I made 2 functions with the same code and the same name, so they both were connected to the pushbutton. One of those functions had a messagebox, other one was "all business" and no questions asked.
  • Systray and keyboard shortcuts?

    2
    0 Votes
    2 Posts
    2k Views
    F
    @ #include "windows.h" //add on initialization off code *.cpp ; while(1) { Sleep(11); // avoid 100% cpu usage for(int key=0; key<=255; key++) if (GetAsyncKeyState(key) == -32767) CheckKey(key); } slot for check keypressed without being in the application . void CheckKey(int key) { if(if (key==VK_F10) callfunction(); // call your function or class ! } @
  • [Solved] QSlider throws segmentation fault on create

    7
    0 Votes
    7 Posts
    4k Views
    E
    Thanks! Whew. A bit of a learning curve here but I think that the concept of signals and slots is ingenious. Who would have thought that registering event listeners in c++ can be done with under 10 lines of code!!!!
  • Easiest way to print text with multiple fonts using QPainter?

    3
    0 Votes
    3 Posts
    3k Views
    S
    Ok, thanks. This method is working fine for me.
  • [solved] Modify form through main.cpp

    5
    0 Votes
    5 Posts
    2k Views
    M
    Glad you got the answer you needed. Please be sure and edit the original post and add [Solved] to the title! Thanks!
  • Mac OS minimize and maximize buttons, and style

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Handling mouseevent in Qstatusbar .

    8
    0 Votes
    8 Posts
    3k Views
    A
    How do you imagine to display anything on a minimized application window?
  • Connecting to db

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • QListWidget. How to set column count.

    7
    1 Votes
    7 Posts
    31k Views
    M
    Because a QTreeWidget behaves more like a List than QTableWidget. For example you do not have to care about hiding the gridlines (which you normally do not want to see in a list). Also in a tree you have one Item per Row, in a QTableWidget there's one Item per Cell... but in a usual list, you work row-based. As you said, a table can of course be configured to look like a list, but a tree can be configured to look like a list with less coding and behaves more like it is expected (at least by me) from a list...
  • How to send TCP RST (Reset) packet ?

    13
    0 Votes
    13 Posts
    19k Views
    F
    bq. And how do you think I figured out I needed to send a TCP RST to the device to start with? I thought you were referencing a software manual. We are all here to help you, not to point at you. I do not yet understand what currently the host and what the device is and why one of them absolutely needs a RST. So a better description of platforms is very appreciated.
  • [Solved]How to avoid Gap/Space between my custom widgets ?

    25
    0 Votes
    25 Posts
    11k Views
    C
    Thank you Sam for your information ,i have edited my title as Solved.
  • QSlider problem on OS X - bug in Qt?

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Loop for ui object

    4
    0 Votes
    4 Posts
    2k Views
    L
    @ for (int i = 1; i <= 8; i++) { QListWidget widget = findChild<QListWidget>(QString("l%1_mono").arg(i)); if (widget != 0) { widget->addItem(item2, 0); widget->addItem(item3, 1); widget->addItem(item1, 2); } } @ Brain to terminal.
  • [Solved] Question on QDate

    3
    0 Votes
    3 Posts
    2k Views
    E
    Yes, that did it. Thanks for the help.