Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.5k Posts
  • DOESN"T WORK D-Bus Remote Controlled Car Example

    2
    0 Votes
    2 Posts
    2k Views
    S
    This file is generated from the UI file created with Qt designer. You should run uic to create it manually. The compilation sequence in linux should be: $ qmake -project $ qmake $ make uic is executed inside the qmake command. If you use Qt Creator this is done automatically. For more info see the qmake and uic documentation. Bye!
  • Qt and JSON solution

    3
    0 Votes
    3 Posts
    4k Views
    sierdzioS
    Lars recently created new package, which is in Qt Project's playground now: "LINK":http://codereview.qt-project.org/#admin,project,playground/qtbinaryjson,info I have not tried that, though. Also, Qt5 has QtJsonDB module - I don't know what it does, really, but you might check it out. Up until now, most people I know were happy with QJson, though.
  • Opening new process window inside QMainWindow

    3
    0 Votes
    3 Posts
    3k Views
    T
    can I open it into label that placed on my window? No, you can't. P.S. You should to read "there":http://wiki.qt-project.org/Coding_Style.
  • [SOLVED] QMainWindow::QMainWindow: cannot access private member...

    7
    0 Votes
    7 Posts
    6k Views
    P
    @Volker: I am not mixing C and C++ code. Just QLibrary needs this addition to work fine (you mean "extern C" ?) because using CDECL as calling convention.
  • 0 Votes
    3 Posts
    3k Views
    G
    I would bet a penny that @ #include <QNetworkProxy> // or #include <QNetworkAccessManager> @ in the source file that establishes the connection will cure the error.
  • How can we trasfer widget focus to next widget by pressing tab key?

    8
    0 Votes
    8 Posts
    6k Views
    G
    The style in charge usually handles this. The widget having the focus is most often displayed differently. If not, then this is the usual behavior of that style and you should mess with that only for very good reasons - which most developers do not have, to be honest.
  • How to make a stopwatch in C++/Qt

    6
    0 Votes
    6 Posts
    7k Views
    R
    Consider these also :) http://developer.qt.nokia.com/books
  • [SOLVED] hostinfo.h: how to get the right ip address?

    9
    0 Votes
    9 Posts
    13k Views
    K
    thank you ShadowMoses. you have been lots of help :)
  • Radio button not checkable for users

    4
    0 Votes
    4 Posts
    8k Views
    S
    Simple example: @QRadioButton *radioButton = new QRadioButton(this); // defined on ui_file.h radioButton->setEnabled(0); radioButton->setChecked(1); // or 0 as you like@
  • QLocalSocket on Unix

    6
    0 Votes
    6 Posts
    4k Views
    D
    http://www.thomasstover.com/uds.html (devnet seems to include the ',' in the link).
  • How to install VS2008 and VS2010 versions side by side

    2
    0 Votes
    2 Posts
    4k Views
    G
    To install both versions, give one or both of them a different installation directory (the default is C:\Qt\4.8.0). There is no difference regarding functionality. There are technical reasons (ABI and name mangling, for example) that make libraries compiled for one version of Visual Studio incompatible for another version (this holds true for all versions). There are some dirty tricks to make it work, but it's highly recommended to use libs built against the respective MSVS versions.
  • 0 Votes
    7 Posts
    5k Views
    G
    Sorry, I misread the default value. You're right of course. I personally would read in the XML in one pass and store the contents in a lightweight internal format, eg. with some classes/structs containing the pieces. These can be passed around more easily, put into lists, hashes etc. Regarding debug runs: make sure you completely rebuild your application and to link against a matching set of Qt and system libraries. Especially Windows is known to cause unexpected crashes when mixing debug and release code and libs.
  • QGraphicsView OpenGL

    4
    0 Votes
    4 Posts
    5k Views
    A
    Anything new here? I still have the same two issues in Qt 4.8.0.
  • [Solved] A possible bug in QWidget::layout()

    4
    0 Votes
    4 Posts
    2k Views
    G
    No problem, I just wanted to be sure :)
  • Configure on Ubuntu

    11
    0 Votes
    11 Posts
    7k Views
    M
    Thank you guys, The problem still exists. Does anybody configured Qt 4.8 on Ubuntu?
  • How to define your own mouse?

    5
    0 Votes
    5 Posts
    3k Views
    R
    What kind of device is that?.. How is it going to communicate with your PC?.. I have used my Nokia 6600 as an optical mouse 4 years ago!! So, I believe in nothing is impossible.. This may not be applicable to your use case, but a small suggestion. Write a program that listens for your "device's" signals, let that Listener program convert those signals into appropriate mouse gestures... If you just need it in your application, then start the listener program on your program start up.. In case of Windows .NET will help you, I have moved my mouse cursor programmatically with the help of a "dll".. Google it!!.
  • Supported linuxes

    10
    0 Votes
    10 Posts
    4k Views
    H
    I can give you example that some parts of system can make issues in your application. In KDE you can use a Oxygene theme - it looks good but application has another feature if you use this theme. Oxygene has a feature "drag by empty spaces", so your app will be draggable by emty spaces until you disable this feature in oxygene-settings. Maybe you have on ubuntu something that change an events in your app?
  • One database table source for multiple models and views

    9
    0 Votes
    9 Posts
    7k Views
    S
    That's true, Seba. When I started I used QSqlQuery for my detail model (the only one I had at the time,) but I was limited to read-only results so I tabled that idea. However, that's all I need for the three summary Qt views. Good idea! I could have used a subclass of QSqlQuery and called ::exec() from a slot for the summary Qt views upon every submit to the detail Qt view. That way, I would not have separate SQLite views, just the single one for the detail info. Thanks.
  • Can I see some simple examples of regular expressions in C++?

    8
    0 Votes
    8 Posts
    9k Views
    0
    Just to be absolutely clear here... have a look at this: @ QSortFilterProxyModel *proxy=new QSortFilterProxyModel(); proxy->setSourceModel(sourcemodel); //The following regexpression filters the column after "NuMbeR1 OR Test3122 OR Dethklok". //I hope the confusion is solved now. QRegExp regExp("NuMbeR1|Test3122|Dethklok"); proxy->setFilterRegExp(regExp); //e.g... ui->view->setModel(proxy); @
  • I can't download Qt developer days Videos

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    G
    See "this thread":/forums/viewthread/12758/ dealing with that very same question. I'm closing this one.