Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.8k Posts
  • QFtp problem

    4
    0 Votes
    4 Posts
    3k Views
    A
    tnx a lot for your help.
  • Multiple colors in a single rectitem

    6
    0 Votes
    6 Posts
    3k Views
    Z
    Or just use 2 QGraphicsRectItems with a common parent.
  • QSystemDeviceInfo in Qt Desktop application

    2
    0 Votes
    2 Posts
    2k Views
    Z
    Check to see if QSystemDeviceInfo has a backend implemented for you particular platform. If it has then you're all set. If not then you will need to implement a backend or convince someone to do it for you.
  • 0 Votes
    10 Posts
    4k Views
    V
    I think that is the problem. Too bad. Thanks anyway.
  • A problem constructing objects in a script code

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • How to get the download or upload size

    5
    0 Votes
    5 Posts
    4k Views
    G
    "QNetworkReply::header(QNetworkRequest::ContentLengthHeader) ":/doc/qt-4.8/qnetworkreply.html#header is what ZapB suggested. Be aware that not on every request a content length header is sent!
  • Simulating a KeyBoardPress system wide in Qt?

    3
    0 Votes
    3 Posts
    2k Views
    V
    I suppose that would be fine. I am looking into making an onscreen keyboard, I am not sure if Qt is the logical framework to use. Thanks for your input.
  • QThread and QObject

    7
    0 Votes
    7 Posts
    4k Views
    VRoninV
    modify @Serial sSerial; sSerial.Serial_Thread_Start(cThread); sSerial.moveToThread(&cThread);@ to: @Serial* sSerial=new Serial(this); sSerial->Serial_Thread_Start(cThread); sSerial->moveToThread(&cThread);@
  • QMetaObject::invokeMethod doesn't work when...

    5
    0 Votes
    5 Posts
    8k Views
    D
    Thank you very much alexisdm, actually I already tried moveToThread, but it doesn't work in my case, I don't know why. I also checked that tobj didn't have parent, but still, no result. I ended up initializing static stuff outside the class itself, it's ugly but it works. I will try your suggestion soon and let you know the results :) Thanks again
  • OpenGL 3.2 core profile, QT 4.8 RC1 not working on Windows and Mac

    21
    0 Votes
    21 Posts
    15k Views
    Z
    It is fixed in Qt5 already (see https://codereview.qt-project.org/#change,22653). I've not had time to backport to 4.8.x yet. Still lots of work that could be done to improve using Core profile GL with Qt though.
  • 0 Votes
    4 Posts
    5k Views
    M
    Solved ! The database used to save the data has been build using SQL Maestro. In that case, the data inserted in the table is not returned when a Select is done on the table. If I used SQLite Expert to create the database, everything works fine, that is, the data can be selected and is accessed through the query in my Qt Application. Concluison : The tool used to create the database is the cause of the problem ! This means that you must take care of what tool you use to create the database. Moreover, I found that if I create (using my Qt application) a table X in a database Z created with SQL Maestro, than the data for that table X is returned as expected. But the other tables within that database Z are not !!!!!!!!!
  • Internal error: pc 0x0 in read in psymtab, but not in symtab (solved?)

    2
    0 Votes
    2 Posts
    15k Views
    G
    Hi Rutger, Can't tell exactly whats going wrong in you'r code but I've been having similar problem long time ago with random crashes in some moment of development. In my case it turned out that I had some wrong memory/parentship management of widgets and some problems pointers stored in QList. Effect was that my project worked in debug mode (with same errors as you have), and crashed in release mode. When I've cleaned up my code and set up memory management properly everything started to work well without any debug errors and crashes.
  • Includes not found

    7
    0 Votes
    7 Posts
    3k Views
    K
    There is also some description in the "forum help":http://qt-project.org/wiki/ForumHelp#e3f82045ad0f480d3fb9e0ac2d58fb01
  • [SOLVED] Access to custom widget's object after dynamic Ui loading

    3
    0 Votes
    3 Posts
    4k Views
    S
    Thank you for your answer! I think i found a solution. Back to reality: I've created a class PushButton - successor of QPushButton. Implementation of this widget was made in plugin for Qt Designer. In Qt Designer i've selected QDockWidget like a container-form. PushButton was placed on the form. Form was saved in "widget.ui" file. In main application dock widget is loading by @QWidget *myWidget = loader.load(&file, 0);@ with a qobject_cast 'ing. Then i've tried to find my custom widget like a child of QDockWidget: @ myWidget->findChild<PushButton*>();@ but this method returned a NULL-pointer. Nevertheless, i can get target pointer by: @QPushButton ancestor = myWidget->findChild<QPushButton>();@ Object's casting from QPushButton to PushButton returned NULL also. My solution is: @if(ancestor->inherits("PushButton")) PushButton btn = reinterpret_cast<PushButton>(ancestor); @
  • Problem with Context Menu

    5
    0 Votes
    5 Posts
    4k Views
    Y
    thanks, including the macro Q_OBJECT I solved the problem.
  • Why don't I get an updated list of values via drawShapes

    8
    0 Votes
    8 Posts
    2k Views
    C
    by Jove Olde Beane...think you got it it works! thanks! I had tried repaint() but put it in the wrong place
  • Qt UI, blocking calls, and reentrancy

    5
    0 Votes
    5 Posts
    8k Views
    _
    Great, thank you.
  • Writing 3D viewer application using Qt

    3
    0 Votes
    3 Posts
    6k Views
    M
    now you can use Qt3D as a part for Qt4.8.1 or Qt5 http://labs.qt.nokia.com/2012/04/11/qt-3d-and-qt5-qt4-news-and-releases/
  • How do I auth with QtWebView then open QtApplication?

    4
    0 Votes
    4 Posts
    2k Views
    W
    Thanks @AcerExtensa and @Volker for the suggestions! I do need to show a QWebView to not only support Facebook / Twitter authentication, but also to make sure any latest updates to the game are shown for players. I've managed to create two windows that launch at the same time (probably under the umbrella of a QApplication idea that @Volker had).. So the next key to cracking this problem is to figure out how to listen for some kind of event from the WebView in order to close it up and open the other main window..
  • 0 Votes
    3 Posts
    4k Views
    K
    welcome to devnet AFAIK this is not specific question to Qt. It depends on whether you can profile with a certain compiler/linker option. Personally, I doubt that this is possible straight away, but my knowledge of using gprof is very limited. You need to check the gprof manual for special settings required. As soon as there are specific gprof settings required, you may need at least a recompilation IMO.