Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • Right to Left GUI application not showing dynamic text correctly

    1
    0 Votes
    1 Posts
    762 Views
    No one has replied
  • Block user's desktop on Windows in Qt

    5
    0 Votes
    5 Posts
    2k Views
    M
    [quote author="john_god" date="1341390413"]In windows to restrain the user to use only one application, you have to use a combination of admin policies and regedit options.[/quote]
  • Qmake generates wrong paths in the uninstall section

    1
    0 Votes
    1 Posts
    991 Views
    No one has replied
  • 0 Votes
    9 Posts
    8k Views
    K
    [quote author="Andre" date="1341390491"]Back on topic: I don't think you'll see much happening. First of all, you completely overrode the painting of the whole dialog. So, perhaps you'll see a small dot, but not much else being painted. Make sure to (in this case: first) call the base implementation: @ QDialog::paintEvent(paintEvent); @ Then, on the dot you draw itself. I doubt you'll even see that. The problem is: you are painting it right at the mouse cursor. And what is that spot overdrawn with? Exactly: the mouse cursor. [/quote] Nice analysis Andre [quote author="W.K.S" date="1341338884"]Thanks to both of you. You're right koahnig - I failed to check that the paintEvent() is actually called and that's where the problem was. Thanks a lot :) [/quote] Now I am wondering why it might have worked ?
  • [solved]qt crashes on running QSqlQuery::exec()

    7
    0 Votes
    7 Posts
    4k Views
    L
    You're welcome. Feel free to prepend the post title with [Solved] (just edit your initial post), as an indication that your problem has been solved and that there is a solution inside.
  • Problem with custom signals and slots

    8
    0 Votes
    8 Posts
    4k Views
    C
    Run your program and look at the output it generates to the console or debug window. You will find there is a message similar to this: bq. Object::connect: No such slot YourClass::onDeviceDiscovered(const QextPortInfo &) indicating that it is not working. Connections happen at run time not compile time. To write a slot you declare a function in a class derived from QObject and then you implement it. It's just a C++ member function. To make it a slot you simply add the "slots" pseudo-keyword to the relevant access specifier. Here is a simple example with a slot called setValue(int): http://qt-project.org/doc/qt-4.8/signalsandslots.html#a-small-example You need to declare YourClass::onDeviceDiscovered(const QextPortInfo &info) and provide an implementation. In that implementation you can update the combo box.
  • Dynamic Plugin Help

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • [.UI/FORM] How to Remove Elements fram the layout?

    10
    0 Votes
    10 Posts
    3k Views
    M
    Take a look at "QStackedWidget":/doc/qt-4.8/qstackedwidget.html. Maybe that might save you some effort. Edit: Or possibly "QStackedLayout":/doc/qt-4.8/qstackedlayout.html
  • QDir problem

    11
    0 Votes
    11 Posts
    4k Views
    A
    ok tnx a lot
  • Text interaction flags are not working

    2
    0 Votes
    2 Posts
    3k Views
    T
    Since I can't seem to get it working correctly I am working around the issue. I am listening for selectionChanged() on the QTextBrowser and then taking the QTextBrowser's QTextDocument and calling clearSelection() on its QTextCursor. Possible related bug: "https://bugreports.qt-project.org/browse/QTBUG-1186":https://bugreports.qt-project.org/browse/QTBUG-1186
  • Problem with encoding (INSERT) in oracle db on windows

    2
    0 Votes
    2 Posts
    2k Views
    K
    try query.bindValue( QString(":texte_original"), tr("essais ") );
  • How to make signal slot work faster

    6
    0 Votes
    6 Posts
    4k Views
    A
    That is going to be a problem then: your GUI thread is obviously very bussy with the webview and the embedded video. There is not much you can do about that. Sorry.
  • 0 Votes
    5 Posts
    4k Views
    V
    Thanks for the link: I hadn't seen it on my search. I added a line to each .pro file in the subdirs template project. Thanks!
  • QWidget + C++ Class Controller --> POINTER PROBLEMS?

    4
    0 Votes
    4 Posts
    3k Views
    D
    Thanks mlong, thanks again Andre... I reading some online documentation and some free books of c++, but I could not understand how to create a class using a getter and setter referenced (it's right?). Off course I really think that it's a good idea, but like always my term in sort to show something to my client, and I'm studying and Working at same time... Thanks!
  • Rewrite in Qt an existing Delphi graphics application

    2
    0 Votes
    2 Posts
    3k Views
    L
    Have a look at [[doc:QGlWidget]] and [[doc:QGraphicsView]]
  • 0 Votes
    9 Posts
    8k Views
    A
    Sounds like a good suggestion. You might: create a bugreport with your suggestion Better yet, a patch for now, create a doc note on this.
  • Adding GLWidgets at runtime

    3
    0 Votes
    3 Posts
    1k Views
    A
    [quote author="AndreAhmed" date="1341314891"]Is there any idea guys ?[/quote] Don't "kick" your topics, especially this fast. Allow at least two days, but idealy up to a week for people to answer.
  • 0 Votes
    4 Posts
    2k Views
    A
    Nope. In QML, this would be trivial, but in the widget world these kinds of scenario's were not taken into account.
  • Change close button in windowsTitleBar

    7
    0 Votes
    7 Posts
    3k Views
    A
    ok tnx alot
  • Mac Main Window demo bug - search field doesn't lose focus

    1
    0 Votes
    1 Posts
    818 Views
    No one has replied